Prestashop: ContextErrorException jxsecuritypanel.php

Created on 16 Jul 2019  路  18Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
We don't have access to the Back-Office : ERREUR 500 => Only on mode debug and when i stay on regular mode I have a big bug on the front and vice versa

To Reproduce Active the debug mode via FTP : defines.inc.php
Steps to reproduce the behavior:

  1. Go to 'https://www.march-lab.com'
  2. Click on 'women or men'
  3. See error

Screenshots

(1/1)聽ContextErrorExceptionWarning: Cannot assign an empty string to a string offset

in聽jxsecuritypanel.php聽line 131
at聽Jxsecuritypanel->getSettings(array('JXSECURITY_CONTENT_COPY' => '0', 'JXSECURITY_CONTENT_PASTE' => '0', 'JXSECURITY_CONTENT_CUT' => '0', 'JXSECURITY_CONTENT_SELECT' => '0', 'JXSECURITY_CONTENT_SEARCH' => '0', 'JXSECURITY_CONTENT_SAVE' => '0', 'JXSECURITY_CONTENT_PRINT' => '0', 'JXSECURITY_CONTENT_HELP' => '0', 'JXSECURITY_CONTENT_DEV' => '0', 'JXSECURITY_CONTENT_SOURCE' => '0', 'JXSECURITY_CONTENT_RELOAD' => '0', 'JXSECURITY_CONTENT_RELOAD_CACHE' => '0', 'JXSECURITY_CONTENT_SCREEN' =>聽false, 'JXSECURITY_CONTENT_CONTEXTMENU' => '0', 'JXSECURITY_CONTENT_HOTLINKING' => '0', 'JXSECURITY_CONTENT_TEXTSELECTION' => '0', 'JXSECURITY_CONTENT_DRAGNDROP' => '0', 'JXSECURITY_CONTENT_COPY_TEXT' => ''))in聽jxsecuritypanel.php聽line 161
at聽Jxsecuritypanel->setMedia()in聽jxsecuritypanel.php聽line 245
at聽Jxsecuritypanel->hookHeader(array('cookie' =>聽object(Cookie), 'cart' =>聽object(Cart), 'altern' => 34))in聽Hook.php聽line 966
at聽HookCore::coreCallHook(object(Jxsecuritypanel), 'hookHeader',聽array('cookie' =>聽object(Cookie), 'cart' =>聽object(Cart), 'altern' => 34))in聽Hook.php聽line 355
at聽HookCore::callHookOn(object(Jxsecuritypanel), 'displayHeader',聽array('cookie' =>聽object(Cookie), 'cart' =>聽object(Cart), 'altern' => 34))in聽Hook.php聽line 903
at聽HookCore::exec('displayHeader')in聽FrontController.php聽line 555
at聽FrontControllerCore->initContent()in聽CategoryController.php聽line 130
at聽CategoryControllerCore->initContent()in聽Controller.php聽line 281
at聽ControllerCore->run()in聽Dispatcher.php聽line 511
at聽DispatcherCore->dispatch()in聽index.php聽line 28

Additional information
PrestaShop version: 1.7.5.2
PHP version: 7.3

1.7.5.2 Bug Categories FO No change required

Most helpful comment

Ok THANKS FOR ALL
IT WORKS I DESACTIVE ET REACTIVE THE MODULE

YOU ARE THE BOSS

All 18 comments

Hi @MEGA911,

PrestaShop is not compatible with PHP 7.3, in fact, PrestaShop 1.7.0 to 1.7.3 is compatible with PHP 7.1 and PrestaShop 1.7.4 & 1.7.5 are compatible with PHP 7.2.
For more details, you can follow this link: http://build.prestashop.com/news/prestashop-1-7-is-moving-to-symfony-3-4-and-php-5-6/
Next Major release PS1.7.7 will be compatible with PHP7.3.
Thanks to downgrade your version PHP, check & feedback.

You need some info to connect at the BO and the FTP ? maybe database
(For information I try to restaure a databse backup but I have the same problem)

@MEGA911, Thanks to downgrade your version PHP, check & feedback.

ok i test

@MEGA911, thanks!
Waiting for your feedback.

PHP 7.2
But i can't access to the BO

ERREUR 500 => I access to the BO only with debug mode

@MEGA911,
Could you please try to clear the cache manually by deleting all the folder into var/cache (prod & dev).
Thanks to check and feedback.

Cool I access to my BO

@MEGA911, great!

So the issue is fixed?

Thanks!

Perfect !!
YOU ARE THE BOSS

IT WORKS => BUT know is strangly in the front on retailers we don't have now the google map for the Geolocalisation => Very strange

https://www.march-lab.com/fr/boutiques

The issue was good but i don't understand why the module store don't display the map
How i can fix this bug ?

@MEGA911, did you use a custom module to display the map on the "stores" page?

Thanks!

yes =>
Store Locator
v1.6.5 - par BelVG

can i desactive and reactive the module ?

@MEGA911, as it's not a module provided by Prestashop, we can't do anything with this.
You should contact the module author via your addons.prestashop.com account, they are the only ones to help you with it.
Thanks!

Ok THANKS FOR ALL
IT WORKS I DESACTIVE ET REACTIVE THE MODULE

YOU ARE THE BOSS

Was this page helpful?
0 / 5 - 0 ratings