| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Smarty Template Error | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
I was adding a couple of files the xcart guys gave me for doubling up the product on the pages (which look great) however I was adding it to another site I am doing and got the error Warning: Smarty error: unable to read template resource: "currency.tpl" in /home/virtual/camerons/home/httpd/html/store/Smarty-2.0/Smarty.class.php on line 470 My isp coudn't delete the folders under templates directory. Is this generally the problem? or do I need to do something else. The site was working fine until this!! I have used the same couple of files on four sites now without any problems. Thank you Eliz http://www.emccdesign.com
__________________
Live long and wrinkle! |
|||||||
#2
|
|||||||
|
|||||||
![]() Hi Eliz,
Quote:
Sounds like it could be due to the file permissions on the new file you uploaded. Check and change is required using 'chmod 777 file_name.tpl' Quote:
To delete or clear the "templates_c" folder run "www.your_website/xcart/cleanup.php" form your Browser once the compiled templates have been removed by "cleanup.php", you will be able to delete the empty folder. (you may have to change file permissons first 'chmod 777 templatec_c') If you have already sent the "templates_c" folder to the trash can, you will have to "restore" it, then use "cleanup.php" to empty it. Note: These are only compiled templates, they are not the "original" templates. New Compiled templates will be created on first access, and stored in the "templates_c" folder. If you are changing a lot of files, it's good pratice to run "cleanup.php" to remove the old compiled files.
__________________
Syddos Nothing is impossible, We just don't know how to do it ........Yet! Xcart 4.1.X PRO (Testing Platform: winXP Pro) Perl 5.8.7 (win32) WINAMP 1.6.3 (win32 server package. Includes the following) - phpMyAdmin v2.8.03 - MySql 5.0.21 - Apache 2.0.55 (win32) - php 5.1.4 - SQLitemanager 1.2.0 |
|||||||
#3
|
|||||||
|
|||||||
![]() By newly "compiled templates" do you mean newly created, modified or both?
Also when you say it clears the old templates, which ones do you mean? Thanks Matt |
|||||||
#4
|
|||||||
|
|||||||
![]() Quote:
Hi Matt, I think I need to explain how XCart works. [list=1][*]Lets start with the "customer/home.tpl". This template file is ran every time a user clicks on Any Menu Link. "customer/home.tpl" contains the Layout <HTML>, <HEAD>, <TITLE>, <BODY> tags, and the main <TABLE> for the page layout (LEFT column, CENTER column, RIGHT column) <TR><TD> tags. All the other templates (.tpl) files e.g. "main/register.tpl", "news.tpl", "help.tpl" etc are included in "customer/home.tpl" (v3.1.x) in "customer/main_home.tpl" (v3.2.x )[*] When a customer connects to xcart, Smarty gets All the template files, required to produce that page.
I know some people in this forum have had problems, when deleting xcart from their servers, they always find that the template_c directory remains after all the other files have been deleted (depending on what file permissions you have changed). Some have found that their Hosting Site support staff cannot delete the template_c directory. If this has happened to you, and you need the space, and you used the control panel to delete the files on your server, you will need to do several things in the following order
![]() Regards,
__________________
Syddos Nothing is impossible, We just don't know how to do it ........Yet! Xcart 4.1.X PRO (Testing Platform: winXP Pro) Perl 5.8.7 (win32) WINAMP 1.6.3 (win32 server package. Includes the following) - phpMyAdmin v2.8.03 - MySql 5.0.21 - Apache 2.0.55 (win32) - php 5.1.4 - SQLitemanager 1.2.0 |
|||||||
#5
|
|||||||
|
|||||||
![]() Hi Syddos,
Thanks for the detailed reply ![]() Matt |
|||||||
|
|||
X-Cart forums © 2001-2020
|