| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Smarty Error when skinning | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello everyone,
I have been starting to learn the skinning process for X-cart but I have run into an error while trying to create a new skin and I am stumped. Warning: Smarty error: unable to read resource: "customer/home.tpl" in /homepages/15/d225802726/htdocs/.../shop/Smarty-2.6.12/Smarty.class.php on line 1095 Here is what I did: I copied the entire "shop" directory, where the root of x-cart install resides, to a different folder on the server and assigned a different domain to it. Everything is identical to the working x-cart install as far as structure goes however it will not load the initial page with the new location. The error above is returned. Does anyone have any ideas? I am guessing it is something simple that I have overlooked. I am not concerned about the functionality of certain features of this new copy; I am only trying to achieve this for front-end designing. Please, can anybody help? Thanks John
__________________
X-Cart Version 4.2.3 |
|||||||
#2
|
|||||||
|
|||||||
![]() First, make sure you changed config.php to reflect the new domain. Next, make sure you copied ALL of the templates, and set the permissions correctly so they can be read. Finally, you may need to flush your cache via the summary/tools area of the admin.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thank you for your fast reply!
I have checked the config.php file and I have found the incorrect domains. I have now changed that but the problem still remains ![]() I have noticed as well that I cannot access the admin for this copied folder. (shop.domain.com/admin) does not work, I get a similar error but on single/home.tpl this time instead of customer/home.tpl. I was trying to access this to flush the cache. Here is the error: Warning: Smarty error: unable to read resource: "single/home.tpl" in /homepages/15/d225802726/htdocs/.../shop/Smarty-2.6.12/Smarty.class.php on line 1095 As far as permissions go, all the main folders seem to be 755 and files within either 755 or 644. When the directory is copied, the attributes should remain the same shouldn't they? I really appreciate your help so far my friend. It feels one step-closer to working. Thank you. John.
__________________
X-Cart Version 4.2.3 |
|||||||
#4
|
|||||||
|
|||||||
![]() Try emptying the templates_c folder in the var directory - that is where the cached templates are.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Ohhh man, I found the problem.
I changed the skin folder name itself within the shop directory and that is why no files were being read. I'm sorry to bother you with this but I really appreciate your help! Thank you very much. Would you know how I would go about changing the initial install directory for the skin that loads up? and have all files work correctly based on this sub-folder change name now that we know what happened? Thanks again, John
__________________
X-Cart Version 4.2.3 |
|||||||
#6
|
|||||||
|
|||||||
![]() Not sure I follow you?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() ohh sorry, ok so in the main directory, there is a skin1_original folder and another skin folder where the initial design resides. I changed the name of the skin (design) folder to reflect the new domain and that is why I had the error.
I just have no idea how to change that skin folder name and allow the site to load up the skin properly. John
__________________
X-Cart Version 4.2.3 |
|||||||
#8
|
|||||||
|
|||||||
![]() You don't need to change the skin1 directory, just the config.php file. Leave skin1 as it is.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() Thanks again!
__________________
X-Cart Version 4.2.3 |
|||||||
#10
|
|||||||
|
|||||||
![]() i'm having a similar problem and clearing the templates_c folder didn't resolve it. i've built the site on our development server and all was well. just installed it on the client's hosting (different server) and i can't access the admin area.
Warning: Smarty error: unable to read resource: "admin/home.tpl" in \\frigga\home\users\web\b2462\ph.d30001099\shop\Sm arty-2.6.19\Smarty.class.php on line 1092 I've confirmed that home.php is in the admin folder - reloaded it and even copied and pasted directly into the file - still no luck. any other suggestions for getting around this? could it be an issue with the client's server configuration?
__________________
X-Cart version 4.1.10 and 4.2 for client sites Sandi Gauder CMS Web Solutions Inc. cmswebsolutions.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|