Events Made Easy › Forums › Bug fixed or feature request implemented › Displaying Past Bookings No Longer Working
Tagged: eme_mybookings future=0
- This topic has 11 replies, 2 voices, and was last updated 5 years, 11 months ago by Anonymous.
-
AuthorPosts
-
Thu 20 Dec 2018 at 02:36 #59182AnonymousInactive
We have a page that displays the events our users have registered for in the past year:
[eme_mybookings template_id=39 template_id_header=5 template_id_footer=7 future=0]
where template_id 39 =
[eme_if tag="#ESCY" value="2018"]<li><strong>#_STARTDATE -- </strong>#_LINKEDNAME <strong>--</strong> #_STARTTIME to #_ENDTIME</li>[/eme_if]
This worked recently…not sure with which new version it stopped working. Is perhaps #ESCY no longer the field we should be using in the comparison? Or is there something different with the “future=0” attribute?
Also tried testing with the following:
[eme_mybookings template_id=3 template_id_header=5 template_id_footer=7 future=1]
With future=1, it will show the upcoming bookings as expected, but if we change it to future=0, no bookings are found. Our template_id=3 does not have a any kind of qualifier like template_id=39. All past bookings should be displayed but they aren’t.
Any help you could offer would be greatly appreciated.
Thu 20 Dec 2018 at 08:04 #59183FrankyKeymasterCan you check if this fixes it for you:
https://plugins.trac.wordpress.org/changeset/1998386/events-made-easy/trunk
(only the second change is really needed, the first one is cosmetic)
Thu 20 Dec 2018 at 11:05 #59184FrankyKeymasterThis is now already in the released version.
Thu 20 Dec 2018 at 15:58 #59187AnonymousInactiveUnfortunately, this did not change things for us. We can still only display future events. If we change it to future=0, no bookings are found.
Thu 20 Dec 2018 at 16:46 #59188FrankyKeymasterArghl … I see it now, let me fix this.
Thu 20 Dec 2018 at 16:48 #59189FrankyKeymasterThis will fix it:
https://plugins.trac.wordpress.org/changeset/1998945/Fri 21 Dec 2018 at 02:30 #59194AnonymousInactiveFirst, love the “Argh” comment! Second, unfortunately, the fix did not seem to fix the issue for us. Anything else we can try?
Fri 21 Dec 2018 at 08:37 #59195FrankyKeymasterWell, the fix works here, tried both with and without future. Did you apply it to the latest version?
And if it doesn’t work, check your webserver logfiles for PHP errors, that might give an extra hint (it might be that you need to activate PHP error logging, see your provider if that is not the case).Fri 21 Dec 2018 at 09:48 #59196FrankyKeymasterWait, I did some more testing: the code now returns a list of bookings, but for future=0 it seems to return all bookings, not just the ones for past events. Let me check this.
Edit: that is the correct behavior, also documented like this. So for me it seems ok.Sat 22 Dec 2018 at 01:11 #59205AnonymousInactiveOk, thanks Franky. Will send your comments on to our developer about the php errors and see if there might be something there that may help us figure this out.
Thank you so much for your help!
Sat 22 Dec 2018 at 01:20 #59206FrankyKeymasterWell, using the latest version will result in correct (and documented) behavior for the shortcode, no need to check on that with developers …
Sat 22 Dec 2018 at 01:35 #59207AnonymousInactiveThanks Franky – just installed the latest version and it does work! Our past events are back! Thank you so much for your time and attention – we really appreciate it!!
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.