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 Error, Store broke! Help! (https://forum.x-cart.com/showthread.php?t=37)

SporbikeFX 09-20-2002 04:48 AM

Smarty Error, Store broke! Help!
 
I think my host may have changed some settings, not sure. here are my errors! :!:

Code:

Warning: SAFE MODE Restriction in effect. The script whose uid is 34032 is not allowed to access ../templates_c/151/1512206380/0.php owned by uid 99 in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 791

Warning: SAFE MODE Restriction in effect. The script whose uid is 34032 is not allowed to access ../templates_c/151/1512206380 owned by uid 99 in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 1361

Warning: SAFE MODE Restriction in effect. The script whose uid is 34032 is not allowed to access ../templates_c/151/1512206380 owned by uid 99 in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 1366

Warning: SAFE MODE Restriction in effect. The script whose uid is 34032 is not allowed to access ../templates_c/151 owned by uid 99 in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 1366

Warning: Smarty error: problem creating directory "../templates_c/151/1512206380" in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 470

Warning: Smarty error: problem writing '../templates_c/151/1512206380/0.php.' in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 470

Warning: SAFE MODE Restriction in effect. The script whose uid is 34032 is not allowed to access ../templates_c/151/1512206380/0.php owned by uid 99 in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 569

Warning: Failed opening '../templates_c/151/1512206380/0.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/sportbik/public_html/store/Smarty-2.0/Smarty.class.php on line 569


Anonymous 09-20-2002 09:12 AM

Same thing
 
I had a very similar error show up today on our store hompage. The admin site is just a blank white page. If anyone know what in the world is going on, I'd love to know.

syddos 09-20-2002 09:12 AM

Smarty Warning Message
 
Hi X-Cart Team,

can you please let me konw if the opening of this forum is in addition to the 5 months technical support included in my purchase of X-Cart 3.1.3a PRO?, or does this forum replace the technical support included in my package?



Regards,

B00MER 09-20-2002 09:17 AM

syddos, no this does not replace the technical support found at:
:arrow: https://www.x-cart.com/wmembers.php

This forum was created for other x-cart users to share and help each other out, occasionaly the x-cart team will also answer questions, and view the forums.

As for the error your getting it sounds like the php.ini has been modified in some form. Have you tried clearing your templates_c/ directory?

You may also have the permissions set wrong:
Code:

chmod 766 templates_c/; chown nobody.nobody templates_c
Should do the trick.

syddos 09-20-2002 10:00 AM

Re: Smarty Warning Message
 
Quote:

As for the error your getting it sounds like the php.ini has been modified in some form. Have you tried clearing your templates_c/ directory?

You may also have the permissions set wrong:


Thanks For the info BOOMER, I will post the outcome.

Regards,

Anonymous 09-20-2002 10:35 AM

We can't even get into an admin page
 
We can't do ANYTHING because we get these errors coming up. We can't change our permissions because we just get a blank page for our admin url or any other url besides our homepage which is just an error:
Quote:

Warning: SAFE MODE Restriction in effect. The script whose uid is 2711 is not allowed to access ../templates_c/151/1512206380/0.php owned by uid 99 in /home/turnkeyh/public_html/xcart/Smarty-2.1.1/Smarty.class.php on line 863

Warning: Smarty error: unable to read template resource: "customer/home.tpl" in /home/turnkeyh/public_html/xcart/Smarty-2.1.1/Smarty.class.php on line 546


We have no idea how to clear the template directory because we can only access our site through an FTP browser, which isn't a lot of help when you've got 400 million files in there.

Any help would be great. We've got a customer waiting for his store to go live and we can't do jack in this condition.

Thanks.

B00MER 09-20-2002 10:39 AM

If you can access the server via FTP, I know with most ftp apps will let you access chmod as well as be able to delete all files/dirs within the templates_c/ directory (granted this may take awhile to delete but its just the same as rm -R templates_c from a console.)

hth. :wink:

Anonymous 09-20-2002 11:19 AM

maybe I'm an idiot
 
So I tried to delete all the files from the template_c directory through the FTP and it won't let me. We tried it on two different machines and two different softwares.

Maybe a dumb question, but what is this chmod and where is it and what should I do to it once I find it. We're at a total loss here...

Thanks for your help

minorgod 09-20-2002 11:43 AM

just rename your folder instead of deleting...
 
The problem you are having is due to the fact that the templates_c directory was created by the server and therefore you do not have permission to delete it, or any of its subfolders. You'll also have this problem when trying to manualy delete any folders inside the /files directory, created if you are using the ESD module.

As a quick work-around, the only option I've found is to rename the templates_c directory to something else, like templates_c_undeletable folder instead of deleting it. Then create a new, empty templates_c directory and chmod it to 777. Chmod is a UNIX/LINUX command that sets file and directory permissions. To CHMOD using the poupular windoze program caleld WSFTP, simply browse to the item you'd like to CHMOD, then right-click on it and select FTP commands > CHMOD(unix) from the bottom of the list. A pop-up window will appear where you can set permissions via checkboxes and it will show you the corresponding CHMOD commands before you apply them. Hope that helps you out.

Anonymous 09-20-2002 12:08 PM

One more thing
 
Thanks so much for your help. We got the templates_c problem fixed, but we're still getting this error on the store homepage:
Quote:

Warning: Smarty error: unable to read template resource: "customer/home.tpl" in /home/turnkeyh/public_html/xcart/Smarty-2.1.1/Smarty.class.php on line 546


On the admin page still all we get is a blank screen

Thanks a lot for your help

B00MER 09-20-2002 01:27 PM

Does home.tpl exist in the customer/ directory? You might also try re-extracting the x-cart tar ball and re-copying the skin1/ skin1_images/ directories over your existing directories. This being you haven't made any changes to the templates yet, or else you will loose the changes. :?

Anonymous 09-20-2002 01:39 PM

still trying
 
No, home.tpl doesn't exist in that directory (or anywhere that I can find). What is the xcart tar ball?

B00MER 09-20-2002 02:04 PM

tar ball, I mean, the file that the x-cart guys provided once you purchased.
i.e. "x-cart-3.1.3a_gold.tgz" without the quotes.

Anonymous 09-21-2002 12:47 AM

oh my goodness
 
No, actually we had them install it. I guess either they intstalled it incorrectly or something randomly changed after we logged out yesterday without us touching it. It isn't working and everything you have suggested to try is not working. Thanks so much for your help. I guess we will have to just wait for them to respond to our messgaes? man, that sucks. we have a client who is supposed to preview his store on Monday and no way to even show him that anything exists... no way to log in... just errors. If you know of anyway to ensure that they X-cart guys will get a message to check our site, could you please do that? We need to get that fixed asap. It was working fine yesterday and then all of the sudden we logged out for 30 minutes and when we tried to log back in errors all over... we can't even log into the admin area. What a mess. Again, if anyone knows how to get ahold of the x-cart guys, it would be really nice if they could fix our site so we can show our client.

shan 09-21-2002 04:37 AM

Hi rob,

If you pm me the ftp details and any other info ill take a look for you if you like. what version of x-cart are u using ?

it will have to be soon though as im leaving for the weekend soon

ambal 09-27-2002 05:27 AM

>Warning: SAFE MODE Restriction in effect.
Your PHP module has so-called 'safe_mode' enabled. This mode denies using several important PHP commands, including input/output functions and file upload support. This makes it virtually impossible to run a complex e-commerce software like X-Cart. Please disable the 'safe_mode' switch or ask your ISP to do it. If there is no opportunity to disable 'safe_mode' on your current hosting, we recommend you to change hosting service provider.

The following features can have problems with safe_mode:

1. X-Cart is template-based. Every PHP file reads templates from files. safe_mode does not allow reading files (this is what we mean by "input/output functions"). You can of course fix this by configuring PHP to allow access to particular directory.
2. X-Cart uses external executables to process credit cards. If you need online credit card processing, you will have to configure "safe_mode_exec_dir" to the X-Cart executables directory.
3. PHP with safe_mode turned on do not accept POST requests with enctype=multipart/form-data. This breaks all of our forms having upload controls.

Look here for more technical information: http://www.php.net/manual/en/features.safe-mode.php 8)


All times are GMT -8. The time now is 11:23 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.