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)
-   -   Template_c messed up directory (https://forum.x-cart.com/showthread.php?t=3122)

dri 06-10-2003 08:53 AM

Template_c messed up directory
 
X-cart v 3.3.6

I've been able to so easily make changes to the templates that I got a little carried away and tried to create an if statement in my dialog.tpl. It wasn't written correctly and I got an error:

unexpected T_ENDIF in /home/mydirectory/public_html/store/templates_c/%%-13/%%-1366895660/products.tpl.php on line 41

I took the offending code out of dialog.tpl and ran cleanup.php, still got the error.

I tried putting $smarty->clear_compiled_tpl(); in customer/home.php
and got
Fatal error: Call to a member function on a non-object in /home/mydirectory/public_html/store/customer/home.php on line 50

Figuring that I may be forced to reinstall anyway, and because I cannot see any files in any of the template_c directories (template_c directory permissions are drwxrwxrwx 37 99 99
I tried uploading the %%-13 subdirectory, but I can't change it's permissions from drwxr-xr-x and now I can't see ANY of the pages of my store (document contained no data error).

safemode is Off.

Any suggestions how to fix this, and more importantly to avoid this type of thing in the future, when you cannot seem to recover from a mistake?

shan 06-10-2003 10:24 AM

you can always restore a template from the edit templates page in your admin. or you could just copy a fresh version of the file that you think may have messed up from the skin1_origional folder back into the skin1 folder

dri 06-10-2003 11:00 AM

Thanks Shan, I knew that, but I was hoping for a solution to the problem of not being able to clear files out of templates_c directory

shan 06-10-2003 11:49 AM

you need to run cleanup.php and the without looking at your store again (as this will recreate what you just deleted with the cleanup) dlete the templates_c folder.

you can then recreate it and set its chmod value to 777

dri 06-10-2003 01:31 PM

Shan, Thanks, that's exactly what I wanted to know and I've already had an opportunity to try it out javascript:emoticon(':(') on the newly installed site and it works.javascript:emoticon(':D')


All times are GMT -8. The time now is 01:47 AM.

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