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.

Upgrade to 2.5.1 with 8 MSM sites gone wrong

May 30, 2012 11:46am

Subscribe [5]
  • #1 / May 30, 2012 11:46am

    khronos

    19 posts

    Hi,

    We upgrade from 2.5.0 to 2.5.1 today, and upgrade MSM to 2.1.3. In a nutshell:

    With site_name set in the index.php file (any site including main site) we get the error:

    An Error Was Encountered
    Site Error: Unable to Load Site Preferences; No Preferences Found

    With that commented out in the main index.php, the main site loads, but on all sites of course. With debugging turned on in index.php on one of the sub sites I get this message:

    A PHP Error was encountered
    
    Severity: Warning
    
    Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO)
    
    Filename: mysql/mysql_driver.php
    
    Line Number: 319

    My database.php and config.php file are intact and properly set. Any suggestions?

  • #2 / May 30, 2012 12:01pm

    khronos

    19 posts

    Same situation with site_name set in admin.php. admin.php gives “Site Error: Unable to Load Site Preferences; No Preferences Found” error with site_name set, and error goes away when commented out.

  • #3 / May 30, 2012 12:31pm

    Benjamin

    116 posts

    Got exactly the same error when updating a MSM Site to 2.5.1 and MSM 2.13. Reverted to backup for now.

  • #4 / May 30, 2012 12:34pm

    khronos

    19 posts

    Sadly, that is good to know I guess, means I haven’t made a stupid mistake 😊

    Ellislab, I’m standing by to debug this issue if you want to work with me on it. PM me if you want to view our installation etc.

  • #5 / May 30, 2012 12:53pm

    khronos

    19 posts

    Would this make a difference (as @CS_sean stated) both EE and MSM need to be upgraded instep. If I ran the upgrade from admin.php before upgrade MSM, will MSM miss some database changes?

    Does MSM need to be upgraded after installing the new version, and if so, how can I run that separately.

    Grasping at straws now before I revert all our sites to 2.5.0. 😊

  • #6 / May 30, 2012 1:13pm

    khronos

    19 posts

    Okay, found the solution. That warning from the MySQL_driver.php file was the ticket. Just comment out lines 317 - 320 which disables the check for mysql_real_escape_string. Everything functions correctly.

    I realize that the issue is deeper than this, but, this is the solution for the MSM issue on this upgrade.

    $str = mysql_real_escape_string($str, $this->conn_id);
      }
    /*
      elseif (function_exists('mysql_real_escape_string'))
      {
       $str = mysql_real_escape_string($str);
      }
    */
      elseif (function_exists('mysql_escape_string'))
      {
       $str = mysql_escape_string($str);

    All my MSM sites now work correctly. Looking forward to a real fix from Ellislab.

  • #7 / May 30, 2012 8:00pm

    Pedavoli

    6 posts

    Hi khronos,

    I had exactly the same problem, sleepless night trying to figure out where I went wrong.
    Upgrading from 2.2.2 -> 2.5.1

    Cannot thank you enough for this fix! Also looking forward to an Ellislab fix.

    Seb

  • #8 / May 30, 2012 8:01pm

    khronos

    19 posts

    You are more than welcome Seb! Glad my solution is helping.

  • #9 / May 30, 2012 10:02pm

    Pedavoli

    6 posts

    Have you submitted this as a bug yet?

    Seb

  • #10 / May 31, 2012 8:22am

    khronos

    19 posts

    I have now. Thanks for the reminder on that.

  • #11 / May 31, 2012 10:49am

    Dan Decker

    7338 posts

    Hi khronos,

    Thank you for your perseverance and bug report!

    I’m sorry we weren’t able to get to you in time, but is there anything else I can assist you with?

    Cheers,

  • #12 / May 31, 2012 10:54am

    khronos

    19 posts

    Good for now, thanks!

  • #13 / Jun 01, 2012 5:18pm

    Dan Decker

    7338 posts

    Hi khronos,

    Fantastic.

    If you need anything else, just let us know.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases