Support

Home Forums Event Espresso Premium Changing Domain Mapped URL = EE4 Problem

Changing Domain Mapped URL = EE4 Problem

Posted: July 7, 2016 at 1:38 pm

Viewing 8 reply threads


Steve

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…


Steve

July 7, 2016 at 1:43 pm

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


Josh

  • Support Staff

July 7, 2016 at 1:52 pm

Did you migrate the data from the original site into the other site’s options table?


Steve

July 7, 2016 at 2:24 pm

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
J


Josh

  • Support Staff

July 7, 2016 at 2:59 pm

No, with Multisite each blog has its own set of database tables.

https://deliciousbrains.com/wordpress-multisite-database-tour/


Steve

July 7, 2016 at 3:34 pm

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?


Josh

  • Support Staff

July 8, 2016 at 9:22 am

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:
1) Deactivate the Event Espresso plugin.
2) You go into the options table for the blog you’re working on, find the ee_config option, copy its value to a text file, then delete that row from the options table. (To be clear, you’ll be deleting one option, named ee_config from the options table, not the entire table).
3) Reactivate Event Espresso.

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.


Steve

July 11, 2016 at 3:13 pm

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?
– If I do as you say about config, will that delete all registrations etc on the site?
– I’m concerned if this kind of thing happens on the production site once we’ve started registrations – is there anything I can do to protect against that?
– Can I import/export event registration / configuration etc? If so, how do I do that?


Josh

  • Support Staff

July 11, 2016 at 3:25 pm

– Why would the WPMU Domain Mapping config change affect this?

I don’t know.

If I access via team5hack.uk everything is fine, other URL not. Is Event Espresso referring to the absolute site URL at some point?

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.

– If I do as you say about config, will that delete all registrations etc on the site?

No. You’re deleting one option from the options table. Your registration data are stored in their own tables outside of the options table.

– I’m concerned if this kind of thing happens on the production site once we’ve started registrations – is there anything I can do to protect against that?

You protect your data by keeping regular backups of the database.

– Can I import/export event registration / configuration etc? If so, how do I do that?

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.

Viewing 8 reply threads

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.

Event Espresso