Support

Home Forums Event Espresso Premium Venue details page is blank.

Venue details page is blank.

Posted: July 6, 2016 at 12:38 pm


ARAGATO

July 6, 2016 at 12:38 pm

I have added several venues with a lot of details. Google Maps, Address etc.
On every single event page exactly nothing is shown. The page is completely blank.
http://uploads.aragato-server.net/screenshots/201607066d7e48a8cc.jpg


Josh

  • Support Staff

July 6, 2016 at 1:35 pm

You mentioned in the other thread that you switched the template in the venue editor. If it’s using the default template is it still blank?


ARAGATO

July 6, 2016 at 3:05 pm

Yeah, I tried different templates, because I thought it might be the cause. However, nothing has changed. Yes, no matter which template, still blank.


Josh

  • Support Staff

July 6, 2016 at 3:14 pm

If you temporarily switch to another WordPress theme do the venue details begin to display?


ARAGATO

July 6, 2016 at 3:56 pm

50/50
Now the title shows, but thats about it. No Google Maps, no connected events etc. (through the addon in the functions.php)
http://uploads.aragato-server.net/screenshots/201607063f35ff6f7e.jpg

The thing is, it worked before… before I changed some settings or so.
I had a the title of the venue, Google Maps, related events etc.

I deactivated all other plugins as well. Does not change anything.
I previously had WPML installed, because I planned to do multilingual. However, I deactived it and erased all foreign language pages, posts etc.
Did I accidently remove some generated pages, posts etc. from Event Espresso?


ARAGATO

July 6, 2016 at 4:14 pm

Ok, I found a hint.
I switched the site language to English. I resaved the permalink structure et voila the venues are getting displayed correctly again:
http://uploads.aragato-server.net/screenshots/201607072c044384b0.jpg

Somehow the data is stored only for english language?!
Why is the data not shown when I switch my site to German.


ARAGATO

July 6, 2016 at 4:17 pm

Here the same venu when site language switched to German.
http://uploads.aragato-server.net/screenshots/20160707247e270bed.jpg

Nothing is shown.


Josh

  • Support Staff

July 7, 2016 at 8:48 am

This sounds like an issue with WPML. Have you contacted them for support?


ARAGATO

July 8, 2016 at 3:46 am

It is a event espresso thing. I just installed WPML and had some posts in another language. But nothing related to EE. I uninstalled it long time ago, did a clean uninstall and have single langage since.

In fact, even if I create new venues they are still not shown. So somehow, EE venues permalinks are set wrong. I also installed the custom function addon to change the permalinkname.

//*********
//* Change the default venue slug to something else in Event Espresso 4
//*********
add_filter( ‘FHEE__EE_Register_CPTs__register_CPT__rewrite’, ‘ee_custom_venues_slug’, 10, 2 );
function ee_custom_venues_slug( $slug, $post_type ) {
if ( $post_type == ‘espresso_venues’ ) {
$custom_slug = array( ‘slug’ => ‘Ort’ );
return $custom_slug;
}
return $slug;
}

But it does not matter if it is active or not.


ARAGATO

July 8, 2016 at 4:18 am

I found another hint. It has something to do with the localisation of EE.
I just removed the event_espresso-de_DE.mo and event_espresso-de_DE.po from
wp-content/uploads/espresso/languages and it works again. Venues are getting displayed correctly although my wordpress language is set to german.


ARAGATO

July 8, 2016 at 4:35 am

Status Quo:
Wordpress Langauge is German.

Situation 1: EE not translated. No event_espresso-de_DE.mo and event_espresso-de_DE.po in the folder wp-content/uploads/espresso/languages.
Venues getting displayed correctly with the permalinnk /venues/abc

Situation 2: EE translated to german. The files event_espresso-de_DE.mo and event_espresso-de_DE.po are located in /wp-content/uploads/espresso/languages. EE is translated in back and front-end. Everything works fine except venues. permalink slug is now “Veranstaltunsorte” instead of “venues” since it is translated in the translation files, /Veranstaltungsorte/abc. However, every venue page is blank. Old or newly created ones. It does not matter.

Situation 3: I just removed the translation for “venue” and “venues” in the event_espresso-de_DE.mo and event_espresso-de_DE.po. Opening a venue now, EE uses the permalink slug “venues” but it results in a 404.


ARAGATO

July 8, 2016 at 4:45 am

Situation 4: I just added //*********
//* Change the default venue slug to something else in Event Espresso 4
//*********
add_filter( ‘FHEE__EE_Register_CPTs__register_CPT__rewrite’, ‘ee_custom_venues_slug’, 10, 2 );
function ee_custom_venues_slug( $slug, $post_type ) {
if ( $post_type == ‘espresso_venues’ ) {
$custom_slug = array( ‘slug’ => ‘Ort’ );
return $custom_slug;
}
return $slug;
}

again. Now, venues getting shown again.
Note: I still use the translation files where the translation for “venue” and “venues” is removed. There seems to be something wrong not 100% correct with EE probably using the translation where it shouldnt. Fetching data from DB or something like that.


Josh

  • Support Staff

July 8, 2016 at 9:33 am

No actually after you start loading a new translation, or after you load code like the one in your custom functions to change the venue slug, is you need to go to the WordPress > Settings > Permalinks page. When that page loads, the rewrite rules will be flushed, and your venues will display correctly.

The support post ‘Venue details page is blank.’ 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