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:

/home/public_html/wp-content/plugins/wordpress-mu-domain-mapping/sunrise.php

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 iPhone app – crashes ** FIXED **

Today I downloaded the WordPress app from the Apple App store, for the iPhone. I have been looking forward to this for some time since that although my site looks good on a mobile device, it doesn’t lend itself to be uploaded to from a mobile device.

Until now… Enter the WordPress application from the app store. errrrm… ok… But it didn’t work for me. It would consistently crash and restarting the app would just crash immediately. I determined this was because I am running a WordPress multi-site. Whether it is or not, I found the fix:

Hi.
Please open “your/wordpress/directory/xmlrpc.php” in any text editor, and rewrite the line 477,
'blogid' => $blog_id,
to
'blogid' => (string) $blog_id,.
Yeah! Now, you can use WordPress for iOS!
Cheers!

Now I’m a happy camper…

BTW, I found this solution here, look for the first comment dated 05/07/2010.

edit: today I upgraded wordpress to the latest version 3.01 and I checked the above file, it has not been fixed. If you install the 3.01 update, you will also need to re-edit and include the string cast for the blogid.

on a side note: I also use tumblr, and the tumblr app for the iPhone is equally FANTASTIC! Highly suggested and recommended if you use tumblr.