Support » Fixing WordPress » Moving to a new server. Error importing db.

  • 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ravi

    (@ravidreams)

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

    any ideas?

    Ravi

    (@ravidreams)

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

    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??

    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!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving to a new server. Error importing db.’ is closed to new replies.