Jump to content

File is deprecated


Recommended Posts

Hi!

 

When I choose payment module one of them has those warnings:

 


[b]Warning[/b]: File [b]/header.php[/b] is deprecated
in [b]/classes/Tools.php[/b] on line [b]1845[/b]

[b]Warning[/b]: Function [b]displayHeader()[/b] is deprecated in [b]/header.php[/b] on line [b]40[/b]
in [b]/classes/Tools.php[/b] on line [b]1845[/b]


[b]Warning[/b]: File [b]/footer.php[/b] is deprecated
in [b]/classes/Tools.php[/b] on line [b]1845[/b]

[b]Warning[/b]: Function [b]displayFooter()[/b] is deprecated in [b]/footer.php[/b] on line [b]39[/b]
in [b]/classes/Tools.php[/b] on line [b]1845[/b]

 

I was searching anything about it, but I do not know what in footer.php or header.php is wrong.

 

Header line: 40
Tools::displayFileAsDeprecated();
$controller->displayHeader();

 

Fotter line: 39

Tools::displayFileAsDeprecated();
$controller->displayFooter();

 

Thank you in advance,

Greetings

:)

Link to comment
Share on other sites

it mean that module isn't fully compatibile with your prestashop version.

YOu don't have to worry, because these messages arent critical.

Moreover, this messages are from prestashop engine (not from PHP script parser)

 

if you want to disable these messages - you can do it in the defines.inc.php file

 

you've got there:

define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);

 

just turn it off:

define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);

  • Like 3
Link to comment
Share on other sites

  • 5 weeks later...
×
×
  • Create New...