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

Surprise Smarty Error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-15-2003, 11:15 AM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default Surprise Smarty Error

In the course of editing my displays, I seem to have made a change which causes this Smarty Error (which is displayed several times) on the page:

Warning: Smarty error: problem writing '../templates_c/831/831465441/0.php.' in /hsphere/local/home/marie/forsoapmakers.com/xcart/Smarty-2.1.1/Smarty.class.php on line 546

I'm not sure what I did that caused the error, but I'd like some help trying to narrow it down so I can fix it. The night before I noticed the error I was editing templates and my .css file. I did download and look at my home.php, but I don't think I made any changes (at least not intentionally!). I get the same errors in product.php, so I don't think that's it. I did work with the home.tpl, but I can't see what may have made the error.

After searching the forum, I ran cleanup.php - no change. I also did an info.php check ... safte mode is OFF, all the settings seem okay.

Any suggestions on what might have caused the error and how I can fix?
__________________
SoapLady
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
Reply With Quote
  #2  
Old 02-15-2003, 11:53 AM
  shan's Avatar 
shan shan is offline
 

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

Default

check you have no blank spaces at the end of the config.php file
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 02-15-2003, 02:12 PM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default

No blank spaces at the end of config.php.

I've been trying to narrow it down. The error does not occur when I access the admin pages, only on the customer pages.

Using the "Edit Templates" pages from the admin pages, I edited my customer/home.tpl file to try to determin what's causing the error. I took out EVERYTHING except the following:

Code:
{* $Id: home.tpl, v 1.39 2002/09/11 11:25:00 zorg Exp $ *} { config_load file="$skin_config" } <html> <head> <title>Soapmaking Supplies For Soapmakers </title> <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> </head> <body class="BackgroundWhite"> This is a test of the home.tpl </body> </html>

When I do a Preview to look at the changes , I get the following errors:

Quote:
Warning: MkDir failed (Permission denied) in /hsphere/local/home/marie/forsoapmakers.com/xcart/Smarty-2.1.1/Smarty.class.php on line 1462

Warning: Smarty error: problem creating directory "../templates_c/134/1342518308" in /hsphere/local/home/marie/forsoapmakers.com/xcart/Smarty-2.1.1/Smarty.class.php on line 546

Warning: Smarty error: problem writing '../templates_c/134/1342518308/0.php.' in /hsphere/local/home/marie/forsoapmakers.com/xcart/Smarty-2.1.1/Smarty.class.php on line 546

Warning: Failed opening '../templates_c/134/1342518308/0.php' for inclusion (include_path='.:/usr/local/lib/php') in /hsphere/local/home/marie/forsoapmakers.com/xcart/Smarty-2.1.1/Smarty.class.php on line 1075

Looking at the customer/home page in another browser window, I see the OLD page - no changes accepted (all the other .tpl files are still being called and there are a bunch of errors. (Of course I refreshed and even closed the browser window and went in clean. I also cleared my cache and temp internet files).

Something is definitely off ...

What HAVE I done?
Could this have been a change on from my server host?
__________________
SoapLady
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
Reply With Quote
  #4  
Old 02-15-2003, 02:22 PM
 
ivanrdgz ivanrdgz is offline
 

Member
  
Join Date: Jan 2003
Posts: 22
 

Default We are having the same problems and I think even the X-cart

...team doesn't have an answer to this problem. At least, when we submited them this problem the only answer was to try to use chmod 777 to the templates_c directory. Of course we tried but without any succes.
Reply With Quote
  #5  
Old 02-15-2003, 03:16 PM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default More tries to fix

I have tried everything I can think of, including CHMOD to 777 a number of the directories. Still can't figure out what CHANGED to make it not work.

The biggest wierdness right now is that if I go to Edit Templates and edit the customer/home.tpl template it DOESN'T MAKE ANY DIFFERENCE IN WHAT IS DISPLAYED.

How can THAT be?

Oh, please, does anyone have a clue what it is?
__________________
SoapLady
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
Reply With Quote
  #6  
Old 02-15-2003, 11:09 PM
  disneyana's Avatar 
disneyana disneyana is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Columbus, OH
Posts: 116
 

Default

Try changing the owner (CHOWN) of the directory to nobody:nobody. This also applies to /skin1 and /files
__________________
- disneyana
4.0.17
Reply With Quote
  #7  
Old 02-16-2003, 08:03 AM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default

Hi,

Did you try running:

http://www.yoursite.com/your-xcart-directory/cleanup.php

That might help.

ATKOgirl
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #8  
Old 02-16-2003, 08:43 AM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default Still No Luck

Thanks Disneyana and ATKOGirl.

I had already tried cleanup.php and it made no difference.

Don't know how to change the owner of the file ... so will have to figure that out.

Any idea why changes to the skin1/customer/home.php OR the skin1_original/customer/home.php (through text editor and upload) would not change display of customer pages?

Where would the page content be coming from?

Marie
__________________
SoapLady
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
Reply With Quote
  #9  
Old 02-16-2003, 08:30 PM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

May or may not be related but I had a rash of smarty errors magically appear on the customer end after restoring a template of all things.

Ran cleanup.php and it didn't help. Went to my file manager, found a bunch of files in templates_c %13 which was generating the errors. Manually deleted each of these, refreshed and the errors went away.
Reply With Quote
  #10  
Old 02-17-2003, 10:41 PM
 
SoapLady SoapLady is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 60
 

Default Template Corruption

I am beginning to think that it's some kind of template corruption.

I handled my first problem by reinstalling xcart, then re-linking to the old database and gradually, one at a time, copying in the templates I had updated. That handled all the problems and the errors stopped.

However, tonight I have another strange error ... a display that is just plain wrong .. and no mater how I noodle with the templates it won't change. Very strange ... doesn't appear to be a stupid programmer mistake (that would be me).

How can I determine what could/should be deleted in the templates_directory?

What IS the templates_c directory, anyway?
__________________
SoapLady
Working with various versions of X-Cart Gold
from 4.0.x to 4.4.1
(Trying to get everyone up to 4.4.x)
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 09:31 AM.

   

 
X-Cart forums © 2001-2020