Jump to content

error 500 after installing paypal


Recommended Posts

Hello,

I installed paypal via the module page and right after I got an error 500 and i cannot access my back office (1.7.7.2 version of prestashop)

The front office is still working normally 

I found this in var/logs in my FTP (prod.log)

 

Quote

[2021-03-25 13:16:46] request.INFO: Matched route "admin_module_manage_action". {"route":"admin_module_manage_action","route_parameters":{"_controller":"PrestaShopBundle\\Controller\\Admin\\Improve\\ModuleController::moduleAction","action":"install","module_name":"paypal","_route":"admin_module_manage_action"},"request_uri":"https://MYSITE.com/b1skutnojqokj49s/index.php/improve/modules/manage/action/install/paypal?_token=anrR4PSbbQo4weAM1e32KYOvftSdHpGbOhFBq54dlbE","method":"POST"} []

 

[2021-03-25 13:16:46] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []

 

[2021-03-25 13:16:46] security.DEBUG: User was reloaded from a user provider. {"provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider","username":"[email protected]"} []

 

[2021-03-25 13:17:12] app.INFO: Protect vendor folder in module paypal [] []

 

[2021-03-25 13:17:12] app.ERROR: Exception retournée par le module paypal pour install. An exception occurred while executing 'SELECT t0.id_tab AS id_tab_1, t0.id_parent AS id_parent_2, t0.position AS position_3, t0.module AS module_4, t0.class_name AS class_name_5, t0.route_name AS route_name_6, t0.active AS active_7, t0.enabled AS enabled_8, t0.hide_host_mode AS hide_host_mode_9, t0.icon AS icon_10 FROM oere_tab t0 WHERE t0.class_name = ? LIMIT 1' with params ["AdminPayPalInstallment"]:  SQLSTATE[HY000]: General error: 2006 MySQL server has gone away [] []

 

[2021-03-25 13:17:12] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} []

 

Link to comment
Share on other sites

I downgraded my PHP version and the back office seems to work more or less now.

 

I have this message from time to time in the back office :

Whoops, looks like something went wrong.
(1/1) ContextErrorException
Warning: Error while sending QUERY packet. PID=191814

in DbPDO.php line 165
at DbPDOCore->_query('SELECT id_tab, class_name FROM `oere_tab`')
in Db.php line 376
at DbCore->query('SELECT id_tab, class_name FROM `oere_tab`')
in Db.php line 613
at DbCore->executeS('SELECT id_tab, class_name FROM `oere_tab`', true, false)
in Tab.php line 340
at TabCore::getIdFromClassName('admin')
in AdminController.php line 462
at AdminControllerCore->__construct()
in LegacyContext.php line 85
at LegacyContext->getContext()
in UserLocaleListener.php line 39
at UserLocaleListener->__construct(object(LegacyContext))
in appDevDebugProjectContainer.php line 3086
at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()
in appDevDebugProjectContainer.php line 3582
at appDevDebugProjectContainer->Container17fbkpl\{closure}()
in EventDispatcher.php line 231
at EventDispatcher->sortListeners('kernel.request')
in EventDispatcher.php line 61
at EventDispatcher->getListeners('kernel.request')
in ContainerAwareEventDispatcher.php line 129
at ContainerAwareEventDispatcher->getListeners('kernel.request')
in TraceableEventDispatcher.php line 259
at TraceableEventDispatcher->preProcess('kernel.request')
in TraceableEventDispatcher.php line 137
at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
in HttpKernel.php line 127
at HttpKernel->handleRaw(object(Request), 1)
in HttpKernel.php line 68
at HttpKernel->handle(object(Request), 1, false)
in Kernel.php line 200
at Kernel->handle(object(Request), 1, false)
in index.php line 82

Any idea what to do ?

Link to comment
Share on other sites

When i tried to install paypal the backoffice went offline instantly. After changing the PHP version it went back online with error from time to time (see above).

I managed to install Paypal after changing the PHP version. I would like to know if there is a way to fix all these errors.

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...