• Resolved DaveyWavey

    (@jewlicious)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter DaveyWavey

    (@jewlicious)

    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: https://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: https://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: https://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: https://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: https://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: https://mymessedupblog.com/wp-login.php

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

    Help?

    Thread Starter DaveyWavey

    (@jewlicious)

    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.

    Download https://file.dmry.net/blog/01/wp_user_roles_yama.zip patch file and upload in root directory of wordpress. Finally call it on URL (https://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: https://www.dmry.net/wordpress-231-kullanici-yetkileri-yamasi

    THIS PATCH ONLY FOR WP 2.3.x

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Server Migration Disaster!’ is closed to new replies.