osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

FATAL ERROR: register_globals is disabled in php.ini etc..

This is a discussion on FATAL ERROR: register_globals is disabled in php.ini etc.. within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; This my first time with this commerce module and I'd really like to get it up and running. After installing ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack (1) Thread Tools
  #1  
Old 03-01-2004, 03:42 AM
Lurker
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
heds22
Default FATAL ERROR: register_globals is disabled in php.ini etc..

This my first time with this commerce module and I'd really like to get it up and running. After installing first, it would not run.

I got an error message:
FATAL ERROR: register_globals is disabled in php.ini, please enable it!

I'm running off remote server so I can not get to the php.ini. So I need to get it working with the global register off.

So I tried this in the apllication_top.php ( folder /shop/incudes/ ...deleting

// check if register_globals is enabled.// since this is a temporary measure this message is hardcoded.The requirement will be removed before 2.2 is finalized. if (function_exists('ini_get')) { ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); }

and inserting this


if (!empty($HTTP_GET_VARS)) {extract($HTTP_GET_VARS);}if (!empty($HTTP_POST_VARS)) {extract($HTTP_POST_VARS);}if (!empty($HTTP_SERVER_VARS)) {extract($HTTP_SERVER_VARS);}

However now when I run it I get this error message:

Fatal error: Failed opening required 'includes/application.php' (include_path='.:/usr/local/lib/php') in /tier-2/pnpstore2/46/webs/htdocs/catalog/install/index.php on line 13
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-02-2004, 06:51 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,694
Thanks: 2
Thanked 96 Times in 82 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Ask your host to enable register_globals=on (in your v-host php.ini file) for your site. This is required and they SHOULD do it on request. POST here or PM me if they give you trouble.
__________________
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!
  #3  
Old 03-02-2004, 07:16 AM
Lurker
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
heds22
Default

Thanks for your suggestion - I'm currently using telewest broadband, blueyonder account - I have tried to get through to their server team.. However they were not willing to put me through and said they couldn't change the server for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-02-2004, 07:41 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,694
Thanks: 2
Thanked 96 Times in 82 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

It not a mater they could not - is that they are not willing to service there customer. (AKA- they have BAD customer service) Jump ship! There is many low cost hosts that have a GOOD customer service. Try AABOX or PM me for a few other suggestions (as low as $65/year).

They can EASLY configure this to be ON for your site only - it is a MAXIMUM 10 or 15 min change. Mostly can be done in under 5 mins. It is a setting in php.ini and httpd.conf files - not a "big change" to the server as they may be impling. The WORST thing they have to do is re-start the web services to load up the new settings (30 second - or do a re-boot durring there nitely maintance, when the traffic is low).
__________________
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!
  #5  
Old 03-02-2004, 07:43 AM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

That sounds odd to me...all they have to do is change that in the .ini file for your specific account, like jpf said that should be no big deal.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-02-2004, 08:26 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,694
Thanks: 2
Thanked 96 Times in 82 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Sounds odd - but is not. This happens (far too) offten (I know of atleast 8 people that I helped and ended up refered to other host cause of this).

I know it is not a big deal - but I have seen hosting companies refuse (cause of policy or it may be a "remote security risk" - if you have bad/poor programing skills - and did not verify/check data - which OSC does anyway) or want to charge up to $100 OR MORE to "recompile" to allow this - It is ALL BS!

Part of the problem is that SOME host (must have) a policy that does not allow changing ANY server settings - regardless of request or reason - it is bad customer service IMHO. (Or just don't know how too do...that means they are stupid also!)

In a SERVICE industry - the moto is always "Customer is always right (unless proven wrong)".
Some hosts have forgotten this and tends to bite the hands that feed them....

As I have said - if they don't want to "help you" - there customers - then JUMP SHIP! Don't deal with a company that has BAD policies and/or BAD customer service.

Good Luck
__________________
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!
  #7  
Old 03-17-2004, 07:29 AM
mtc mtc is offline
Lurker
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mtc
Default

Hai, same problem here in teh Netherlands.
The webhoster has enabled register_global in php.ini, did not work.

he suggested to put a .htaccess file in my html folder with " php_value register_globals 0 " in it.
That worked neither.

Help me, I have installed the shop on a test site and it worked, now on a other hoster his server it won't work.

I also keep getting the notification: FATAL ERROR: register_globals is disabled in php.ini, please enable it!

Can you help a dutch guy ??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 03-20-2004, 03:48 AM
Lurker
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
caesareos
Default

Hello,

I had the same problem and I found out a solution. I´m running an Apache server within a Windows machine. I load the php module with the next two lines:

LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

Now, if you want to enable the globals, write after those previous lines the next:
php_value register_globals 1

And then it have to work!

Ciao
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 04-25-2004, 02:07 AM
Lurker
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tomv
Default

Im a little new at this, and am using phpdev423, I changed the php.ini files but am wondering if there are more somewhere else or if there is something else I am supposed to do?

I am trying to run this off of my computer, then when Im done to upload it to the website. My directories come up fine but when I try to install I am getting the register_globals error.

if someone has the file, email it to tvecchio@silasgroup.com and let me know where to paste it.

here is how my directory is listed for install:
http://localhost/public/catalog/install/install.php

and here is my error:
FATAL ERROR: register_globals is disabled in php.ini, please enable it!

Thanks,

Tom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 04-25-2004, 03:22 AM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default

Line 365
register_globals = Off
change to
register_globals = On
Note:
1. As jpf said - you must restart / reboot for the change to take effect!
2. Lines in php.ini beginning with ; are comments fyi. There are a few comments about register_globals = On in the file.
Find & change the line 365 or thereabouts - the one without the ; & reboot.
__________________
HTH
Neil
www.12website.com

"You can have everything in life that you want if you will just help enough other people get what they want."
Zig Ziglar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

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

LinkBacks (?)
LinkBack to this Thread: http://www.oscmax.com/forums/oscommerce-2-2-installation-help/2095-fatal-error-register_globals-disabled-php-ini-etc.html

Posted By For Type Date
*Clix This thread Refback 06-14-2008 08:54 AM

Similar Threads

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


All times are GMT -8. The time now is 06:04 PM.


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