vidmarc Posted June 22, 2014 Share Posted June 22, 2014 Does anybody know what this means? PHP: [Warning] /home/fabpress/public_html/includes/lib/smarty/sysplugins/smarty_resource.php:349 - filemtime() [function.filemtime.php]: stat failed for /home/fabpress/public_html/skins/blueprint/skins/blueprint/templates/element.image_slider.php [Warning] /home/fabpress/public_html/includes/lib/smarty/sysplugins/smarty_resource.php:349 - filemtime() [function.filemtime.php]: stat failed for /home/fabpress/public_html/skins/blueprint/skins/blueprint/templates/element.slider.php [Warning] /home/fabpress/public_html/includes/lib/smarty/sysplugins/smarty_resource.php:349 - filemtime() [function.filemtime.php]: stat failed for /home/fabpress/public_html/skins/blueprint/skins/blueprint/templates/layouts/three_column.php [Warning] /home/fabpress/public_html/includes/lib/smarty/sysplugins/smarty_resource.php:349 - filemtime() [function.filemtime.php]: stat failed for /home/fabpress/public_html/skins/blueprint/skins/blueprint/templates/element.breadcrumbs.php [Warning] /home/fabpress/public_html/includes/lib/smarty/sysplugins/smarty_resource.php:349 - filemtime() [function.filemtime.php]: stat failed for /home/fabpress/public_html/skins/blueprint/skins/blueprint/templates/widgets/regional.php Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 22, 2014 Share Posted June 22, 2014 This is an artifact of how Smarty, the template rendering engine, is programmed. I don't understand the inner details of why Smarty does this, but it has been discussed on the Smarty forums. What I get from those discussions is that Smarty gives to PHP an error_handler which has the job of catching and dealing with known situations. What you see in the debug listing is the fact that CubeCart's Debug class also gives to PHP an error_handler which has the job of catching and logging to CubeCart's System Error Reporting feature certain fall-through cases. (For example, no skin found - log an error, gateway malfunction - log an error.) With debugging enabled, CubeCart's error_handler also catches and reports Smarty's programming artifacts. I think these specific Warnings are from the situation where CubeCart's Cache system will delete an expired cached file prior to Smarty's intent to use it. Thus, Smarty will complain that it's check on the file's operating system timestamp had failed -- more accurately, PHP is reporting the use of the filemtime() function by Smarty failed. If I recall, CubeCart sets a 24 hour time limit on cached files, so you will see these Warnings many, many times. They can be ignored. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.