Invalid argument - wp-content/db.php on line 263 oops

I am having trouble getting the combination of Multi Database, Multi Domain and Domain Mapping working successfully on a new installation.

I am using the latest version of Wordpress (3.1.2) using subfolders for multisite and the the latest version of a number of MUDEV plugins with a RocketTheme theme Panacea (network enabled) using the Gantry Framework (enabled on a per site basis only)

The other (non MUDEV) extensions are Tiny MCE Advanved, XCloner, Gravity Forms and the Rok plugins used by the Panacea theme

So far I have done the following:

1. Created 16 databases plus the global database using CPanel. The global database is nicely populated with all the plugins installed since.
2. Installed and Multi Domain and Domain Mapping. Overwritten sunrise.php using dm-sunrise.php and added the line define( 'SUNRISE', 'on'); to wp-config.php
3. Entered the dedicated IP address for the main site http://www.main.com in Network Admin Settings
4. Added a domain to Multi Domain (Public) and added a *.thatotherdomain.com A record pointing to the dedicated IP address of the main site
5. Tried unsuccessfully to add a new site using http://www.thatotherdomain.com - I got sent to http://www.thatotherdomain.com/wp-admin/network/ and a 404 page on save.
6. Successfully added a new site http://www.thatotherdomain.com/test
7. Went to the list of sites and got the error Warning: Invalid argument supplied for foreach() in /home/main/public_html/wp-content/db.php on line 263
oops against the http://www.thatotherdomain.com/test ste

Supporter plugin is installed and activated but not configured.
Supporters only is set to No
The domain used for the administration area should be the [that entered by user]

In wp-content/db-config.php the folowing are in the global tables section

I have root access to the dedicated server hosting the main domain and full WHM/CPanel control over the others. I own all the domain names in question so should be able to configure them correctly if someone can explain why the error ocurred and give me an idiot-proof guide to configuring things that way.

I also cannot delete the site showing the error from within wp-admin network admin. It shows on a red background and the name changes to /name/ - deleted. I can delete it directly from the blogs table in the global database if I go to phpMyAdmin.

Also wondering if the A record becomes active straight away or takes time to propogate like nameserver changes do...

If you'd like to use those domains as multi-domain options from your rainbow.com site, then yes, you wouldn't need them to be setup with their own CPanel. And yes, you could simply remove the hosting accounts and manage them where you'd manage the domains.

If your primary domain is rainbow.com, I imagine you could simply park these (assuming your primary domain is rainbow.com) and that should point them as they need to be. From there you could add them as multi-domains in your settings on site and manage them from there.

If your primary domain isn't rainbow.com, you could simply setup those other domains as addon domains, specifying the directory where your rainbow.com site is installed.

I took one of the domains I want to use and changed the nameservers so instead of pointing to the account where I had set up CPanel hosting for it, it was using the same ns1 and ns2 nameservers as the main domain.

That allowed me to successfully park it on the main domain, I was also able to add a * wildcard in using CPanels Advanced DMX Zone Manager.

Not only does the domain, let's call it yellow.com, redirect to the main domain, but I also get redirected there when I try to add a site to it or a sub-folder in Network Admin.

Also, when I try to add a new site as a subfolder to the main site instead, I still get that same original error message that is pointing to the foreach() argument on /public_html/wp-content/db.php on line 263

That suggests to me that perhaps I probably need to look at Multi-DB because by checking the Root dedicated server account I see the ownership of the main domain is the reseller account I set the main server up on. The only other possible owner is Root.

It may be that the dedicated IP alone is not enough for the dedicated server setup.

I'm going to try the same thing with another Multistite that isn't using Multi-DB, is hosted on the same server, and also has a dedicated IP address.

Looks like the Invalid argument - wp-content/db.php on line 263 oops is down to Multi-DB versus the dedicated server setup or my faulty setup of Multi-DB.

I was able to create a site on the 2nd test site main domain where MultiDB was not installed without the error, as long as it was on the main domain.

However, I still get thrown back to the main domain when trying to set up a new site on either the root of the added domain in MultiSite or a subfolder. The site does not get added to the main domain sites list.

It may be that even though CPanel allows me to add an A * wildcard Record, there is still a delay in the DNS switching.

That means there may still be an ownership issue if there is no change after 48 hours - which is the max I've ever known nameserver changes to take to propogate, so am guessing that could be true for any other DNS issues.

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: