Jump to content

Update order status error - related to smarty cache ?


dtwfung

Recommended Posts

Hi there,

 

Anyone out there experience with this error on PS 1.6.0.14.

It happens recently.

When I update order status, e.g. "processing", "shipped"... Status does not matter.

System prompted for error as follows:

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(<MY_HOME>/public_html/prshop/cache/smarty/cache/crossselling/shoppingcart/3/265/673/1111/242/1141/1148/1155/859/1047/1046/1156/1083/1080/965/1/54/704/211/500/705/1030/1159/1124/1123/1117/1116/1115/1114/1113/1112/1102/1100/1130/1110/1109/1108/1105/1104/1103/1079/1071/1157/1129/1078/1077/986/922/921/130/818/817/798/797/776): failed to open dir: Too many open files' in <MY_HOME>/public_html/prshop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:196 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('<MY_HOME>/...', 0) #1 <MY_HOME>/public_html/prshop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(196): RecursiveDirectoryIterator->getChildren() #2 <MY_HOME>/public_html/prshop/tools/smarty/Smarty.class.php(845): Smarty_Internal_CacheResource_File->clear(Object(Smarty), '<MY_HOME>/...', 'crossselling', NULL, NULL) #3 <MY_HOME>/ in <MY_HOME>/public_html/prshop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 196

 

The overall order status shown correctly when seeing from BO -> orders summary page.

When click on the individual order status itself. no such status is updated.

 

Sometimes when I delete all files/folder in cache/smarty/cache, same operation works properly.

 

Any comment would be greatly appreaciated !

 

Thanks

David

Link to comment
Share on other sites

From the error message, it seems that there are too many folders and files.

Please try to clear your Smarty cache and compile folder and see if it fixes.

 

/cache/smarty/compile

/cache/smarty/cache

Thanks for your advise. I knew this is a workaround. By deleting all files and folders in these two folders. The update process is working.

However, the point is 

I have few orders creating every day. Once I got this error, the record in t3e_order_history cannot be created. I have to insert them one by one. This is plainful...

 

See if anyone have better solution !

 

Many thanks

Link to comment
Share on other sites

failed to open dir: Too many open files

 

Since this is the error, so the only way to fix this to ask your service provider to increase the limit of your open file counts for your hosting account.

Thanks again. I will check with my service provider on this.

Do you know the exact name on the parameter on "limit of your open file counts" ?

Link to comment
Share on other sites

  • 4 months later...

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