Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Smarty Error when skinning

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-22-2008, 05:15 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Unhappy Smarty Error when skinning

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
Reply With Quote
  #2  
Old 07-22-2008, 05:18 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Smarty Error when skinning

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
Reply With Quote
  #3  
Old 07-22-2008, 05:51 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Unhappy Re: Smarty Error when skinning

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
Reply With Quote
  #4  
Old 07-22-2008, 05:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Smarty Error when skinning

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
Reply With Quote
  #5  
Old 07-22-2008, 06:21 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Talking Re: Smarty Error when skinning

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
Reply With Quote
  #6  
Old 07-22-2008, 06:24 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Smarty Error when skinning

Not sure I follow you?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-22-2008, 06:39 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Default Re: Smarty Error when skinning

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
Reply With Quote
  #8  
Old 07-22-2008, 06:42 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Smarty Error when skinning

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
Reply With Quote
  #9  
Old 07-22-2008, 06:52 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Default Re: Smarty Error when skinning

Thanks again!
__________________
X-Cart Version 4.2.3
Reply With Quote
  #10  
Old 09-18-2008, 12:51 PM
 
sg_web sg_web is offline
 

Member
  
Join Date: May 2008
Posts: 29
 

Default Re: Smarty Error when skinning

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:56 PM.

   

 
X-Cart forums © 2001-2020