• I have used the cpanel feature to migrate a wordpress site from plesk. Everything works fine (it’s setup as http://www.domain.com), but i cannot access wp-admin nor can I go to http://domain.com.

    I get this error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/dcconnet/public_html/wp-content/themes/default/functions.php:657) in /home/dcconnet/public_html/wp-includes/pluggable.php on line 890

Viewing 9 replies - 1 through 9 (of 9 total)
  • What version of WordPress are you using?

    check your functions.php file for blank lines above and between php functions. That often throws that error.
    at the top of functions.php:

    blank line
    <?php

    or between functions

    ?>
    blank line
    <?php

    Thread Starter Cris Henderson

    (@kegster)

    esmi: wordpress 3.0.1

    rev. voodoo- there were blank lines between functions. i removed them and am still getting the error. i do not understand why it would matter– since its works on the plesk system.

    I’m trying to figure out why a new install is trying to load the old Kubrick theme when it should be loading Twenty Ten. Did you initially manage to login and switch themes?

    Thread Starter Cris Henderson

    (@kegster)

    It’s not a new install. I migrated a site from plesk to cpanel– the entire site is setup on plesk already. The database and theme and content and everything came with it…

    WordPress will redirect from http://domain.com to http://www.domain.com if you set the www.* in the settings. The site works like a charm on the front end only… if you use the exact url in the settings (this case, the www. is there). When i try to access /wp-admin with out without www, it gives me same error. (same error for both as pasted above).

    Thread Starter Cris Henderson

    (@kegster)

    I checked both files in question, and the file functions.php has no line 657 (the functions file in the theme directory it is referring to)

    When i try to access /wp-admin with out without www, it gives me same error. (same error for both as pasted above).

    Ah!

    Try adding something like:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

    to your root .htaccess file.

    Thread Starter Cris Henderson

    (@kegster)

    When I try to access /wp-admin with the www it doesnt work (before and after the Rewrite code)

    Is your server running mod_rewrite?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘moving wordpress to cpanel from plesk’ is closed to new replies.