Jump to content

Frequent HTTP ERROR 500, ideas on how to solve it ?


USB83

Recommended Posts

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

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

  • 1 year later...

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

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