Menu

Warning: ini_set() has been disabled for security reasons

Help
2017-12-12
2017-12-13
  • Link Up Hosting

    Link Up Hosting - 2017-12-12

    Hello, Apparently my PhpGedView install got "broke" in my absence and I didn't realize it. When I try to launch the program, I get that error. It was a working install. If it matters, I have PHP version: 5.6.30. CENTOS 6.9. It appears it was last updated 1/5/15

    This is the full error:

    Warning: ini_set() has been disabled for security reasons in /home/wurdeman/public_html/phpgedview/library/patchwork/utf8/class/Patchwork/Utf8/Bootup.php on line 22

    Warning: ini_set() has been disabled for security reasons in /home/wurdeman/public_html/phpgedview/library/patchwork/utf8/class/Patchwork/Utf8/Bootup.php on line 53

    ERROR 2: parse_ini_file() has been disabled for security reasons
    0 Error occurred on in function parse_ini_file
    1 called from line 323 of file session.php in function require
    2 called from line 28 of file index.php

    Fatal error: Uncaught exception 'Exception' with message 'No Connection Established' in /home/wurdeman/public_html/phpgedview/library/WT/DB.php:283 Stack trace: #0 /home/wurdeman/public_html/phpgedview/library/WT/Log.php(53): WT_DB::prepare('INSERT INTO `##...') #1 /home/wurdeman/public_html/phpgedview/library/WT/Log.php(104): WT\Log::addLog('ERROR 2: parse_...', 'error') #2 /home/wurdeman/public_html/phpgedview/includes/session.php(312): WT\Log::addErrorLog('ERROR 2: parse_...') #3 [internal function]: {closure}(2, 'parse_ini_file(...', '/home/wurdeman/...', 323, Array) #4 /home/wurdeman/public_html/phpgedview/includes/session.php(323): parse_ini_file('/home/wurdeman/...') #5 /home/wurdeman/public_html/phpgedview/index.php(28): require('/home/wurdeman/...') #6 {main} thrown in /home/wurdeman/public_html/phpgedview/library/WT/DB.php on line 283

    I have been doing more DNA research and so I have more connections and information to add to the tree.

    Thanks!
    Lew

     
  • Gerry Kroll

    Gerry Kroll - 2017-12-12

    Your service provider has "improved" things. You need to talk to them about these errors, since they're configuration changes that they made to the PHP system on the server.

    Also:
    What version of PhpGedView are you running? You should be using version 4.3.0.

    What IS that "library/patchwork/UTF8"?? It's definitely NEVER been part of the standard PhpGedView distribution.

    PhpGedView makes extensive use of the ini_set() function. The program WILL NOT WORK if this function is disabled. There are absolutely NO plans to change this behaviour.

    I have searched the entire code of PhpGedView 4.3.0, and the only mention of function parse_ini_file occurs in module.php, where the program is trying to initialize the modules. There's certainly no such function call in session.php. I COULD look in my archives to determine which version you're running, but that wouldn't be very helpful.

    It's possible to construct a version of module.php that avoids the parse_ini_file function.

     

    Last edit: Gerry Kroll 2017-12-12
  • Link Up Hosting

    Link Up Hosting - 2017-12-13

    Hello Gerry, I am the service provider, it is my server. Have done nothing on the server side other than customary CENTOS upgrades which meant PHP upgrades. My server is about as generic as you can get and no other PHP driven programs on the server have an issue.

    Although I couldn't get it to run, in fact, the config.php was missing. I found an old config.php which at least allowed me to get it up, but with the write error.

    I did a full backup and then tried an upgrade, and then it came up for a moment, but my data wasn't there, like a new install. I was getting a write error and tried to give the directory write permissions in case that was the problem, now I get this:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


    I can do a whole new fresh install but it seems I would lose all user/signon data, connections to media, etc.

    Thanks

     

    Last edit: Link Up Hosting 2017-12-13
  • Gerry Kroll

    Gerry Kroll - 2017-12-13

    Can you tell me what version of PhpGedView you're trying to run?

    If you can beam me a copy of session.php, that would help. e-mail: gkroll (at) keldine (dot) ca

    This file should be in the /includes directory. if it's not there, we have bigger problems.

    You can manually edit config.dist to produce config.php. If you do that, you shouldn't lose anything. The $SERVER_URL value should be empty.

    What's that "library/patchwork/UTF8"? It's not part of any PhpGedView distribution, and shouldn't be invoked at all by PhpGedView.

     
  • Link Up Hosting

    Link Up Hosting - 2017-12-13

    Since I had the previous version installed, it was what I was trying to launch. When that didn't work, I thought maybe there was something in the old version not compatible with a newer PHP so I followed the upgrade instructions to upgrade my older version to 4.30. Then I tried again and got those errors.

    RE: "library/patchwork/UTF8"?, could it have been from a previous version? gedcom?

    Am mailing you the session.php file. I also noticed a large error.log in the root...any interest?

    Thanks very much!

     
  • Gerry Kroll

    Gerry Kroll - 2017-12-13

    library/patchwork/UTF8 is part of the standard Webtrees distribution. The line numbers reported refer to session.php that's part of an older version of Webtrees.

    The user is reporting a problem with Webtrees, but in actual fact, the ini_set() and parse_ini_file() functions are being used legitimately by Webtrees (and PhpGedView too). There's an error in the PHP configuration on the user's server.

    This link provides relevant information:
    https://stackoverflow.com/questions/34082632/warning-ini-set-has-been-disabled-for-security-reasons

     

Log in to post a comment.