Posted: July 7, 2016 at 1:38 pm
Hi There, I’ve got EE4 running with domain mapping at team5hack.uk I’m trying to migrate to nyswingfling.co.uk I’ve added the domain to WPDM plugin, but when I access it, EE is throwing this error: Warning: Invalid argument supplied for foreach() in /homepages/17/d247460610/htdocs/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php on line 243 Which I’m guessing is because the blog URL is now different. But I can’t for the life of me work out where the setting is in EE4 to reflect the blog. NB This is a multisite install, which I know you don’t fully support, but I didn’t realise before I did all the work!! nightmare. Any suggestions for where the gremlin is would be much appreciated… |
|
Edit: Should have added I did only just change DNS entries, but they do seem to be routing to the new site. and I can see Line 243 is a config load problem, I’m just not sure what problem! I’ve checked and there is a populated bunch of stuff in WP_Options table under EE_Config but I’ve no idea how to debug that |
|
Did you migrate the data from the original site into the other site’s options table? |
|
Hey Josh, Hope you are well! I migrated the network one directory previously, from /wpn/ to root, to make domain mapping work. Since then, all I have done is configure domain mapping to a temp development domain (team5hack.uk). Now when trying to remap to live domain at nyswingfling.co.uk it throws the error. I’m presuming I need to tell EE where the base domain is in the config somewhere? NB: I didn’t migrate data after changing the mapping as isn’t it all the same DB with multisite? Best |
|
No, with Multisite each blog has its own set of database tables. https://deliciousbrains.com/wordpress-multisite-database-tour/ |
|
Ah, well that’ll be why you’re doing this and not me. However I’m confused as to why that would be the problem. It was all working fine, with the config, on this sub-site, which is blog_ID 3 in the WP_Blogs table. And there is still an entry for EE_Config in WP_3_Config table, which I believe should be for that blog. The only thing I’ve done is change the domain in WPMU Domain Mapping Plugin from team5hack.uk to nyswingfling.com – I wouldn’t have thought this would change the DB table mapping for each sub-site would it? I hasten to add the site was working perfectly for two weeks at team5hack.uk after the move, and has only broken when I change the domain mapping… whereas if I put team5hack.uk back in it starts working fine again! Is there any more information I can provide you which would help? Perhaps the EE_config entry from the table? |
|
It sounds like the ee_config record in your options table got mangled by something. The “populated bunch of stuff” that you saw is actually a serialized array. If a serialized array gets tampered with, you’ll see the error you saw. The good thing is Event Espresso will actually re-generate a fresh config if it can’t find one. So what you can do is: A new fresh config option will be written to the options table, and you can use your text file to refer to as you go through the WordPress admin and re-apply the previously set options. |
|
Hey Josh, Couple of followup questions to this: – Why would the WPMU Domain Mapping config change affect this? If I access via team5hack.uk everything is fine, other URL not. Is Event Espresso referring to the absolute site URL at some point? |
|
I don’t know.
No. There is a logo URL option that stores a URL for where to find the logo image in the config, but I don’t think that’s what’s breaking things here.
No. You’re deleting one option from the options table. Your registration data are stored in their own tables outside of the options table.
You protect your data by keeping regular backups of the database.
Registrations are not exportable/importable. If you want to keep a backup of the ee_config, you 2) You go into the options table for the blog you’re working on using a tool like phpmyadmin, find the ee_config option, copy its value to a text file, and save that file somewhere. |
|
The support post ‘Changing Domain Mapped URL = EE4 Problem’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.