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 Fatal Error? HELP!!! (https://forum.x-cart.com/showthread.php?t=2156)

loopit 04-04-2003 08:59 AM

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.

B00MER 04-04-2003 12:17 PM

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. ;)

loopit 04-04-2003 12:20 PM

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

B00MER 04-04-2003 12:38 PM

perhaps the magic quotes is causing the problem im not really sure, but you may hafta get to php.ini regardless. ;)

loopit 04-04-2003 02:56 PM

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.

B00MER 04-04-2003 03:36 PM

Default include_path is:

include_path .:/usr/local/lib/php

and I have no problems, what is your include_path set to?
Code:

<? phpinfo(); ?>

loopit 04-04-2003 03:38 PM

Here is what mine is set to:

include_path .:/usr/local/lib/php

B00MER 04-04-2003 03:41 PM

I have no clue then. 8O

loopit 04-04-2003 03:43 PM

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

B00MER 04-04-2003 03:46 PM

You could maybe try and poke around on http://smarty.php.net mailinglists and docs and such. hth. ;)

loopit 04-04-2003 03:46 PM

OK....Thanks, I'll have to check it out.


Jeff


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.