Oh my gosh what happened?
I am so worried and confused.....my site was working perfectly for the past 4 months, then all of a sudden I check my site (http://www.glamour-hut.com/ghshopping/customer/home.php) and this is what I get:
Warning: SAFE MODE Restriction in effect. The script whose uid is 320 is not allowed to access ../templates_c/151/1512206380/0.php owned by uid 15 in /home/sites/site82/web/ghshopping/Smarty-2.1.1/Smarty.class.php on line 641 Warning: Failed opening '../templates_c/151/1512206380/0.php' for inclusion (include_path='') in /home/sites/site82/web/ghshopping/Smarty-2.1.1/Smarty.class.php on line 641 Can anyone please help me?? Thanks so much Japanchick |
It looks like your host may have switched on safe mode.
Try running cleanup.php and see if that helps then create a php file with this in it to see how things are set up. Code:
<?php phpinfo() ?> |
F$*A&(DSA*&
Ugh I have no idea what is happening. My hosting company said this:
Quote:
Thank God I've backed up everything, including the my x-cart sql database. I am thinking of just reinstalling everything, using the brand new X-Cart release. I just have one question to ask.....my previous X-Cart version was 3.20. I was just wondering: Since i made a backup of my SQL database from the 3.20 cart, will it be possible to restore it IN VERSION 3.31? i.e. are the databases exchangable? If not, can anyone suggest the best route for me? Im losing alot of business as we speak =)...and to make matters worse, the guys at X-cart removed version 3.20 so Im not sure what i should do.....I definetly dont want to reinput all my inventory again thats for sure =) |
I'm not totally sure if any of the x-cart related php requires safe_mode enabled but if its because of smarty:
Quote:
Might just try upgrading Smarty to 2.3.1 and see if it helps. :arrow: http://smarty.php.net |
That seems possible
cool boomer, but how would i go about upgrading Smarty? do i just replace files or something (sorry but im kinda computer illiterate when it comes to php/smarty)
cheers japanchick |
|
Hmm...
Hi tried upgrading my smarty, but instead of the previous error, i get this:
Fatal error: Cannot instantiate non-existent class: smarty in /home/sites/site82/web/ghshopping/smarty.php on line 13 does anyone know what this means? also, boomer, you stated that it was possible to create an .htaccess file that would disable safe mode... What code do i exactly put in that .htaccess file? thanks |
htaccess information:
:arrow: http://forum.x-cart.com/viewtopic.php?t=1439 Also make sure you edit smarty.php to reflect the new 2.3.1 smarty directory like so: Code:
if (!@include("../Smarty-2.3.1/Smarty.class.php")) This is why your getting the error is because it isn't able to locate the class file(s). hth. :wink: |
so...
Well, changing smarty doesnt work because I get the following error:
Quote:
So I think Im going to have to create an htaccess file Just for double checking, in order to DISABLE SAFE MODE i input the following into my htaccess file? I just wanna double check because it says php_flag safe_mode ON instead of off, so im not sure what to put=) <IfModule mod_php4.c> php_flag safe_mode On </IfModule> |
I spent DAYS working on a safe mode work around (with 3.1 or 3.2 or something, I forget exactly) with my host.
It's a nightmare. I gave up and my host transferred me to a machine where he could turn safe mode off. It's primarily a problem with the files in the templates_c dir -- Apache owns them, writes to them, etc. PHP thinks this is a security problem because it doesn't match the owner of the rest of the stuff. I don't know if other Smarty/X-Cart versions will have this same issue, but what you are describing sounds much like my nightmare... deb |
All times are GMT -8. The time now is 04:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.