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....need help!! (https://forum.x-cart.com/showthread.php?t=1859)

movienett 03-13-2003 10:46 AM

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>


ATKOgirl 03-13-2003 10:55 AM

Hi,

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

ATKOgirl

movienett 03-13-2003 11:23 AM

Just tried the cleanup, but no luck...

machnhed1 03-13-2003 12:21 PM

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.

movienett 03-13-2003 12:43 PM

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

movienett 03-13-2003 12:45 PM

one more thing...the body tag is intact :)

machnhed1 03-13-2003 12:52 PM

8O I don't know how I missed that.

movienett 03-13-2003 01:39 PM

i restored home.tpl, but the smarty error was still there....this is weird, havent changed anything, and suddenly this happens..

machnhed1 03-13-2003 01:47 PM

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.

movienett 03-13-2003 02:22 PM

nothing helps...guess i have to contact x-cart folks...ill post the solution !

Hthr 03-20-2003 07:18 AM

I am having the same problem. Did you have any luck in resolving your problem?

movienett 03-20-2003 11:47 AM

Yes, i had some permission problems again, it wouldnt write to templates_c dir, i never learn this chmod thingy 8O


All times are GMT -8. The time now is 01:00 AM.

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