Jump to content

Compile Error when trying to access Module Manager


GYKR
 Share

Recommended Posts

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!

Share this post


Link to post
Share on other sites

  • 3 weeks later...
  • 8 months later...

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!

Share this post


Link to post
Share on other sites

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')

 

Share this post


Link to post
Share on other sites

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/

Share this post


Link to post
Share on other sites

  • 3 weeks later...

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 by [email protected]
plus (see edit history)

Share this post


Link to post
Share on other sites

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 by [email protected]
plus (see edit history)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More