Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem ps_mob #787

Open
accessoilik opened this issue Dec 19, 2024 · 1 comment
Open

problem ps_mob #787

accessoilik opened this issue Dec 19, 2024 · 1 comment

Comments

@accessoilik
Copy link

update attempt failed. I have no way to restore a backup. At the moment I have not access to the module manager in the administration panel. Debug mode shows a problem with the module ps_mob, any attempts to change generate further errors. At the moment I get an error
(1/1) RuntimeException
The definition for "PrestaShop\Module\Mbo\Api\Repository\ModuleRepository" has no class attribute, and appears to reference a class or interface in the global namespace. Leaving out the "class" attribute is only allowed for namespaced classes. Please specify the class attribute explicitly to get rid of this error.

in CheckDefinitionValidityPass.php line 55
at CheckDefinitionValidityPass->process(object(ContainerBuilder))
in Compiler.php line 140
at Compiler->compile(object(ContainerBuilder))
in ContainerBuilder.php line 789
at ContainerBuilder->compile()
in Kernel.php line 643
at Kernel->initializeContainer()
in Kernel.php line 135
at Kernel->boot()
in Kernel.php line 195
at Kernel->handle(object(Request), 1, false)
in index.php line 82

even if I define a class in the file services.yml , in debug mode it will show another file without a defined class and so on

So I have neither the possibility to uninstall the module nor any idea how to fix its operation

@intraordinaire
Copy link
Contributor

Hi @accessoilik

Sorry to read that.

Can you provide us more details about your configuration, please ?
PrestaShop version, ps_mbo version, PHP version ?
It seems to be an update, from which version to which ?

Have you tried to clear the cache folder under var/cache and delete everything ?
You should not have to touch anything in the module itself, it should work as is. If you add or remove files or declaration in services file you may add other problems.

As a quick workaround, you can remove/rename the folder of the module ps_mbo and clear the cache. And you will be able to access to your BO again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants