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