• Basically, here’s what I did and what happened:

    1. Developed locally from vanilla to a complete blog with all plug-ins, etc.
    2. Exported the xml file with content, etc.
    3. Uploaded all files to remote server.
    4. Changed details in wp-config.php to fit remote environment
    5. Started the blog.
    6. Went to admin and imported the xml file, booted all plugins and widgets, etc.
    7. Eventually, I started getting php errors on the pages (at the top), e.g.:

    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /usr/home/useraccount/public_html/wp-content/plugins/recent_posts_comments/recent-comments-posts.php:64) in /usr/home/useraccount/public_html/wp-content/plugins/wp-spamfree/wp-spamfree.php on line 32

    I don’t know much about php, but thought I might have cookies that belonged to the local blog that are confusing the remote version. I deleted all cookies and even rebooted computer. After that, I can’t even access the admin area. The login interface itself says:

    ERROR: WordPress requires Cookies but your browser does not support them or they are blocked.

    (I definitelly have cookies enabled)

    and the php error output says:

    Warning: Cannot modify header information – headers already sent by (output started at /usr/home/useraccount/public_html/wp-content/plugins/recent_posts_comments/recent-comments-posts.php:64) in /usr/home/useraccount/public_html/wp-login.php on line 12

    Warning: Cannot modify header information – headers already sent by (output started at /usr/home/useraccount/public_html/wp-content/plugins/recent_posts_comments/recent-comments-posts.php:64) in /usr/home/useraccount/public_html/wp-login.php on line 24

    Any idea where to start fixing this?

Viewing 1 replies (of 1 total)
  • Thread Starter danvendel

    (@danvendel)

    I’m replying to myself.

    My own php guru Nils took a look and suggested that it might be that the file /usr/home/useraccount/public_html/wp-content/plugins/recent_posts_comments/recent-comments-posts.php (mentioned in the errors in previous post) had several empty lines at the bottom. He asked me to remove all lines after the final ?>.

    I did, and the problem disappeared just like that!

Viewing 1 replies (of 1 total)
  • The topic ‘Errors after moving blog to new server.’ is closed to new replies.