X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Final solution to smarty template_c cache error? (https://forum.x-cart.com/showthread.php?t=660)

dsaveall 11-15-2002 07:50 AM

Final solution to smarty template_c cache error?
 
Hi Fellas - I've had the same issues with the template_c directory, all the permissions problems and so forth. I'm not sure how they started for most of you, but for me it just started happening out of nowhere.. Which was a little un-nerving, as I'm getting ready to let this site go live..

Thanks to the forums here i've been able to solve most of the problems.. BUT, after all the fixes that I had to perform there is still a mkdir error on a few templates.. ?

The question that I am posing is - Do we have to create the templates_c directory and ALL the folders that seem to be eventually created - to solve this problem once and for all..?

Thanks for listening - Lots of great info floating around in here, thanks for your help, dss.

Code:

Warning: mkdir() failed (Permission denied) in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 1462

Which of course results in ::

Code:

Warning: Smarty error: problem creating directory "../templates_c/137/1378207580" in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 546

Warning: Smarty error: problem writing '../templates_c/137/1378207580/0.php.' in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 546

Warning: Failed opening '../templates_c/137/1378207580/0.php' for inclusion (include_path='./:/usr/local/lib/php') in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 1075


B00MER 11-15-2002 08:33 AM

Code:

mkdir templates_c; chmod 777; chown nobody.nobody;

tempaltes_c/ is created upon installation however all subdirs are created from the actually Smarty.class template engine, hence the reason chmod 777 and change owner nobody. This way your webserver can write to the directory. If your running apache from another user other than nobody then you'll need to change it to the same permissions as your webserver is running. :wink:

:arrow: http://smarty.php.net/

dsaveall 11-18-2002 12:58 PM

thanks BOOMER
 
:D -- that helps... thanks a million... i had renamed the templates_c dir to delete_me and created a new dir called templates_c which i chmod'd to 777 -- BUT the template engine had to still create all the subdirectories which is where i was having the problem... didn't know if i had to go in and create all the sub folders too? i asked my webhost to go in and change the permissions of all the sub directories and that seemed to solve the problem.... thanks again, dss...

p.s. - x-cart said the problem stems from the difference in https and http users.. i need to research exactly what they are talking about.. it makes a little sense but not total sense to me yet.... cheers...

Jeannie 01-27-2003 10:46 PM

Quote:

p.s. - x-cart said the problem stems from the difference in https and http users..

Could that be the reason for this problem?

v3.3
Registered member logs in - adding item to Wishlist returns Smarty Errors .....for some reason it's going to https on Add to Wishlist.

I put Registering in https so is that affecting the Wishlist somehow?
In test mode right now so using SSL of host not my domain name.


All times are GMT -8. The time now is 10:53 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.