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

Spontaneous Smarty Errors

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-28-2010, 12:45 PM
 
JazzyJeff JazzyJeff is offline
 

Senior Member
  
Join Date: Aug 2006
Location: Houston, TX
Posts: 188
 

Default Spontaneous Smarty Errors

Site was working fine this morning. No changes were made to any code recently.

Went away for 3 hours today and after came back noticed that site (both customer side and admin, and in all browser platforms) is throwing off all kinds of smarty errrors. Examples:

Warning: Smarty error: unable to read resource: "poweredby.tpl" in /home/jansenme/public_html/Smarty-2.6.12/Smarty.class.php on line 1093

Warning: Smarty error: unable to read resource: "dialog_tools_cell.tpl" in /home/jansenme/public_html/Smarty-2.6.12/Smarty.class.php on line 1093

After initially posting this the prices are all gone from the website.

Site format is screwed up and certain things in admin that are normally available as links in menu boxes are not available.

Any idea how smarty errors can spontaneously appear? Any easy fix?

Thanks
__________________
X-Cart Gold ver. 4.1.9

CDSEO Pro, X-AOM, Firetank's Feed Manager and Sitemap,
Altered Cart's Smart Search and 1-Page Checkout, On Sale,
and Marketing Manager Pro

Hosting by WiredTree
Reply With Quote
  #2  
Old 02-28-2010, 01:26 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Re: Spontaneous Smarty Errors

Hi Jeff,

Have you checked to see that the files it is complaining about are there?
If so check permissions/ownership on the files and make sure they are correct.
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #3  
Old 02-28-2010, 01:28 PM
 
JazzyJeff JazzyJeff is offline
 

Senior Member
  
Join Date: Aug 2006
Location: Houston, TX
Posts: 188
 

Default Re: Spontaneous Smarty Errors

The files are there and permissions haven't been changed. Host gave me a list of files changed since midnight and there is nothing suspicious.

I've opened a HotRush ticket with Qualiteam but they aren't open for quite awhile yet.

In meantime the site is unusable. Very frustrating.
__________________
X-Cart Gold ver. 4.1.9

CDSEO Pro, X-AOM, Firetank's Feed Manager and Sitemap,
Altered Cart's Smart Search and 1-Page Checkout, On Sale,
and Marketing Manager Pro

Hosting by WiredTree
Reply With Quote
  #4  
Old 02-28-2010, 01:29 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Re: Spontaneous Smarty Errors

Does the account have enough disk space?
Check in cpanel and make sure you are not at the limit
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #5  
Old 02-28-2010, 01:37 PM
 
JazzyJeff JazzyJeff is offline
 

Senior Member
  
Join Date: Aug 2006
Location: Houston, TX
Posts: 188
 

Default Re: Spontaneous Smarty Errors

Quote:
Originally Posted by Emerson
Does the account have enough disk space?
Check in cpanel and make sure you are not at the limit

Yes - using 3927.11 / ∞ MB

Nowhere near the maximum
__________________
X-Cart Gold ver. 4.1.9

CDSEO Pro, X-AOM, Firetank's Feed Manager and Sitemap,
Altered Cart's Smart Search and 1-Page Checkout, On Sale,
and Marketing Manager Pro

Hosting by WiredTree
Reply With Quote
  #6  
Old 02-28-2010, 01:43 PM
 
JazzyJeff JazzyJeff is offline
 

Senior Member
  
Join Date: Aug 2006
Location: Houston, TX
Posts: 188
 

Default Re: Spontaneous Smarty Errors

Any idea why the smarty errors are changing without any change to the site? Now the smarty error on top of every page (customer and admin) is:

Warning: Smarty error: unable to read resource: "alteredCart_lib.tpl" in /home/jansenme/public_html/Smarty-2.6.26/Smarty.class.php on line 1093

No prices are displayed (no error) and dialog boxes with menu links on top in admin are empty. Seems quite strange that errors are changing without some intervention.
__________________
X-Cart Gold ver. 4.1.9

CDSEO Pro, X-AOM, Firetank's Feed Manager and Sitemap,
Altered Cart's Smart Search and 1-Page Checkout, On Sale,
and Marketing Manager Pro

Hosting by WiredTree
Reply With Quote
  #7  
Old 02-28-2010, 01:54 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Re: Spontaneous Smarty Errors

Hard to tell Jeff,

Are you sure there are no issues with the server?
Has the host checked the server/logs for hacks?
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #8  
Old 02-28-2010, 05:16 PM
 
JazzyJeff JazzyJeff is offline
 

Senior Member
  
Join Date: Aug 2006
Location: Houston, TX
Posts: 188
 

Default Re: Spontaneous Smarty Errors

With the number of files that were missing/deleted - all in Skin1 - it had to be a hack of some type. I have changed all passwords and manually uploaded the missing files. WiredTree was taking too long (couple of hours) before they were in a position to do a restore from backup - so I manually uploaded and modified the files. What a hassle and lost about 7 hours of usable uptime today.

Now just have to try to figure out how it happened and how to prevent it from happening again.
__________________
X-Cart Gold ver. 4.1.9

CDSEO Pro, X-AOM, Firetank's Feed Manager and Sitemap,
Altered Cart's Smart Search and 1-Page Checkout, On Sale,
and Marketing Manager Pro

Hosting by WiredTree
Reply With Quote
  #9  
Old 02-28-2010, 05:25 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Re: Spontaneous Smarty Errors

If it was a hack they should be able to tell from the logs on the server how and where it happened.
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #10  
Old 02-28-2010, 05:38 PM
 
JazzyJeff JazzyJeff is offline
 

Senior Member
  
Join Date: Aug 2006
Location: Houston, TX
Posts: 188
 

Default Re: Spontaneous Smarty Errors

They don't seem to interested in reviewing logs to figure it out. However, I am manually doing a FTP backup of all files to a local drive, and in the process AVG found a trojan in the files.

Trojan Horse PHP Backdoor.R57Shell was inserted into the files directory using filename tpl.php. Without researching the trojan yet that would likely be the cause of today's events.
__________________
X-Cart Gold ver. 4.1.9

CDSEO Pro, X-AOM, Firetank's Feed Manager and Sitemap,
Altered Cart's Smart Search and 1-Page Checkout, On Sale,
and Marketing Manager Pro

Hosting by WiredTree
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 12:41 PM.

   

 
X-Cart forums © 2001-2020