WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Server Migration Disaster! (4 posts)

  1. DaveyWavey
    Member
    Posted 6 years ago #

    I am running multiple instances of WordPress. I just migrated all my data from one server to the next. I can see the first page but all the text and code is rendered wrong - what do i mean? Here are two examples:

    1) A sentence that is supposed to read "Don’t miss this annual event." shows instead as "Don\’t miss this annual event" (the quote marks are mine).

    2) An image doesn't appear because instead of being encoded properly like this:

    <img src="/wp-content/uploads/Jason/The_Bee_003__Custom_.jpg">

    it is encoded like this:

    <img src="%5C%22/wp-content/uploads/Jason/The_Bee_003__Custom_.jpg%5C%22">

    So you will notice the addition of trailing slashes and HTML code for quote marks and what not. Obviously the images do not show up and most of the links are messed up.

    I cannot access my admin section - whenever I try I am told "You do not have sufficient permissions to access this page." - also widgets are not working either.

    I do however have PHPMyAdmin access and FTP access. Any help greatly appreciated as I am at a loss here.

  2. DaveyWavey
    Member
    Posted 6 years ago #

    For the record, I reinstalled WP, and optimized and repaired the tables in MySQL. My server error log shows the following errors:

    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31, referer: http://mymessedupblog.com/wp-login.php
    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31, referer: http://mymessedupblog.com/wp-login.php
    [Sat Oct 06 05:24:21 2007] [error] [client 255.255.255.255] File does not exist: /var/www/vhosts/mymessedupblog.com/httpdocs/favicon.ico
    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31, referer: http://www.mymessedupblog.com/wp-admin/upgrade.php
    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31, referer: http://mymessedupblog.com/
    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31
    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31
    [Sat Oct 06 05:25:12 2007] [error] [client 217.132.250.149] File does not exist: /var/www/vhosts/mymessedupblog.com/httpdocs/favicon.ico
    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31, referer: http://mymessedupblog.com/wp-login.php
    [client 255.255.255.255] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mymessedupblog.com/httpdocs/wp-includes/capabilities.php on line 31, referer: http://mymessedupblog.com/wp-login.php

    So something in line 31 of wp-includes/capabilities.php is not happy.

    Help?

  3. DaveyWavey
    Member
    Posted 6 years ago #

    Man. I Googled capabilities.php because I have literally been rendered sleepless for 3 days by this problem. My tech guys are nice and all but man.

    All I had to do to fix this was to disable magic_quotes_runtime in my php.ini file - well I didn't do it but my server guys did - after I saw a similar problem get solved this way.

    So yeah. I've learned a lot and I feel kind of stupid. But the problem is solved. I think.

  4. dmry
    Member
    Posted 6 years ago #

    Download http://file.dmry.net/blog/01/wp_user_roles_yama.zip patch file and upload in root directory of wordpress. Finally call it on URL (http://your_blog_url../wp_user_roles.php)

    Before appyling patch, backup your database..

    For this patch, I write a manual, but in Turkish. If you want, you can read or translate with any service..

    Patch URL: http://www.dmry.net/wordpress-231-kullanici-yetkileri-yamasi

    THIS PATCH ONLY FOR WP 2.3.x

Topic Closed

This topic has been closed to new replies.

About this Topic