Can't write certain cache files

I migrated to another server. I actually have two almost identical copies of my site on the new server one under a test domain. One works fine the other is throwing:





Warning: file_put_contents(/var/www/vhosts/domain.com/httpdocs/var/cache/top_menu.GET_0.0_1_35_ ALL PRODUCTS STOCK CAR QUARTER MIDGET SPRINT CAR</ in /var/www/vhosts/domain.com/httpdocs/core/fn.fs.php on line 813



Notice no indication in the error WHY the warning.



I verfied cache dir has 777 permission. Same as the site that is working! There are other cache files being written there though!

Please try clearing the template cache. To do it, open in your web browser http://www.your_domain.com/admin.php?cc, where www.your_domain.com is the address of your store, and admin.php is a script file for the administration panel of your store which was renamed for security reasons.



Also please check the “top_menu.tpl” file located in the “skins/[CUSTOMER_ACTIVE_SKIN]/customer” directory of your CS-Cart and make sure that there is no any problem with a third-party code in it (if any exists).

Wish it were that simple. I already delete all the files in the cache. The top_menu.tpl file only has HTML in it. It is the exact same top_menu.tpl file on the server where we don’t get the error.



Too bad the error message doesn’t say what the specific problem is.

The problem requires the investigation on your server. Please contact our support team via Customer Help Desk.

file_put_contents errors are nearly always related to permission problems but in this case it is indicating possible file corruption or a bad modification somewhere.



The error posted above is showing that cs-cart is attempting to create a file name that includes coding in the name itself instead of processing that code and including it within the cached file that should be created.


[quote]/var/www/vhosts/domain.com/httpdocs/var/cache/[COLOR=DarkRed]top_menu.GET_0.0_1_35_