P.Z. Low Cost CPanel Web Hosting  

Go Back   P.Z. Low Cost CPanel Web Hosting > Page-Zone Web Hosting Main Forum > General FAQ > General Questions and Comments

General Questions and Comments Post your question or grace us with your knowledge. Posting limited to registered members.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
PHP & osCommerce not working
Old
  (#1 (permalink))
bwit
Registered User
bwit is on a distinguished road
 
Status: Offline
Posts: 5
Join Date: Nov 2006
Rep Power: 0
PHP & osCommerce not working - 02-22-2007, 06:18 AM

Hi,

One of my customers's sites, which worked with the old server, will not let him update his site any longer. It's written in PHP.

Also, a new osCommerce install tells me that I need to register globals. I entered 'php_value register_globals 1' into the /public_html/.htaccess, but I now get an Error 500 when I try an access the osCommerce install folder.

Can someone advise how to fix these problems please, as the new PZ Support desk will not send me a confirmation email so that I can ask Jim's guys directly and I am already losing customers. :-(

Thanks.
   
Reply With Quote
Old
  (#2 (permalink))
paley
Registered User
paley is on a distinguished road
 
Status: Offline
Posts: 5
Join Date: Jan 2007
Location: Ohio, USA
Rep Power: 0
02-22-2007, 08:18 AM

Quote:
Originally Posted by bwit View Post
Hi,

One of my customers's sites, which worked with the old server, will not let him update his site any longer. It's written in PHP.

Also, a new osCommerce install tells me that I need to register globals. I entered 'php_value register_globals 1' into the /public_html/.htaccess, but I now get an Error 500 when I try an access the osCommerce install folder.

Can someone advise how to fix these problems please, as the new PZ Support desk will not send me a confirmation email so that I can ask Jim's guys directly and I am already losing customers. :-(

Thanks.
You can create a php.ini file in the directory and add:

register_globals = On

That may work
   
Reply With Quote
Old
  (#3 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 77
02-22-2007, 12:47 PM

Register Globals Patch
osCommerce: Register Globals Patch Files

You dont give enough info on the other php problem to give an answer.


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Old
  (#4 (permalink))
bwit
Registered User
bwit is on a distinguished road
 
Status: Offline
Posts: 5
Join Date: Nov 2006
Rep Power: 0
02-22-2007, 06:43 PM

Midwest,

Thanks re osCommerce problem. Sorry to say that the patch didn't fix the problem.
Still getting 'FATAL ERROR: register_globals is disabled in php.ini, please enable it!' :-(

Cust has a custom update system which allows for vehicle details to be added. They can go to their add page and complete all details, but when they click COMPLETE button, additions never appear. Everything worked just fine on old server.

Thanks.
   
Reply With Quote
Old
  (#5 (permalink))
bwit
Registered User
bwit is on a distinguished road
 
Status: Offline
Posts: 5
Join Date: Nov 2006
Rep Power: 0
02-22-2007, 07:05 PM

Just ran the Fantastico / osCommerce install to see if I get the same result. Exactly the same problem occurs: FATAL ERROR: register_globals is disabled in php.ini, please enable it!

This is so bloody frustrating when Support won't help.
   
Reply With Quote
Old
  (#6 (permalink))
Jim
of Page-Zone
Jim will become famous soon enoughJim will become famous soon enough
 
Status: Offline
Posts: 1,130
Join Date: Jun 2002
Location: Wauseon, Ohio
Rep Power: 97
My location
02-22-2007, 07:17 PM

My opinion - OScommerce is dead. Your best bet is to change carts because the developers are headed blindly to the edge of the cliff in their refusal to write it to operate in a register globals=off environment. The next version of php will not even contain the function. Its something thats been coming for the past 6 years and every other reputable developer has migrated over years ago.

We have a server it can run on which has register globals set to on, but that server and every server like it will likeley end up being hacked, and with register globals on its a gaping security risk waiting to happen. Also none of the supposed patches work reliably.

Anyone that wants to install it and deal with hours of trying to get it to work is perfectly welcome to do so but when the developer refuses to bring it into this century its probably a waste of time.


--
Thank You,
Jim Snape
Page-Zone
--
   
Reply With Quote
Old
  (#7 (permalink))
ldesign
Registered User
ldesign is on a distinguished road
 
ldesign's Avatar
 
Status: Offline
Posts: 251
Join Date: Feb 2004
Location: Colorado
Rep Power: 42
02-22-2007, 07:52 PM

I'll back Jim on this one. Distributed Php scripts should not depend on register globals. Even though a lot of my old scripts - the ones I wrote three to four years ago do* - it really is best to get away from that. Automatically assigning POSTED (from a form) and passed GET (from a hyper link) variables into the local variable scope could create havoc (like database injection, - i.e., your database gets deleted). It makes the hackers' job too easy.

(* I have actually made the needed conversions on most, if not all of my own scripts. It's not all that hard, and it is definitely something the OScommerce folks ought to have done by now.)

The earlier suggestion to use a php.ini file might work for you, and it might even solve both problems - for now. My guess is that your first problem could also be a register_globals problem (When register_globals is off, scripts that depend on it will often do nothing when a form is entered.)

Chuck
   
Reply With Quote
Old
  (#8 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 77
02-22-2007, 10:48 PM

I had a osC demo store that I have abandoned. I dont yet know what I will use to replace it. I'm disappointed, I spent a lot of time getting my demo store setup with mods and making my own template.

As far as having to rewrite any of my own scripts. Nah. I grew up on perl doing it the long way and saw no reason when I switched to php to take the easy route. Guess it was a good decision. I have also always been a fan of full paths and urls, even when a virtual would work fine I choose a full path. Security was not the issue it is now when I adopted these practices, I got lucky and dodged a few bullets.

.


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
osCommerce Jim E-commerce - Shooping Carts 0 07-20-2007 03:27 PM
Oscommerce Cart Need2know General Questions and Comments 1 04-07-2003 06:41 AM
oscommerce keshe General Questions and Comments 3 02-13-2003 05:31 PM
osCommerce - almost there - paypal working but cod error mikez68 General Questions and Comments 10 02-06-2003 07:01 AM
Oscommerce Need2know General Questions and Comments 1 10-17-2002 09:04 PM


Live Help



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
vBulletin Skin developed by: vBStyles.com
Copyright © 2002 Page-Zone Web Hosting. All rights reserved.
Smilies provided by Crack's Smilies http://www.mysmilies.com