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)
-   -   Smarty Error when skinning (https://forum.x-cart.com/showthread.php?t=41265)

John Ling 07-22-2008 05:15 AM

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

balinor 07-22-2008 05:18 AM

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.

John Ling 07-22-2008 05:51 AM

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.

balinor 07-22-2008 05:52 AM

Re: Smarty Error when skinning
 
Try emptying the templates_c folder in the var directory - that is where the cached templates are.

John Ling 07-22-2008 06:21 AM

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

balinor 07-22-2008 06:24 AM

Re: Smarty Error when skinning
 
Not sure I follow you?

John Ling 07-22-2008 06:39 AM

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

balinor 07-22-2008 06:42 AM

Re: Smarty Error when skinning
 
You don't need to change the skin1 directory, just the config.php file. Leave skin1 as it is.

John Ling 07-22-2008 06:52 AM

Re: Smarty Error when skinning
 
Thanks again!

sg_web 09-18-2008 12:51 PM

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?


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

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