Warning: ini_set() has been disabled for security reasons in setup.php

Discussion in 'Installation' started by mhmtozek, Oct 20, 2011.

  1. mhmtozek

    mhmtozek Member

    Joined:
    Aug 9, 2010
    Messages:
    51
    I did a search on the forum before posting this (didn't find anything). I Just purchased the updated version of Amember. Started fresh on my domain by deleting everything off it.

    The minute I get to the setup screen, I had this Warning at top:

    Warning: ini_set() has been disabled for security reasons in /home/name/public_html/amember/setup.php on line 24

    Warning: ini_set() has been disabled for security reasons in /home/name/public_html/amember/setup.php on line 26

    I was able to go through the steps regardless and input my MySQL DB info, however when I got to final step, it just showed me a white page with these 2 errors.

    Server meets all requirements for amember. The following folders are write-able (755).
    amember/data/
    amember/data/new_rewrite/
    amember/templates_c/

    Can't think of anything that would impede this process.

    Can't continue forward. Please advise?
  2. mhmtozek

    mhmtozek Member

    Joined:
    Aug 9, 2010
    Messages:
    51
    Anybody??? Would really like to continue with installation.

    Additional info: When I go to any other amember page, I get these errors (all amember files, just like the setup.php file mentioned above):

    ======

    Warning: ini_set() has been disabled for security reasons in /home/boylogik/public_html/amember/config.inc.php on line 24

    Warning: ini_set() has been disabled for security reasons in /home/boylogik/public_html/amember/config.inc.php on line 25

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/boylogik/public_html/amember/config.inc.php:24) in /home/boylogik/public_html/amember/common.inc.php on line 1827

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/boylogik/public_html/amember/config.inc.php:24) in /home/boylogik/public_html/amember/common.inc.php on line 1827

    =======

    Screenshot1: - Setup
    Screenshot2 - Admin Pages

    Thanks.
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Short of hacking the aMember code, you should contact your host and have them enable the php function ini_set() for your server. They have apparently disabled it (for security reasons ;-p)
  4. mhmtozek

    mhmtozek Member

    Joined:
    Aug 9, 2010
    Messages:
    51
    Sure. I will send a note to my server admins to enable the ini_set() for me. It's a VPS and I'm sure I'll probably have to do it myself. Though, FWIW, I've never had an issue installing any other software to date.

    Appreciate the response. However, your suggestion doesn't address the other errors I provided above along with screenshot (see below). What should I do about those errors?

    screenshot <-- Appreciate it if you can address each error - - all stemming from amember files.

    Guess I'll have to wait for another 24 hours to even trouble-shoot this. 2 days lost - 0 progress.
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    ini_set() is a fairly common function used during the setup of PHP scripts. I've seen that error reported for most of the major scripts . There is a chance your host may have tightened security recently which is why you have not run into it prior?

    I addressed that particular issue first as the other error "headers already sent" may be a byproduct of the first error.

    That being said, if you want to test some things, while you wait for your host to respond, you can try:

    1. Some server configurations do not like extra spaces carriage returns at the end of PHP files.You can check the files the error references (config.inc.php & common.inc.php) and if there are any spaces / carriage returns at the end of the file remove them.

    2. Another thing that cause that message is if your server configuration does not handle <? and requires you to use a fully qualified <?php (not sure which version of aMember you are using).. if you feel like experimenting and #1 does not fix your issue, you can try opening the 2 files above and checking the first line and if it has a <? replacing it with <?php

Share This Page