WordPress MultiSite & sunrise.php

Are you getting the above error message as well?

After doing a fresh install and enabling multi-sites I couldn’t see the Domain Mapping and Domains sub-menu options under Network Admin / Settings.

I loaded up my trusty editor and confirmed

define('SUNRISE', 'on' );

was in fact in the file. It was slightly higher than where it said, it’s not important, but I moved it anyway, and I still got the error.

I checked and sunrise.php was in fact in the correct location under /home/public_html/wp-content/sunrise.php

So how did I fix it?

The problem was, it was the incorrect (read:old??) sunrise.php file!

Copy the correct one from:


and replace the previous one, and reload your admin page. You will now see the welcoming domains page :D

If you want to find out more as to why it happened, and how it is that my sunrise.php got “moved” or “re-moved”, it was due to a conflict by domain mapping plugins. I’ll be blogged about it in the near future and it will appear here (currently in draft and not published).

WordPress MU Domain Mapping missing

Screenshot 2014-12-02 05.39.14

Screenshot 2014-12-02 05.55.36

Domain Mapping and Domain options returned

When upgrading from version to and returning to the network admin site, I had lost all access to the domain management tools. The options normally reside under Settings (right) were no longer there. A quick check of some domains I have setup through domain mapping confirmed that it was still working, ie things were being redirected, however I couldn’t check, change, add or remove any mappings. I couldn’t see them at all.

I went into the Network Admin plugins page to find the plugin hadn’t re-enabled itself after the update. As far as I know, this is the first time any plugin has failed to reactivate. If this was by design, a few moments of stress would have been alleviated if some user warning could have been provided.

After re-enabling the plugin, all domain maps were right where they should have been.