Jump to content

Fatal error in module smarty_internal_cacheresource_file


Recommended Posts

Hi,

Whenever I am updating ANY installed module component (such as Contact Block phone number)

 

I am having the following error:

 

[PrestaShop] Fatal error in module smarty_internal_cacheresource_file:

Maximum execution time of 60 seconds exceeded

 

I already increased the max_execution, and max_input in the php.ini to well over 300 seconds, and this did not fix the issue(s).

 

I also under "performance" I am not using any "cache" (i.e. PECL, APC, etc...jsut set to "filesystem") ...although I am using the Apache cache noted on that page...this does not effect the issue either way though).

 

Lastly, I am running on a Windows XP pro box, and running from home (i.e. not hosted), thus file permissions are not an issue.

 

I have read every possible posting (in several languages) on this issue and so far it appears that no one has resolved. Everyone seems to think permissions, or script timeout, ...not the resolution for me thus far.

 

Thank You for any info to resolve!!!

 

OUTPUT from APACHE error log:

 

 

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 300 seconds exceeded in C:\\wamp\\www\\tools\\smarty\\sysplugins\\smarty_internal_cacheresource_file.php on line 188, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 1. {main}() C:\\wamp\\www\\admin_dir\\index.php:0, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 2. DispatcherCore->dispatch() C:\\wamp\\www\\admin_dir\\index.php:50, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 3. ControllerCore->run() C:\\wamp\\www\\classes\\Dispatcher.php:349, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 4. AdminModulesControllerCore->postProcess() C:\\wamp\\www\\classes\\controller\\Controller.php:158, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 5. AdminModulesControllerCore->postProcessCallback() C:\\wamp\\www\\controllers\\admin\\AdminModulesController.php:795, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 6. Blockcontact->getContent() C:\\wamp\\www\\controllers\\admin\\AdminModulesController.php:675, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 7. ModuleCore->_clearCache() C:\\wamp\\www\\modules\\blockcontact\\blockcontact.php:67, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 8. ToolsCore::clearCache() C:\\wamp\\www\\classes\\module\\Module.php:1671, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 9. Smarty->clearCache() C:\\wamp\\www\\classes\\Tools.php:2131, referer: http://www.myshop.co...me=blockcontact

[sat Jul 27 01:10:16 2013] [error] [client 127.0.0.1] PHP 10. Smarty_Internal_CacheResource_File->clear() C:\\wamp\\www\\tools\\smarty\\Smarty.class.php:772, referer: http://www.myshop.co...me=blockcontact

Link to comment
Share on other sites

  • 1 month later...

Good evening,

I got the same error in PS1.5.5 when updating products :

[Fri Sep 13 18:32:28 2013] [error] [client 81.57.134.5] PHP Fatal error:  Maximum execution time of 10 seconds exceeded in /home/www/23f5d89a4d0fc860f9cb05014821dbb2/web/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 180, referer: http://www.africouleur.com/adminafv4/index.php?controller=AdminProducts&id_category=53&id_product=261&updateproduct&token=59deca4b96a2236afdc3f0ea5763f8f0

Best regards.

Link to comment
Share on other sites

Good evening,

I got the same error in PS1.5.5 when updating products :

[Fri Sep 13 18:32:28 2013] [error] [client 81.57.134.5] PHP Fatal error:  Maximum execution time of 10 seconds exceeded in /home/www/23f5d89a4d0fc860f9cb05014821dbb2/web/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 180, referer: http://www.africouleur.com/adminafv4/index.php?controller=AdminProducts&id_category=53&id_product=261&updateproduct&token=59deca4b96a2236afdc3f0ea5763f8f0

Best regards.

 

Your host have poor value of max execution time (10 sec) are you able to change this param in php.ini file?

Link to comment
Share on other sites

Thank you for replying so swiftly. No I cant change php.ini where I am hosted (swiss security, you know...).

I cleaned the cache and it seems to be working better.

Anyway it should certainly not take more than 10s to a server to update one single product, isn'it ?

Link to comment
Share on other sites

Thank you for replying so swiftly. No I cant change php.ini where I am hosted (swiss security, you know...).

I cleaned the cache and it seems to be working better.

Anyway it should certainly not take more than 10s to a server to update one single product, isn'it ?

 

for some servers it very well could take that long...if your server is overrloaded by other domains...just an example...

 

try this (hack Swedish security:))

 

add this to the top of your .htaccess file

<IfModule mod_php5.c>
php_value max_execution_time 30
</IfModule>
Link to comment
Share on other sites

Well unfortunately Swiss are tough : "memory_limit and max_execution_time settings are set at the Apache configuration level and so cannot be changed." or so they say, Cf https://www.infomaniak.com/support/faq/faq_home.php?language=english&faq=136?language=english

So that leaves to the question, why should it take more than 10s for a server (even busy) to update one single product ?

Okay, I'll update products in the morning when people are sleeping.

Link to comment
Share on other sites

×
×
  • Create New...