USB83 Posted December 19, 2016 Share Posted December 19, 2016 Hello, I'm building a shop using 1.6.1.1 and i get very frequent http 500 errors I enabled dev mode and here are some examples : Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/srv/data/web/vhosts/domain.com/htdocs/cache/smarty/cache/blocktopmenu/1/1/8): failed to open dir: No such file or directory' in /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:196 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/srv/data/web/v...', 0) #1 /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(196): RecursiveDirectoryIterator->getChildren() #2 /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(130): Smarty_Internal_CacheResource_File->clear(Object(SmartyCustom), NULL, NULL, NULL, NULL) #3 /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/Smarty.class.php(825): Smarty_Internal_CacheResource_File->clearAll(Object(SmartyCustom), NULL) #4 /srv/data/web/vhosts/domain.com/htdocs/ in /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 196 Warning: file_get_contents(/srv/data/web/vhosts/domain.com/htdocs/cache/smarty/compile/90/e3/7b/90e37bec562df4fb9ca2dec466fbbf1b65e5af8e.file.hook.tpl.php): failed to open stream: No such file or directory in /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 156 Fatal error: Uncaught --> Smarty: Invalid compiled template for '/srv/data/web/vhosts/domain.com/htdocs/modules/themeconfigurator/views/templates/hook/hook.tpl' <-- thrown in /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 182 Fatal error: Uncaught --> Smarty: unable to write file /srv/data/web/vhosts/domain.com/htdocs/cache/smarty/compile/76/64/e4/wrt5857249f04e340_78447625 <-- thrown in /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/srv/data/web/vhosts/domain.com/htdocs/cache/smarty/compile/90/e3): failed to open dir: No such file or directory' in /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_utility.php:242 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/srv/data/web/v...', 0) #1 /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_utility.php(242): RecursiveDirectoryIterator->getChildren() #2 /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/Smarty.class.php(1469): Smarty_Internal_Utility::clearCompiledTemplate(NULL, NULL, NULL, Object(SmartyCustom)) #3 /srv/data/web/vhosts/domain.com/htdocs/classes/SmartyCustom.php(99): Smarty->clearCompiledTemplate() #4 /srv/data/web/vhosts/domain.com/htdocs/classes/SmartyCustom.php(118): SmartyCustomCore->check_compile_cache_invalidation() #5 /srv/data/web/vhosts/dom in /srv/data/web/vhosts/domain.com/htdocs/tools/smarty/sysplugins/smarty_internal_utility.php on line 242 Any help on what's causing them or (better) how to fix this would be wonderful Thank you Link to comment Share on other sites More sharing options...
selectshop.at Posted December 19, 2016 Share Posted December 19, 2016 Seems you are using a non native template ? The errors are coming from this template. You should ask developer for to fix the problems. If you are using the native template, than cache environment on your server could be disconfigured. In this case you should contact your provider for to fix the problems. Link to comment Share on other sites More sharing options...
USB83 Posted December 20, 2016 Author Share Posted December 20, 2016 Hi, Thank you for your answer No i'm using the default-bootstrap template with some css customization and that's it Link to comment Share on other sites More sharing options...
selectshop.at Posted December 21, 2016 Share Posted December 21, 2016 Contact your provider to fix the cache problem on your server. BTW, which php-version are you using ? Prestashop latest version should use not lower than php 5.4. best is 5.6. and opcache. Link to comment Share on other sites More sharing options...
bdussaux Posted March 8, 2018 Share Posted March 8, 2018 Hello, I've the same issues on a website in 1.6.1.9. With a lot of errors 500 like that : Quote Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::construct(/var/www/website/cache/smarty/cache/18/1/2/1/8/1b/67/3a): failed to open dir: No such file or directory' in /var/www/website/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:196 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->construct('/var/www/website...', 0) #1 /var/www/website/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(196): RecursiveDirectoryIterator->getChildren() #2 /var/www/website/tools/smarty/Smarty.class.php(845): Smarty_Internal_CacheResource_File->clear(Object(SmartyCustom), '/var/www/website...', NULL, NULL, NULL) #3 /var/www/website/classes/SmartyCustom.php(156): Smarty->clearCache('/var/www/website...', NULL, NULL) #4 /var/www/website/classes/SmartyCustom.php(120): SmartyCustomCore->check_template_invalidation('/var/www/website...', NULL, NULL) #5 /var/www/website/classes/module/Module.php(2335): SmartyCustomCore->createTemplate('/var/www/website...', NUL in /var/www/website/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 196 Quote Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::construct(/var/www/website/cache/smarty/cache/blocksearch_top/1/2/1/21/57/4d/29): failed to open dir: No such file or directory' in /var/www/website/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:196 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->construct('/var/www/website...', 0) #1 /var/www/website/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(196): RecursiveDirectoryIterator->getChildren() #2 /var/www/website/tools/smarty/Smarty.class.php(845): Smarty_Internal_CacheResource_File->clear(Object(SmartyCustom), '/var/www/website...', NULL, NULL, NULL) #3 /var/www/website/classes/SmartyCustom.php(156): Smarty->clearCache('/var/www/website...', NULL, NULL) #4 /var/www/website/classes/SmartyCustom.php(120): SmartyCustomCore->check_template_invalidation('/var/www/website...', NULL, NULL) #5 /var/www/website/classes/module/Module.php(2335): SmartyCustomCore->createTemplate('/var/www/s in /var/www/website/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 196 Did you resolve this problem? I made a lot of test to fix this issue, CHMOD ect. no result and still these errors. if i can have any help it will be great. Thanks a lot. Link to comment Share on other sites More sharing options...
selectshop.at Posted March 8, 2018 Share Posted March 8, 2018 @bdussaux - This is very old post, but the problem here was a server configuration. You should contact the server admin. Server caching feature, file and folder rights bad configured and need to be revised in this case. Link to comment Share on other sites More sharing options...
bdussaux Posted March 8, 2018 Share Posted March 8, 2018 @selectshop.at Thanks for your answer, i'm going to ask again to my server admin. Best, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now