osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 17

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 ...

      
  1. #1
    Lurker
    Join Date
    Mar 2004
    Posts
    2
    Rep Power
    0


    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

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    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 - To contact, post on the forum or click here
    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!

  3. #3
    Lurker
    Join Date
    Mar 2004
    Posts
    2
    Rep Power
    0


    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.

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    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 - To contact, post on the forum or click here
    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!

  5. #5
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    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.

  6. #6
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    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 - To contact, post on the forum or click here
    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!

  7. #7
    mtc
    mtc is offline
    Lurker
    Join Date
    Mar 2004
    Posts
    1
    Rep Power
    0


    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 ??

  8. #8
    Lurker
    Join Date
    Mar 2004
    Posts
    1
    Rep Power
    0


    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

  9. #9
    Lurker
    Join Date
    Apr 2004
    Posts
    1
    Rep Power
    0


    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

  10. #10
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    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

Page 1 of 2 12 LastLast

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •