Support

Home Forums Event Espresso Premium Some of the Event Espresso default images not shown after moving to production.

Some of the Event Espresso default images not shown after moving to production.

Posted: February 27, 2015 at 1:54 am

Viewing 6 reply threads


SMT Kehitys

February 27, 2015 at 1:54 am

Hi,
My problem is that after moving to production from localhost, some of the Event Espresso default images not shown. Problems is that urls are still pointing to localhost.

My wordpress settings are correct and both “siteurl” and “home” are correct in WordPress options table.

I noticed that Event Espresso uses global variable “EE_IMAGES_URL” for getting image url, but I can’t find any place from Event Espresso settings where to change this.

Thanks so much and have a nice weekend!

-martti
martti.hyvonen@smt.fi


Tony

  • Support Staff

February 27, 2015 at 3:23 am

Hi Martti,

How did you move from localhost to live?

For example did you use a plugin, a migration script or search and replace strings within the DB?


SMT Kehitys

February 27, 2015 at 5:07 am

Just exported & imported database with PhpMyAdmin and then manually changed “siteurl” and “home” in WordPress options table. Usually this method works just fine.


Tony

  • Support Staff

February 27, 2015 at 5:53 am

That method doesn’t update any of the details within the database.

It will work for a standard WP install and some plugins, however if the plugin stores any of the URL’s to the database, they will still point to the original site and any plugins use serialized arrays it gets a little more tricky as you can not simply replace the urls with your new one.

The codex has a guide on how to move WordPress here:

http://codex.wordpress.org/Moving_WordPress

And there is also a more detailed guide here:

http://www.smashingmagazine.com/2013/04/08/moving-wordpress-website/
(Scroll down to the ‘Uploading A WordPress Website From A Local To A Remote Installation’ section)

Notice when moving from local to live, both tutorials mentioned using the WP Search & Replace script which does most of the work for you and also safely updates serialized arrays.

You can also use plugins such as WP Migrate DB from your local site which does something very similar and allows you to save a copy of the database with the updated URL’s that you can then import to your live site.


SMT Kehitys

February 27, 2015 at 6:02 am

Ok thanks, I have many WordPress sites, and normally that method works just fine. It depends how plugins are coded. There’s normally no need to save absolute url:s to database (in my opinion this is not clean code) . You could always generate absolute url’s using options table’s “siteurl” and “home” values and moving from development to production would be much easier…


SMT Kehitys

February 27, 2015 at 6:29 am

I used this tool as you told and it worked 🙂 Thank you so much.

https://interconnectit.com/products/search-and-replace-for-wordpress-databases/


Lorenzo Orlando Caum

  • Support Staff

February 27, 2015 at 9:57 am

Thanks for sharing how you fixed the issue. If you need help with anything else, just create a new support post:

https://eventespresso.com/support/forums/

Enjoy your weekend.


Lorenzo

Viewing 6 reply threads

The support post ‘Some of the Event Espresso default images not shown after moving to production.’ 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