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

Smarty Fatal Error? HELP!!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-04-2003, 08:59 AM
 
loopit loopit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 32
 

Default Smarty Fatal Error? HELP!!!

I just set up X-CART on my site and everything checked out fine in the install, but then at the end when it said to preview it, it came up with this error:

Fatal error: Failed opening required '//Smarty-2.3.0/Smarty_Compiler.class.php' (include_path='') in //Smarty-2.3.0/Smarty.class.php on line 1084

This comes up whenever I try accessing the customer directory or any other page. I wrote support last night and they wrote back with:

That means PHP module can not include a file with Smarty class and you should correct include_path setting in php.ini. Try to set it to:

include_path = ".:.."

Unfortunately, I cannot modify the php.ini file. Is there any other way around this?

Any help would be greatly appreciated.
Reply With Quote
  #2  
Old 04-04-2003, 12:17 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Make sure the Smarty-2.3.0/ directory exists under the root of the xcart/ install. Compare it with your .tgz file contents, you should be able to open it with winrar, or such.

The require_once(); in line 1084 of Smarty.class contains a require for the .class but doesn't find it, so make sure its intact and you shouldn't be having a problem.

Did you get any [ERRORS] upon install?

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 04-04-2003, 12:20 PM
 
loopit loopit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 32
 

Default

Hello BOOMER,

THANK YOU for responding! When I installed the only thing that didn't say OK, was the magic quotes. When I started getting this error, I deleted the Smarty directory, and uploaded it in WS_FTP as auto detect mode.

The Smarty-2.3.0 folder is located inside of the main cart install directory.

Any other ideas?


Jeff
Reply With Quote
  #4  
Old 04-04-2003, 12:38 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

perhaps the magic quotes is causing the problem im not really sure, but you may hafta get to php.ini regardless.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 04-04-2003, 02:56 PM
 
loopit loopit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 32
 

Default

I turned magic_quotes on via an htaccess file in the cart directory. I deleted everything and did a fresh install and when it ran the checks, everything turned out OK this time. I then installed it via the Command Line after unpacking the tar file.

It is still coming up with this error. I would think there has to be a way around this because I image that most of the users of X-CART do not have a server just for their site so there must be some other way.

I was told in a ticket last night that it isn't working because of the following:

That means PHP module can not include a file with Smarty class and you should correct include_path setting in php.ini. Try to set it to:

include_path = ".:.."


However, I can't change the php.ini file because it would affect hundreds of accounts and I don't want to mess anything up.

Any help would be greatly appreciated.
Reply With Quote
  #6  
Old 04-04-2003, 03:36 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Default include_path is:

include_path .:/usr/local/lib/php

and I have no problems, what is your include_path set to?
Code:
<? phpinfo(); ?>
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #7  
Old 04-04-2003, 03:38 PM
 
loopit loopit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 32
 

Default

Here is what mine is set to:

include_path .:/usr/local/lib/php
Reply With Quote
  #8  
Old 04-04-2003, 03:41 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

I have no clue then.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #9  
Old 04-04-2003, 03:43 PM
 
loopit loopit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 32
 

Default

AHHH! I need to get this working tonight and I can't wait until Monday for a reply from support.

This sucks!

Thanks for your help though. I appreciate you trying to give some suggestions.


Jeff
Reply With Quote
  #10  
Old 04-04-2003, 03:46 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You could maybe try and poke around on http://smarty.php.net mailinglists and docs and such. hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 10:06 PM.

   

 
X-Cart forums © 2001-2020