Jump to content

Prestashop Backoffice error - The server encountered an internal error or misconfiguration and was unable to complete your request.


panacy

Recommended Posts

Hello guys!

I get this message in my backoffice:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log."

It appears when I try to add some files in backoffice, for example images for backgrounds in elementor module, but it shows in other modules too. It looks like general error.

Here is an info of debug mode from site (not backoffice):

"ContextErrorException

Notice: Trying to access array offset on value of type null

in HookDisplayFooter.php line 90"

at HookDisplayFooter->run()in ps_googleanalytics.php line 113

at Ps_Googleanalytics->hookDisplayFooter(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 997

at HookCore::coreCallHook(object(Ps_Googleanalytics), 'hookDisplayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 421

at HookCore::callHookOn(object(Ps_Googleanalytics), 'displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 934

at HookCore::exec('displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null)in smarty.config.inc.php line 167

at smartyHook(array('h' => 'displayFooter'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayFooter'), object(SmartyDevTemplate)))in f344e52c34131e94580c0ac29725661b4186b309_2.file.footer-2.tpl.php line 112

at Block_1984555713617e8a6d70ed94_31518708->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1984555713617e8a6d70ed94_31518708), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1984555713617e8a6d70ed94_31518708))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1984555713617e8a6d70ed94_31518708', 'hook_footer')in f344e52c34131e94580c0ac29725661b4186b309_2.file.footer-2.tpl.php line 67

at content_617e8a6d710995_86966395(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('file:_partials/_variants/footer-2.tpl', null, 'warehouselayouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in 6aedf6defd70773fa4b2ab32eeb055d71cf667b2_2.file.footer.tpl.php line 34

at content_617e8a6d6f7901_62197074(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('file:_partials/footer.tpl', null, 'warehouselayouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in ee867e781a2354cae897e96230baae47cfc1a1e8_2.file.layout-both-columns.tpl.php line 512

at Block_783050971617e8a6cc9af31_78918181->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_783050971617e8a6cc9af31_78918181), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_783050971617e8a6cc9af31_78918181))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_783050971617e8a6cc9af31_78918181', 'footer')in ee867e781a2354cae897e96230baae47cfc1a1e8_2.file.layout-both-columns.tpl.php line 140

at content_617e8a6cca4e31_43067604(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'warehouselayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 116

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 4221da8dbd55880af7c74ca2f79d4ad0c0ef63c8_2.file.layout-full-width.tpl.php line 50

at content_617e8a6cc37966_07960406(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'warehouselayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 116

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in d57ccc4128d7bc1476050abd484c870fd74d0743_2.file.page.tpl.php line 33

at content_617e8a6cc1e4b7_39497762(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'warehouselayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 116

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')in 40e73a65bb5dfa3ff3d2ec0f0f69de7c8cf54437_2.file.index.tpl.php line 36

at content_617e8a6cbeff44_35772390(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'warehouselayouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'warehouselayouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('index.tpl', null, 'warehouselayouts/layout-full-width.tpl')in FrontController.php line 727

at FrontControllerCore->smartyOutputContent('index.tpl')in FrontController.php line 709

at FrontControllerCore->display()in Controller.php line 326

at ControllerCore->run()in Dispatcher.php line 518

at DispatcherCore->dispatch()in index.php line 28"

 

In backoffice debug mode shows only warnings and deprecations.

[EDIT]

I managed to solve above list of problems -> Google Analytics module. Now nothing appears when I launch the site in debug mode. But my Internal Server Error in backoffice still exists... Please check the attachments.

 

I will be very gratefull for any help.

Paul.

server_error_1.JPG

server_error_2.JPG

Edited by panacy
Some problems resolved (see edit history)
Link to comment
Share on other sites

Hello

Ok, I will try to be more specific.

Problem still exists. In my previous post you'll find screenshots. They show the problem. When I try to upload some media in my backoffice, window pops up, with error message (second screenshot).

Any ideas how to fix it?

Paul

Link to comment
Share on other sites

I don't think that's the problem. Error message pops up right away, before I am able to choose any file. I click the "browse butto" and the pop up window with error shows up.

Below I attache my preferences about file uploads:

obraz.thumb.png.920dbc8aeb20d86123eb5700958ad77d.png

Link to comment
Share on other sites

  • 1 year later...

Hello , i would like to ask if someone get my same prob.

Prestashop 1.7.8.9 Php 7.4

Shop Work fine , but if i change in Php cgi  7.4 or 7.3 cgi

i will get Internal Error only in backoffice , while in frontoffice Work

Kindly ask if someone have suggestion about this issue

Thanks
Regards

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