WordPress.org

Ready to get started?Download WordPress

Forums

Moving to a new server. Error importing db. (5 posts)

  1. loauc
    Member
    Posted 6 years ago #

    Hi, I'm in the middle of a server move and I think I got almost everything done.

    The problem arises when I import my db with the following command:

    user@linux:~/files/blog> mysql -h mysqlhostserver -u mysqlusername
    -p databasename < blog.bak.sql

    It then asks me for a password and after a while I get back the unix prompt.

    When I try to access my site I get the following error:

    Warning: Invalid argument supplied for foreach() in /home/trikis/public_html/wp-includes/classes.php on line 92

    Warning: Cannot modify header information - headers already sent by (output started at /home/trikis/public_html/wp-includes/classes.php:92) in /home/trikis/public_html/wp-includes/pluggable.php on line 391

    Searching for possible causes/solutions I now think it's related to an encoding problem but if I check both phpMyAdmins I can see that both databases are set to collation latin1_swedish_ci and if I try to open the sql file with Notepad2 it gets recognized as being UTF8.

    Please help!

    Felix.

  2. Ravi
    Member
    Posted 6 years ago #

    hello,i too got this error but after upgrading to 2.3.1 from 2.2

    any ideas?

  3. Ravi
    Member
    Posted 6 years ago #

    got it solved :) go to options->permalink and update the permalink structure and make the changes in the .htaccess file. it works.

  4. firouz47
    Member
    Posted 6 years ago #

    upgrading to 2.3.2 i after restoring data basehave I got the same error-msg
    Cannot modify header information - headers already sent by (output started at /home/trikis/public_html/wp-includes/classes.php:92) in /home/trikis/public_html/wp-includes/pluggable.php on line 391
    and i could not access to my site
    I'm totaly desprate, any tips?
    I checked htaccess and permalink, but i did not modified any thing , just default setting, I used fantastico for upgrading.
    any tips??

  5. Jay Mayu
    Member
    Posted 6 years ago #

    I got da same prob while upgrading to WP 2.5!!!
    Later I come to know from Ravidreams dat it's a theme related issue.. use Cutline 2.1 by Chris Pearson and David Peralty.
    It's a solution for this problem!!!

Topic Closed

This topic has been closed to new replies.

About this Topic