• Hello and thank you.

    I am having trouble updating my site.
    In the past I have been able to edit my functions.php file after an update to make things run smoothly, but it didn’t work for this update.
    Inside of my wp-includes folder, I have edited functions.php (around line 3064) I have edited the following:

    function is_ssl() {
                    if ( isset($_SERVER['HTTPS']) ) {
                                    if ( 'on' == strtolower($_SERVER['HTTPS']) )
                                                    return true;
                                    if ( '1' == $_SERVER['HTTPS'] )
                                                    return true;
                    } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
                                    return true;
                    }
                    return true;        

    The last line, by default, returns false.
    So by changing that to true, I’ve always had no problems.

    So my question is, did anything change with this latest update that I missed?

    Please help.
    My site is down.

    Thank you so much,
    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    As the adage goes, not a good idea to modify core files. Modifications can cause:
    – security risks,
    – performance degradation,
    – broken plugins/themes,
    – you will lose all changes when you next update the WordPress, etc.

    Instead, try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Please read the Manual Update directions first.

    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups!

    Thread Starter dracimo

    (@dracimo)

    Okay thank you, Tara,

    I know what I’m doing is a work around.
    But today I found out that it’s because of the server environment.
    I was told that it’s necessary because of how the server is set up.

    I found the cause, however.
    In 4.6 the line of code I refered to above is no longer located in the functions.php file.
    Now it’s found in the load.php file.

    Because I’m running SSL, and because of the server environment my site is on, I need to find the code (referenced above) and change the last line to return true.

    Thank you again, Tara, for your reply.
    I agree whole heartedly with your advice about not editing core files.
    However, for my situation, it’s a necessary evil.

    Have a great day,

    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update / SSL Trouble’ is closed to new replies.