Support

Home Forums Event Espresso Premium EE4 shortcode not working in custom post types

EE4 shortcode not working in custom post types

Posted: September 11, 2014 at 8:55 am


Flo Murnig

September 11, 2014 at 8:55 am

Hello,

I have custom post types and would like to use shortcodes (like [ESPRESSO_EVENTS category_slug=”einsteiger-1404821877″] ) and it doesn’t work any more since I have updated to EE4.

The following error message displays on the custom post type site:
An EE_Error exception was thrown! code: EE_Config – _verify_config_params – 367
“No configuration section has been provided while attempting to save “_Config”.”
click to view backtrace and class/method details
/home/www/web74/html/test/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php ( line no: 367 )

The same shortcode works perfectly If I copy it into a blog post or page. The template file is almost the same. There is no significant difference between the custom post type template file and one of singe.php or page.php

One more thing: the final invoice shows a wrong time zone (Africa/Khartoum). I would like to set it to (Paris/Berlin/Vienna bzw. UTC+2)…how can I set the correct timezone?

Thanks for help, Flo


Josh

  • Support Staff

September 11, 2014 at 1:44 pm

Hi Flo,

Can you try updating to Event Espresso 4.4? There’s a shortcode custom post type fix included in the 4.4 release.

With the invoice timezone, can you let me know what you have already set in WP > Settings General? This will help me find out more on what’s going on.


Flo Murnig

September 11, 2014 at 2:11 pm

Hi Josh,

thanks for answering me. Seems the update solved the custom post type issue. thanks for that.

Regarding the timezone issue. I have set timezone to UTC+2 (german version does not offer to choose the city). I tried to change date/time format to different settings and that works perfect but the timezone stays on (Africa/Khartoum).


Sidney Harrell

September 11, 2014 at 8:10 pm

Can you post some screenshots so we can take a look at what’s going on? You can upload them to a service like flickr and post the links here. Are there any other places where it is showing up besides the invoice and the WordPress timezone settings?


Flo Murnig

September 12, 2014 at 2:47 am

Hello,

here arew some screenshots:
CPT Erros: http://test.bloc-house.at/img/bh_cpt_error_01.png
wrong time format front end: http://test.bloc-house.at/img/bh_datetime_frontend_01.png
wordpress settings: http://test.bloc-house.at/img/bh_timezone_01.png

I can not provide a screenshot of the incvoice, because [ESPRESSO_CHECKOUT] shortcode is not working any more!? I have got an error for critical pages are not working properly. I deleted the /event-registration/ page by mistake but restored it out of the trash.
Nothing is working since then.

Thanks, Flo


Flo Murnig

September 12, 2014 at 2:54 am

I fixed the issue with the [ESPRESSO_CHECKOUT] shortcode. Maybe some additional blank space character have been added to the page.

here is the pdf of the invoice with the wrong timezone: http://test.bloc-house.at/img/invoice.pdf

flo


Tony

  • Support Staff

September 12, 2014 at 5:39 am

Hi Flo,

Which version of WordPress are you currently using?

The reason for this is that UTC+2 applies to multiple locations so for accurate locations EE4 needs the Timezone to be set to a City close to you.

I notice you mentioned earlier:

I have set timezone to UTC+2 (german version does not offer to choose the city)

I downloaded WP4 and installed selecting Deutsch and ran through the install.

This allowed me to select a city as a location – http://take.ms/deRdZ


Flo Murnig

September 13, 2014 at 5:55 am

Hello,

I’m using the latest version of WP (4.0–de_DE).
I have spend some time with google for the wordpress timezone probleme. The dropdown to choose the timezone offers more than UTC. You can choose different cities at the very top which solves the summer/winter time issue as well.
That’s anyway something to fix for Event Espresso. Just remove the Timezone if somebody sticks on UTC and has not set it to a City?

thanks for the help and best regards, flo


Dean

September 15, 2014 at 12:31 am

Hi,

To get it to display as Berlin etc, you will need to select the appropriate city. Also I’m not sure if Germany uses daylight savings, but if you do, selecting the city will automate this as well rather than being at a static +2 UTC.

The support post ‘EE4 shortcode not working in custom post types’ 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