Jump to content

500 Internal Server Error in Modules After Migration


Recommended Posts

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

  

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

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
×
×
  • Create New...