osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

FATAL ERROR: register_globals is disabled in php.ini

This is a discussion on FATAL ERROR: register_globals is disabled in php.ini within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; FATAL ERROR: register_globals is disabled in php.ini, please enable it! this is what i get when i try to look ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-17-2007, 02:05 PM
Member
 
Join Date: Sep 2005
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jschafer52
Default FATAL ERROR: register_globals is disabled in php.ini

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

this is what i get when i try to look at pull up my site, i transfered my site from to a new server and when i try to pull it up this is what i get now.

can anyone start me in the right direction?

Thanks
JIM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 07-17-2007, 04:03 PM
New Member
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
brewer1st
Default Re: FATAL ERROR: register_globals is disabled in php.ini

You should first ask your host to enable register_globals for you. If they cannot or will not you could try to change it by using an .htaccess file. In the root of your site look for a file named .htaccess If there isn't one try to add one.

To an exiting .htaccess add

php_value register_globals 1

Or create a new file with just that line in it.

You may not be able to see the .htaccess file depending on what you use to ftp the files to the server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-18-2007, 12:37 AM
Lurker
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Deal-Shop is on a distinguished road
Default Re: FATAL ERROR: register_globals is disabled in php.ini

i did a few things including that on my server and it still dont work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-23-2007, 10:53 AM
Member
 
Join Date: Sep 2005
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jschafer52
Default Re: FATAL ERROR: register_globals is disabled in php.ini

same thing here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-24-2007, 11:51 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: FATAL ERROR: register_globals is disabled in php.ini

These are in the order of perfernce:

Solution #1
In an editor create a file called:
.htaccess
(must have the period before - and nothing before the period)
add to that file the line:
php_value register_globals 1

Make sure your FTP software displays system files as well.

Upload that file to your root of your website.

Solution #2
Find a copy of php.ini in your (virtual) webserver and find (or if blank/missing add)
register_globals=off
and change to
register_globals=on

Solution #3
Ask your hosting company to change for you.

Solution #4
If hosting co - refuses to help or change this for you then move hosts!
if that is not much of an option - you can try the register_globals=off contribution that is posted in the forum here somewhere - but I have not used it - Mileage may vary.
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to jpf For This Useful Post:
chrisbarbers (09-08-2007)
  #6  
Old 08-16-2007, 12:24 PM
Member
 
Join Date: Oct 2006
Location: Cincinnati, ohio
Posts: 40
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 0
allwebnow
Default Re: FATAL ERROR: register_globals is disabled in php.ini

I just keep getting an internal server error when I do this. Does php_value register_globals 1 Really work? I'm thinking not, or there's something else that needs to be configured somewhere. I jsut have to delete that code and turn register_golbals back on again so my site works again. It's so annoying cuz it's such a security issue.
__________________
Regards,

Ben Wade
www.AllWebNow.com - E-commerce Web Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-20-2007, 10:03 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: FATAL ERROR: register_globals is disabled in php.ini

Yes it CAN - but ONLY if allowed.

No it is NOT a security issue. It is a BAD CODEing issue. The problem come in the form that IF YOU DON'T CHECK inputed values. That if you "run" these values the "values" that some one entered could contain code. IE SQL insertions .....

Bad programing can lead to big security issues.


Most people don't really know what the real "security issue" is and it is easier JUST TO PLAY DUMB/EASIER TO SAY "we don't allow it"


Easier to enable it if you own the server. Complicated if you don't. Try the contribution that allow you to turned it off.
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-21-2007, 07:15 AM
Member
 
Join Date: Oct 2006
Location: Cincinnati, ohio
Posts: 40
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 0
allwebnow
Default Re: FATAL ERROR: register_globals is disabled in php.ini

Quote:
Originally Posted by jpf View Post
Yes it CAN - but ONLY if allowed.
How can this .htaccess line of code be allowed?

Also, I have heard many places that having register globals On serverwide is a security issue when you're hosting hundreds of accounts.

Thanks for the response.
Ben
__________________
Regards,

Ben Wade
www.AllWebNow.com - E-commerce Web Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-21-2007, 08:37 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: FATAL ERROR: register_globals is disabled in php.ini

I can think of several that have it turned on - or allow per site via there own virtual PHP.INI file or .htaccess

Like I said - it is ONLY a security issue if you have poorly coded PHP. Like many beginner that have not properly checked there inputed variables. Like in a "search" box - you normally just put your search terms.....what if you put an SQL command and you passed that directly to your SQL statement - possible to delete/change/list "other" things - when all you wanted to do is get a list of search terms..... This is call SQL insertion.

Like I said - many people see "security issue" and don't really read why.

osCMax is installed on thousands of servers with it turned on. Hundreds of thousands for all variation of OSCommerce - if it was a problem would all sites would have been cracked by now. The worst that I have seen lately about OSC - is spam bots using your "contact us" forms and customer "reviews" - a fix was issued over a year ago for that.
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 09-11-2007, 08:58 PM
Member
 
Join Date: Oct 2006
Location: Cincinnati, ohio
Posts: 40
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 0
allwebnow
Default Re: FATAL ERROR: register_globals is disabled in php.ini

Quote:
Originally Posted by jpf View Post
I can think of several that have it turned on - or allow per site via there own virtual PHP.INI file or .htaccess
As I asked above...How do you allow this per site fix? And For Years I've had register_globals ON serverwide for Oscmax and oscommerce to work. That's not the issue. Now, I would like to have it OFF serverwide and On per user account becuase I don't trust my clients' php scripts they upload due to having been hacked too many times from poor php scripting. I've added the php.ini file to the oscmax directory with register_globals = On in it and still get internal server error. I use phpsuexec so I'm thinking it's not allowing me to do the .htaccess fix. I have several oscmax installations and would hate to have to install the contribution to fix the register_globals issue on each install. Any additional help would be much appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Remedy for 'register_globals' error Jan5 osCMax v2 Installation issues 0 07-28-2006 12:26 PM
FATAL ERROR: register_globals is disabled in php.ini etc.. heds22 osCommerce 2.2 Installation Help 16 07-20-2006 01:03 PM
FATAL ERROR: register_globals is disabled in php.ini robroymedia osCMax v1.7 Discussion 1 09-13-2004 11:57 AM
FATAL ERROR: register_globals is disabled in php.ini Marko osCommerce 2.2 Installation Help 2 02-03-2003 01:12 AM
php-error: register_globals is disabled in php.ini Anonymous osCommerce 2.2 Installation Help 1 11-05-2002 02:29 PM


All times are GMT -8. The time now is 10:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax