Support

Home Forums Event Espresso Premium URGENT: Event Table Shortcode stopped working with WP 4.4

URGENT: Event Table Shortcode stopped working with WP 4.4

Posted: December 9, 2015 at 12:23 pm


Oguzhan Altun

December 9, 2015 at 12:23 pm

Hello,

The shortcode that used to show all the events in the table template stopped working after upgrading to WP 4.4.
Here is the link: http://www.genevaphotoclub.com/dates-prices/
So I cannot make any sales right now on my website.
Could you please check urgently?
I’m using the Avada theme.


Oguzhan Altun

December 9, 2015 at 12:31 pm

PS: I did do the following checks:
EE4 version 4.8.26
Events Table View Template 1.3.3
Fusion theme 3.8.8 (latest)
Also checked with the twenty 14, still the same issue
I didn’t install any new plugins recently


Tony

  • Support Staff

December 9, 2015 at 12:38 pm

Hi there,

Can you double check the Event Espresso – Events Table View Template add-on in still installed and activated on your site please?

I’m using 4.4 on multiple sites with the events table so just starting from the beginning.


Josh

  • Support Staff

December 9, 2015 at 12:43 pm

Hi there,

You might also verify that your other plugins are compatible with the shortcode changes in WordPress 4.4. I checked and the same shortcode is working as expected on our testing site that runs WordPress 4.4. You can check here:

http://ee4m.eventespresso.com/espresso-events-table-template/


Oguzhan Altun

December 9, 2015 at 12:46 pm

Hi Tony, yes all the EE4 add-ons are still installed and active:
screenshot


Oguzhan Altun

December 9, 2015 at 12:51 pm

Sorry, with the correct image
screenshot


Oguzhan Altun

December 9, 2015 at 1:03 pm

I just also tried disabling all plugins except of EE4 and EE4 table plugin, still the same issue. Then I tried again changing the theme to twenty thirteen, still the same..

screenshot


Oguzhan Altun

December 9, 2015 at 1:04 pm

screenshot


Tony

  • Support Staff

December 9, 2015 at 1:07 pm

Try using just [ESPRESSO_EVENTS_TABLE_TEMPLATE]

What happens?


Oguzhan Altun

December 9, 2015 at 1:18 pm

yes that works, but of course the format is not ideal, plus I have this same table in almost 8 other pages. I changed it on this page temporarily:

http://www.genevaphotoclub.com/dates-prices/

it must be all the other stuff in the short code. Could you let me know how (or when) I can get back to the original table? Here is my original code:

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=”espresso-event-table-template.oa.php” order_by=”start_date” table_style=”standalone” table_search=”false” table_filter=”false” table_sort=”false” category_filter=”false” table_paging=”false” reg_button_text=”Sign Up” sold_out_button_text=”Sold-out”]
[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=”espresso-event-table-template.oa.php” order_by=”start_date” table_style=”standalone” table_search=”false” table_filter=”false” table_sort=”false” category_filter=”false” table_paging=”false” reg_button_text=”Sign Up” sold_out_button_text=”Sold-out”]
[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=”espresso-event-table-template.oa.mobile.php” order_by=”start_date” table_style=”standalone” table_search=”false” table_filter=”false” table_sort=”false” category_filter=”false” table_paging=”false” reg_button_text=”Sign Up” sold_out_button_text=”Sold-out”]


Josh

  • Support Staff

December 9, 2015 at 3:01 pm

Hi Oguzhan,

There are a number of reports of shortcodes breaking with WordPress 4.4. While I’m not 100% sure why this particular shortcode isn’t working for you since the last update, it looks like if you shorten the file names of the templates you’re loading it may help. So for example, your first shortcode could be input as this instead:

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file="template.oa.php" order_by=start_date table_style=standalone table_search=false table_filter=false table_sort=false category_filter=false table_paging=false reg_button_text="Sign Up" sold_out_button_text="Sold-out"]

Please note in the above example, I removed the quotes around the parameters that set a value and not a string. Please also note that you’ll need to change the name of the file to “template.oa.php” as well.


Oguzhan Altun

December 9, 2015 at 4:33 pm

hi there,
I just did exactly this, also added a copy of the original template with the name template.oa.php.
Unfortunately it didn’t work, as you can see
Any other suggestions?


Josh

  • Support Staff

December 9, 2015 at 5:15 pm

I see that the first one is working. With the second and third shortcodes, can you try switching to using single quotes instead of double quotes when you set the parameter values?


Oguzhan Altun

December 9, 2015 at 5:16 pm

if it will help, the issue seems to be the template_file link. I tried renaming the template file also to templateoa.php, it still didn’t work. However if take it out and just put order_by=”start_date” for example, works without a problem.


Josh

  • Support Staff

December 9, 2015 at 5:20 pm

I’m not running into the same problems with the template_file parameter on my test sites. Are you loading those from a location from your WordPress theme or from the /uploads/espresso/templates folder?


Oguzhan Altun

December 9, 2015 at 5:21 pm

ok, the single quotes for the template_file did the trick! Shall I go ahead and change all the tables in the website now, or is it something you guys can fix easily with the table_template update?


Josh

  • Support Staff

December 9, 2015 at 5:32 pm

I don’t think this is something we can fix with an update to the table_template plugin. There might be some fixes coming to the WordPress shortcode API in a 4.4.1 release of WordPress, but you probably want to get things working before then.


Oguzhan Altun

December 9, 2015 at 5:37 pm

ok. you might want to add this to Lorenzo’s pinned post, as it seems like not everything works well with WP 4.4


Josh

  • Support Staff

December 9, 2015 at 5:43 pm

Everything works as far as we can tell, I think the reason you were having trouble is the way the shortcode parameters you had set were prone to have some errors, which the earlier version of WordPress would tolerate, but not 4.4.


Oguzhan Altun

December 9, 2015 at 5:44 pm

I did exactly as explained here
https://eventespresso.com/wiki/events-table-view-template-add-on/


Josh

  • Support Staff

December 9, 2015 at 5:47 pm

Whomever wrote those docs didn’t know what they were doing.


Oguzhan Altun

December 9, 2015 at 5:52 pm

🙂 hope it wasn’t you!
Thank you anyway for the super quick response, halfway done with the updates.


Josh

  • Support Staff

December 9, 2015 at 6:03 pm

Nope, it wasn’t me. You’re welcome.

The support post ‘URGENT: Event Table Shortcode stopped working with WP 4.4’ 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