Support

Home Forums Events Calendar Add-on [ESPRESSO_CALENDAR] doesn't work with theme 'Travel Time'

[ESPRESSO_CALENDAR] doesn't work with theme 'Travel Time'

Posted: December 13, 2016 at 4:58 pm

Viewing 9 reply threads


TagestourenFranken

December 13, 2016 at 4:58 pm

Hi,

I’ve installed ‘Travel time’ as my theme. And I use EE3 with calendar extension. Unfortunately, I can use the shortcode [EVENT_ESPRESSO_CATEGORY event_category_id=””], but not [ESPRESSO_CALENDAR]. I have Tabs installed on my single post – only the first one is displayed; clicking on other tabs does not change them when [ESPRESSO_CALENDAR] is active.

Is there a way how to fix this?
It’s okay to use [EVENT_ESPRESSO_CATEGORY] – but is there a way not to show the entries as a list? Because as list I see more then 20 entries on my page, which is quite confusing.

Kind regards.


Tony

  • Support Staff

December 14, 2016 at 7:53 am

Hi there,

I had a look at your site and notice the calendar is working for me.

Is there a specific page I need to view to see the problem?

Could you add a screenshot that shows what the problem is?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


TagestourenFranken

December 15, 2016 at 11:18 am

hi,

thanks for getting back to me.
I’ve installed a new site – though, you couldn’t see the actual site right now. Therefore, I’ve published the new site under:
http://tmp.tagestouren-franken.de

Please have a look at:
http://tmp.tagestouren-franken.de/tour/baumwipfel-wein-hexen-und-bier/#
Clicking on the third green button on the left side (‘Jetzt buchen’) you can see, how the tabs ought to be.
And here is a page with the calendar shortcut on it:
http://tmp.tagestouren-franken.de/tour/schloesser-bier-burgen/#
Please click ‘Jetzt buchen’ again.

As you can see on the third page, a category-list works as it should do:
http://tmp.tagestouren-franken.de/tour/hoehlen-bier-burgen/

Is there a way to fix this?


TagestourenFranken

December 15, 2016 at 11:20 am

And I’ve one more problem:
Booking a tour leads to an exception:

Fatal error: Call to undefined function Maibe_unserialize() in /wp-content/plugins/event-espresso/includes/process-registration/add_attendees_to_db.php on line 217

What does it mean?


Josh

  • Support Staff

December 15, 2016 at 11:28 am

So for the calendar short code, does the short code work if it’s placed within the regular content part of the page (not within tabbed content)?

With the fatal error, did the actually say Call to undefined function Maibe_unserialize()?

The reason I ask is because the code on that line should actually be:
$event_meta = maybe_unserialize( $questions->event_meta );

So if your copy of the plugin has this:
$event_meta = Maibe_unserialize( $questions->event_meta );

Then your copy needs to be fixed. If your plugin file correctly uses
maybe_unserialize() then there may be something amiss with your installation of WordPress. This is because maybe_unserialize() has been included in WordPress since version 2.0.


TagestourenFranken

December 15, 2016 at 11:58 am

The calendar shortcut doesn’t work on a tour page at all. Including it leads to vanishing picture gallery in a section below my tabs.

Yes, the function is missing.
Please have a look at my screenshot:
https://www.evernote.com/l/Ak7lRhuRwzdLKb0llolXDg4Z1Xy4E30XgKAB/image.png


Josh

  • Support Staff

December 15, 2016 at 12:04 pm

The screenshot doesn’t show that the function is missing. You should probably open up add_attendees_to_db.php and change line 217 so it reads:

$event_meta = maybe_unserialize( $questions->event_meta );

I can advise contacting the theme author to see if they can investigate why the theme isn’t allowing the short code to parse.


TagestourenFranken

December 15, 2016 at 12:27 pm

Thank you for your advice.

a) I will contact the theme author. It’s a bite strange, isn’t it?
b) I’ve looked up the code at line 217. I’ve found out, that the EE3 code is buggy. At add_attendees_to_db.php at line 217 as well as in attendee_functions.php line 18 it says: $question_groups = Maibe_unserialize where it should be maybe_unserialize.

So, first issue is fixed.
I hope, the theme author knows what he did ๐Ÿ™‚
Thank you once more.


TagestourenFranken

December 15, 2016 at 12:30 pm

Appendix: Found out what went wrong in the code.
Since I am German, I replaced the word ‘May’ with ‘Mai’ in EE with Dreamweaver. Seems that I also translated the attributes beside the months ๐Ÿ˜‰


Josh

  • Support Staff

December 15, 2016 at 1:14 pm

You shouldn’t ever need to edit the plugin files to translate text strings. The month names in Event Espresso are wrapped in translation functions and are translation ready.

Viewing 9 reply threads

The support post ‘[ESPRESSO_CALENDAR] doesn't work with theme 'Travel Time'’ 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