Jump to content

filemtime(): stat failed for prestashop


kirubanidhi

Recommended Posts

How to resolve this errors,

Error:
"19 May 2017 05:41:33","/var/www/html/cy_prestashop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:

64","(Warning) filemtime(): stat failed for /var/www/html/cy_prestashop/cache/smarty/cache/blocktopmenu/0/category/1/1/1/1115/0/0/0/0/84/13/f8/8413f883d9f81dccb2f56a82bac27f14c7bc6359.blocktopmenu.tpl.php"

"

Code:

63 $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';

64 $cached->timestamp = @filemtime($cached->filepath);

65 $cached->exists = !!$cached->timestamp;

Link to comment
Share on other sites

  • 3 years later...

I have the same issue when I choose a payment option from Customweb's PayUnity Visa and MasterCard module on the checkout page.

2020/06/02 06:45:32 [error] 17#17: *241263 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ErrorException: stat failed for /var/www/html/cache/smarty/cache/blockcms/2/1/3/3/4/1/74/d0/74/57/d07457ddf604aae831bb40d2d4cac336b0bd7f83.blockcms.tpl.php in /var/www/html/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:64
Stack trace:
#0 [internal function]: Customweb_Core_Util_Error::handleErrors(2, 'filemtime(): st...', '/var/www/html/t...', 64, Array)
#1 /var/www/html/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(64): filemtime('/var/www/html/c...')
#2 /var/www/html/tools/smarty/sysplugins/smarty_cacheresource.php(359): Smarty_Internal_CacheResource_File->populate(Object(Smarty_Template_Cached), Object(Smarty_Custom_Template))
#3 /var/www/html/tools/smarty/sysplugins/smarty_internal_template.php(707): Smarty_Template_Cached->__construct(Object(Smarty_Custom_Template))
#4 /var/www/html/tools/smarty/sysplugins/smarty_internal_templatebase.php(419): Smarty_Internal_Template->__get('cached')
#5 /var/www/html/classes/module/Module.php" while reading response header from upstream, client: 89.212.4.219, server: , request: "GET /hr/module/payunitycw/payment?id_module=94 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:"

 

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