GYKR Posted December 8, 2021 Share Posted December 8, 2021 Hi Guys, I am unable to access my module manager due to the following error Compile Error: Cannot declare class WishList, because the name is already in use [Symfony\Component\Debug\Exception\FatalErrorException 0] Please help, thanks! Link to comment Share on other sites More sharing options...
w3bsolutions Posted December 26, 2021 Share Posted December 26, 2021 Disable the wishlist module by going to /modules/ and renaming blockwishlist to whatever you want. After that you should be able to open the module manager fine. The module was rewritten a few months ago. I would recommend to remove that directory and install the new module https://github.com/PrestaShop/blockwishlist Link to comment Share on other sites More sharing options...
ccristian Posted September 9, 2022 Share Posted September 9, 2022 Hi! The same problem here, it appeared after I changed the PHP version from 7.3 to 7.4. It seems it's something related to the Simple Blog module, but I I'm not entirely sure. My question is .....If I will need to uninstall or dizable it, how do I do that without if I can't acces the modules panel anymore?!? Compile Error: PrestaShop\PrestaShop\Adapter\Module\ModuleDataProvider::main(): Failed opening required '/home/mydomainro/public_html/modules/ph_simpleblog/models/SimpleBlogCategory.php' (include_path='/home/mydomainro/public_html/vendor/pear/pear_exception:/home/mydomainro/public_html/vendor/pear/console_getopt:/home/mydomainro/public_html/vendor/pear/pear-core-minimal/src:/home/mydomainro/public_html/vendor/pear/archive_tar:.:/opt/alt/php74/usr/share/pear') Thank you! Link to comment Share on other sites More sharing options...
Nickz Posted September 9, 2022 Share Posted September 9, 2022 return to 7.3 and look the module up if ready for 7.4 2 hours ago, ccristian said: Compile Error: PrestaShop\PrestaShop\Adapter\Module\ModuleDataProvider::main(): Failed opening required '/home/mydomainro/public_html/modules/ph_simpleblog/models/SimpleBlogCategory.php' (include_path='/home/mydomainro/public_html/vendor/pear/pear_exception:/home/mydomainro/public_html/vendor/pear/console_getopt:/home/mydomainro/public_html/vendor/pear/pear-core-minimal/src:/home/mydomainro/public_html/vendor/pear/archive_tar:.:/opt/alt/php74/usr/share/pear') Link to comment Share on other sites More sharing options...
JBW Posted September 14, 2022 Share Posted September 14, 2022 On 9/9/2022 at 9:32 PM, ccristian said: If I will need to uninstall or dizable it, how do I do that without if I can't acces the modules panel anymore?!? Rename the module folder on the server (e.g. by FTP) to /modules/ph_simpleblog_OLD/ Link to comment Share on other sites More sharing options...
ccristian Posted September 14, 2022 Share Posted September 14, 2022 Hi! Thank you for your requests but right after I wrote the post here I went to my FTP (Fillezila) and deleted it from the modules folder. I wasn't using this module so deleting it was the right decision for me. Thank you very much! Link to comment Share on other sites More sharing options...
[email protected] Posted October 3, 2022 Share Posted October 3, 2022 (edited) Hello, I have the same error but the solution don't work for me. I migrate my dev on an other folder. On the live site my module manager don't work with this error : Compile Error: Cannot declare class *, because the name is already in use The * is remplaced by many class... thanks. prestashop 1.7.8.7, php 7.4.30 Edited October 3, 2022 by [email protected] plus (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted October 3, 2022 Share Posted October 3, 2022 2 hours ago, [email protected] said: I have the same error but the solution don't work for me Do you have the same serversettings, Same theme, Same PHPVersion, Same PS Version. If not go ahead and put them here. Link to comment Share on other sites More sharing options...
[email protected] Posted October 3, 2022 Share Posted October 3, 2022 (edited) yes for all same server settings, same theme, same phpversion and same PS version... If the debug mode is on then i can access to the module page, all is runing ... On front i have this warning : Warning: preg_match(): Compilation failed: two named subpatterns have the same name (PCRE2_DUPNAMES not set) at offset 91 in /mnt/disk1/omnisport/live/classes/Dispatcher.php on line 1055 Edited October 3, 2022 by [email protected] plus (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted October 3, 2022 Share Posted October 3, 2022 After coping the shop makle sure to delete /var/cache on the copy. 1 1 Link to comment Share on other sites More sharing options...
[email protected] Posted October 3, 2022 Share Posted October 3, 2022 Thank you for your answer, i delete /var/cache and now all is correct ! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now