ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP Error after moving to a new server - Any ideas?

May 02, 2013 5:09pm

Subscribe [3]
  • #1 / May 02, 2013 5:09pm

    MalTek

    5 posts

    I have a very frustrating error after moving an EE install to a new server.

    Whenever I go to the home page of the control panel (100%) or randomly at other times (doesn’t happen very often) I get the following PHP error.

    A PHP Error was encountered
    Severity: Warning
    Message: md5_file(/path/from/old/server/index.php) [function.md5-file]: failed to open stream: Permission denied
    Filename: libraries/File_integrity.php
    Line Number: 103

    So somewhere it is trying to access the index.php file with the path from the old server.

    * I have downloaded the files from the old server and copied to the new server again which didn’t help.
    * I’ve at least triple checked every single place in the CP that has a path stored and all are correct.
    * I have searched through both the entire database and every file and can find no trace of this path.
    * I upgraded from v2.5.5 to v2.6 of EE and the error persists
    * I have removed the use of index.php from the URLs

    None of these have made a difference. Does anyone have any ideas of what might be causing this to happen or suggest a solution?

  • #2 / May 02, 2013 9:34pm

    DigitalDoctors

    76 posts

    This may be a silly question, but did you follow these instructions for moving to the new server? http://ellislab.com/expressionengine/user-guide/operations/moving.html

    I moved about 40 EE sites to a new server in December last year and found that article to be invaluable.

  • #3 / May 02, 2013 9:44pm

    MalTek

    5 posts

    Yeah, followed step by step. Copied files fresh twice too. It’s very frustrating. I’ve moved sites before with no issue as well.

    The whole site works fine, except for this error on the home page of the control panel. It sometimes occurs randomly when I do an edit or something similar which is a deal breaker. Can’t give it to the client if it will hinder them in any way.

    I might have to start the process from scratch once again.

  • #4 / May 03, 2013 12:05pm

    MalTek

    5 posts

    OK, just in case this happens to anyone else, I discovered that the old path was stored in an array in the database as a base_64 serialized string which was why I could not find it.

    For some reason it had both the old path and the new path in the array.

    Steps to fix this were:
    * In the sites database table I grabbed the site_bootstrap_checksums encoded string
    * I ran it through the online online PHP unserializer tool located here http://blog.tanist.co.uk/files/unserialize/index.php
    * Removed the old path reference, encoded the new array and copied back to the database

    This thread helped me discover the solution http://ellislab.com/forums/viewthread/166306/P18

  • #5 / Aug 18, 2013 11:34pm

    Nuvonium

    10 posts

    I have a very frustrating error after moving an EE install to a new server.

    Whenever I go to the home page of the control panel (100%) or randomly at other times (doesn’t happen very often) I get the following PHP error.

    A PHP Error was encountered
    Severity: Warning
    Message: md5_file(/path/from/old/server/index.php) [function.md5-file]: failed to open stream: Permission denied
    Filename: libraries/File_integrity.php
    Line Number: 103

    So somewhere it is trying to access the index.php file with the path from the old server.

    * I have downloaded the files from the old server and copied to the new server again which didn’t help.
    * I’ve at least triple checked every single place in the CP that has a path stored and all are correct.
    * I have searched through both the entire database and every file and can find no trace of this path.
    * I upgraded from v2.5.5 to v2.6 of EE and the error persists
    * I have removed the use of index.php from the URLs

    None of these have made a difference. Does anyone have any ideas of what might be causing this to happen or suggest a solution?


    I too encountered this issue. Struggled for hours. Then stumbled upon your post. All I can say is…. I love you man.  Thanks for the fix, it worked.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases