Jump to content

filemtime stat failed


Recommended Posts

With a fresh installation of prestashop 1.5 rc2, you can have a backoffice with these messages on top:

http://pastebin.com/FLsUfm2Y

 

Warning: filemtime(): stat failed for /var/www/ps15/js/jquery/plugins/jquery.cluetip.js in /var/www/ps15/classes/Media.php on line 354

 

To avoid this problem, you can verify the real existence of a file before calling the filemtime function with the realpath function like this...

 

before: http://pastebin.com/zzV1ssdH

after: http://pastebin.com/pXB0CFj2

 

You can add the realpath call to Media class on these lines:

* 354

* 356

* 376

* 378

 

other information:

* http://stackoverflow.com/questions/7120793/php-filemtime-function-stat-failed-for

* http://www.php.net/manual/en/function.filemtime.php

Link to comment
Share on other sites

×
×
  • Create New...