Forums

[resolved] Migrating multiple blogs into multisite problem (7 posts)

  1. bornfamous
    Member
    Posted 1 year ago #

    I followed the instructions for migrating multiple blogs into WP multisite, but got stuck when I installed WP Domain Mapping plugin. It gives the following instructions:

    Please edit your wp-config.php and move the line define( 'SUNRISE', 'on' ); above the last require_once() in that file or make sure you updated sunrise.php.

    However the line define ( 'SUNRISE', 'on' ); is already in the config.php file - although there is no require_once() in the file. Sunrise.php is where it belongs, but I don't know how to update it.

    What should I do?

  2. Andrea_r
    team pirate
    Posted 1 year ago #

    Were you using a different domain mapping plugin before? ;)

    One or the other - not both. :D

  3. bornfamous
    Member
    Posted 1 year ago #

    Thanks Andrea, no we haven't used any other domain mapping plugin.

  4. Andrea_r
    team pirate
    Posted 1 year ago #

    Sunrise.php is where it belongs, but I don't know how to update it.

    If there was one there, that's why I asked. If it was the one that came with the domain mapping plugin, you're good to go.

    Domain mapping is the only thing I know of that uses it. It doesn't come in a default install.

  5. bornfamous
    Member
    Posted 1 year ago #

    The trouble is that I came into this after my client had already installed WP Multisite, so I'm not exactly sure what was there other than what she tells me. I installed WP Domain Mapping plugin, but I don't know if sunrise.php was there already or not. I assume not, from what you say.

    But I can't configure the domains, that's the problem. I just get the message:

    Please edit your wp-config.php and move the line define( 'SUNRISE', 'on' ); above the last require_once() in that file or make sure you updated sunrise.php.

    And, like I said... that line is there, although there is no "require_once()" in wp-config.php.

  6. Andrea_r
    team pirate
    Posted 1 year ago #

    Look at the sunrise.php that she has.
    Compare it to the one in the plugin.

  7. bornfamous
    Member
    Posted 1 year ago #

    That was it! It was missing this code:

    if ( !defined( 'SUNRISE_LOADED' ) )
    	define( 'SUNRISE_LOADED', 1 );

    Thank you!!!!

Topic Closed

This topic has been closed to new replies.

About this Topic