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

smarty error....need help!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-13-2003, 10:46 AM
 
movienett movienett is offline
 

Member
  
Join Date: Feb 2003
Location: Norway
Posts: 27
 

Default smarty error....need help!!

Suddenly i got this error :Warning: Smarty error: problem writing '../templates_c/%%151/%%1512206380/home.tpl.php.' in /home/movienett/www/shop/Smarty-2.3.0/Smarty.class.php on line 589
here is my home.tpl, does anyone see any bugs here ?

Code:
{* $Id: home.tpl,v 1.42 2002/10/22 10:27:05 olga Exp $ *} { config_load file="$skin_config" } <html> <head> <title> {$lng.txt_site_title} {if $main eq "catalog"} {if $location eq ""} {$lng.txt_subtitle_home} {else} {strip} {section name=position loop=$location start=0 } {if %position.last% eq "true"} - {$location[position].0|escape} {/if} {/section} {/strip} {/if} {elseif $main eq "product"} {if $product.product ne ''} - {$product.product} {/if} {elseif $main eq "help"} {$lng.txt_subtitle_help} {elseif $main eq "cart"} {$lng.txt_subtitle_cart} {elseif $main eq "checkout"} {$lng.txt_subtitle_checkout} {elseif $main eq "order_message"} {$lng.txt_subtitle_thankyou} {/if} </title> { include file="meta.tpl" } <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> <style type="text/css"> </style> </head> <body LEFTMARGIN=0 TOPMARGIN=20 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <div align="center"><table width="780" border="1" bordercolor="#000066" cellpadding="0" cellspacing="0"><tr><td valign="top"> { include file="head.tpl" } <table border=0 width=780 cellpadding=0 cellspacing=0 align="center"> <tr> <td width=150 valign=top background="{$ImagesDir}/bg.gif"> { include file="customer/categories.tpl" } {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"} { include file="modules/Bestsellers/menu_bestsellers.tpl" } {/if} {if $active_modules.Gift_Certificates ne ""} { include file="modules/Gift_Certificates/gc_menu.tpl" } {/if} { include file="help.tpl" } </td> <td width=20 bgcolor="#FFFFFF"></td> <td valign=top width="432" bgcolor="#FFFFFF"> {include file="customer/home_main.tpl"} </td> <td width=20 bgcolor="#FFFFFF"></td> <td width=150 valign=top background="{$ImagesDir}/bg.gif"> { include file="customer/menu_cart.tpl" } {if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if} { include file="news.tpl" } </td> </tr> <tr class=.tr> <td background="{$ImagesDir}/meny_bg.gif"></td> <td background="{$ImagesDir}/meny_bg.gif"></td> <td background="{$ImagesDir}/meny_bg.gif"> { include file="copyright.tpl" } </td> <td background="{$ImagesDir}/meny_bg.gif"></td> <td background="{$ImagesDir}/meny_bg.gif"></td> </tr> </table> </td></tr></table></div> </body> </html>
Reply With Quote
  #2  
Old 03-13-2003, 10:55 AM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default

Hi,

Try running http://www.yoursite.com/cleanup.php

ATKOgirl
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #3  
Old 03-13-2003, 11:23 AM
 
movienett movienett is offline
 

Member
  
Join Date: Feb 2003
Location: Norway
Posts: 27
 

Default

Just tried the cleanup, but no luck...
Reply With Quote
  #4  
Old 03-13-2003, 12:21 PM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

It appears you got rid of your smarty tag - { include file="rectangle_top.tpl" }. Was this intentional? Try adding it back in.

If that doesn't work save a copy of your current code and try restoring the original home.tpl file. If the error doesn't go away you will know it's not in your home.tpl file. If it does go away, begin adding in the code from your saved file until the error appears. It's a bit tedious, but you should find it soon enough.
Reply With Quote
  #5  
Old 03-13-2003, 12:43 PM
 
movienett movienett is offline
 

Member
  
Join Date: Feb 2003
Location: Norway
Posts: 27
 

Default

well, i did remove the "rectangle.tpl", and it worked fine after that, so the bug is somewhere else...im gonna try restore the home.tpl now
Reply With Quote
  #6  
Old 03-13-2003, 12:45 PM
 
movienett movienett is offline
 

Member
  
Join Date: Feb 2003
Location: Norway
Posts: 27
 

Default

one more thing...the body tag is intact
Reply With Quote
  #7  
Old 03-13-2003, 12:52 PM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

I don't know how I missed that.
Reply With Quote
  #8  
Old 03-13-2003, 01:39 PM
 
movienett movienett is offline
 

Member
  
Join Date: Feb 2003
Location: Norway
Posts: 27
 

Default

i restored home.tpl, but the smarty error was still there....this is weird, havent changed anything, and suddenly this happens..
Reply With Quote
  #9  
Old 03-13-2003, 01:47 PM
 
machnhed1 machnhed1 is offline
 

eXpert
  
Join Date: Feb 2003
Location: Illinois
Posts: 274
 

Default

I took a closer look at your smarty error. Make sure that the chown on your templates_c directory is nobody/nobody and that the directory is chmod'd to 777. I think smarty is trying to recompile your home.tpl (because you made changes to it), but can't because the templates_c directory isn't set up properly.
Reply With Quote
  #10  
Old 03-13-2003, 02:22 PM
 
movienett movienett is offline
 

Member
  
Join Date: Feb 2003
Location: Norway
Posts: 27
 

Default

nothing helps...guess i have to contact x-cart folks...ill post the solution !
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 03:29 AM.

   

 
X-Cart forums © 2001-2020