SeizeTheDay Posted February 12 Share Posted February 12 Hello, I have moved my online store to another hosting, but after the migration, I noticed that the modules cannot be updated. I am unable to update modules, install new ones, or connect to Prestashop Addons. I am getting the error: 'The server returned a "500 Internal Server Error".' Additionally, the modules I upload to the module folder via FTP do not appear in the admin panel. I have no idea how to fix this. Any help would be greatly appreciated. My Prestashop version is 1.7.6.4. Wishing everyone a good day. Link to comment Share on other sites More sharing options...
ComGrafPL Posted February 12 Share Posted February 12 Any errors on debug mode? Same setting on new hosting? Same PHP version? 1 Link to comment Share on other sites More sharing options...
SeizeTheDay Posted February 12 Author Share Posted February 12 Yes, the settings are the same. PHP version is 7.1. For example, when I try to update a module, I get the following error: 'Could not perform action update for module undefined.' When I try to install a new module in debug mode, I get the errors: ClassNotFoundException HTTP 500 Internal Server Error Attempted to load class "ZipArchive" from the global namespace. Did you forget a "use" statement? Exception Symfony\Component\Debug\Exception\ ClassNotFoundException in src/Adapter/Module/ModuleZipManager.php (line 106) ) ); } $sandboxPath = $this->getSandboxPath($source); $zip = new ZipArchive(); if ($zip->open($source) === false || !$zip->extractTo($sandboxPath) || !$zip->close()) { throw new Exception( $this->translator->trans( 'Cannot extract module in %path% to get its name. %error%', array( and Logs 2 Level Channel Message DEBUG 22:44:03 doctrine SELECT name FROM pr_module WHERE active = 1 INFO 22:44:03 request Matched route "admin_module_import". DEBUG 22:44:03 security Read existing security token from the session. DEBUG 22:44:03 security User was reloaded from a user provider. CRITICAL 22:44:03 php Class 'ZipArchive' not found INFO 22:44:04 php User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". CRITICAL 22:44:04 request Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "ZipArchive" from the global namespace. Did you forget a "use" statement?" at /home2/.../public_html/src/Adapter/Module/ModuleZipManager.php line 106 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 13 Share Posted February 13 Ask your hosting provider or change configuration if you have access to server management to add zip php extension 2 Link to comment Share on other sites More sharing options...
SeizeTheDay Posted February 17 Author Share Posted February 17 I solved to the problem. Thanks for supports guys. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 17 Share Posted February 17 Don't forget to change your title post by adding [SOLVED]. 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