Jump to content

Deprecation error thrown in Secure Front Office


Recommended Posts

1.5.3.1

I ran across this area in the FO when testing "my favorites"

 

Warning: Function displayHeader() is deprecated in /xxxxxi/xxxxx/header.php on line 39

in /xxxxx/xxxxx/classes/Tools.php on line 1777

 

 

Line 39 of header.php

$controller->displayHeader();

 

Line 1777 of Tools.php

trigger_error('Function <b>'.$callee['function'].'()</b> is deprecated in <b>'.$callee['file'].'</b> on line <b>'.$callee['line'].'</b><br />', E_USER_WARNING);
$message = 'The function '.$callee['function'].' (Line '.$callee['line'].') is deprecated and will be removed in the next major version.';

 

Could not find a fix on gitHub. Any thoughts?

Edited by Whispar1 (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

well, to be honest, this isn't warning / error from php, It's warning from prestashop engine which informs that your header use deprecated function. You can disable these messages in config/defines.inc.php

 

you've got there line:

define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);

change it to:

define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);

 

btw. you use 1.5.4.1 from the beggining or it is updated store?

Link to comment
Share on other sites

×
×
  • Create New...