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

Weird .Tpl error?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-30-2003, 07:49 PM
 
Ferrett Ferrett is offline
 

Member
  
Join Date: Jun 2003
Location: Editor-in-chief and Webmaster
Posts: 11
 

Default Weird .Tpl error?

I edited my poweredby.tpl file in Dreamweaver in order to add a line. It used to be:

Code:
{* $Id: poweredby.tpl,v 1.4 2002/08/20 13:16:29 zorg Exp $ *} <center> [img]{$ImagesDir}/powered.gif[/img] </center>

And I want it to be:

Code:
{* $Id: poweredby.tpl,v 1.4 2002/08/20 13:16:29 zorg Exp $ *} <center> [img]{$ImagesDir}/powered.gif[/img] [img]http://sales.starcitygames.com/images/instantssl_site_seal.gif[/img] </center>

However, I edited it in Dreamweaver, uploaded it, and then got this error on the main page at sales.starcitygames.com:

Warning: Smarty error: problem writing '../templates_c/N17/N1700694/0.php.' in /home2/starcart/public_html/Smarty-2.1.1/Smarty.class.php on line 546

I've tried reuploading the old file, and transferring it via ASCII just in case, but nothing stops this rather annoying error message - and to add insult to injury, IT DOESN'T EVEN SHOW THE OTHER IMAGE. I've even tried restarting the Apache service, but it's the same error.

Anyone know why this is? And how do I revert it?
__________________
The Ferrett
Editor and Webmaster, StarCityGames.com
Reply With Quote
  #2  
Old 09-30-2003, 07:57 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

Did you try the restore button on the template edit page?
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #3  
Old 10-01-2003, 12:31 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

also dont use hard coded urls as this will cause problems with the https server.

reference your images like this


and keep your images in the skin1/images folder
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 10-01-2003, 05:15 AM
 
Ferrett Ferrett is offline
 

Member
  
Join Date: Jun 2003
Location: Editor-in-chief and Webmaster
Posts: 11
 

Default

Quote:
Originally Posted by DogByteMan
Did you try the restore button on the template edit page?

Alas, I'm running version 3.2.1, and the only option I have is to restore ALL templates, which is distinctly not what I want to do....
__________________
The Ferrett
Editor and Webmaster, StarCityGames.com
Reply With Quote
  #5  
Old 10-01-2003, 05:18 AM
 
Ferrett Ferrett is offline
 

Member
  
Join Date: Jun 2003
Location: Editor-in-chief and Webmaster
Posts: 11
 

Default

Quote:
Originally Posted by shan
also dont use hard coded urls as this will cause problems with the https server.

reference your images like this


and keep your images in the skin1/images folder

Ah, so THAT'S where other sites' errors about "This page contains secure and insecure items" comes from! Thanks for the heads-up. Shall do.

But any suggestions as to what not to do when the "restore" button is not an option in 3.2.1?
__________________
The Ferrett
Editor and Webmaster, StarCityGames.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:58 AM.

   

 
X-Cart forums © 2001-2020