Home › Forums › Calendar Products › Events Calendar PRO › URL parameters not working with events calendar shortcode
- This topic has 23 replies, 2 voices, and was last updated 6 years, 2 months ago by Christopher Liu-Beers.
-
AuthorPosts
-
December 19, 2017 at 6:13 am #1408662Christopher Liu-BeersParticipant
I’m having the same problem that was outlined in a previous thread here: https://theeventscalendar.com/support/forums/topic/url-parameter-tribe-bar-date2017-09-doesnt-work-with-shortcode-calendar/
I’m running TEC 4.6.8 + PRO 4.4.20, and you can find my shortcode calendar here: https://www.ncrla.org/servsafe-certification-courses
Here’s my shortcode: [tribe_events view=”month” category=”servsafe”]
So, the issue occurs when a visitor is clicking around and ends up with a URL in this format: https://www.ncrla.org/servsafe-certification-courses/?tribe_events_cat=servsafe&tribe-bar-date=2018-01
When this happens, my pages loses its formatting and the calendar says “There were no results found” even though there are events listed in that month. Is there a fix for this situation? I love the shortcode functionality but this will cause problems with visitors. Thanks for your help.
December 19, 2017 at 2:40 pm #1409227BrendanKeymasterHi Christopher,
Thanks for email support and sorry you are having issues with the shortcode. Looks like it may be a conflict with the new version and possible another plugin.
Can you also try testing for conflicts with your theme and other plugins? If you would prefer not to do this on your live site, WP Staging will let you create a quick copy of your live site that you can use for testing. Let me know what you find!
Thanks,
BrendanDecember 20, 2017 at 10:51 am #1410120Christopher Liu-BeersParticipantI’ve created a staging site, which doesn’t have any WP Engine cacheing or other addons, and I’m still having the same problem. Also with all plugins disabled (except Advanced Custom Fields which is causing fatal errors when I disable it) and also same problem in 2017 default theme. Here’s a link: https://ncrla.staging.wpengine.com/servsafe-certification-courses/?tribe_events_cat=servsafe&tribe-bar-date=2018-01
When I’m navigating within the site (starting here: https://ncrla.staging.wpengine.com/servsafe-certification-courses), it appears normally. But once I start going back and forth, or if I call up this URL directly, it breaks and shows no events and incorrect formatting: https://ncrla.staging.wpengine.com/servsafe-certification-courses/?tribe_events_cat=servsafe&tribe-bar-date=2018-01
See attached for how the calendar should appear w/ 2017 Theme. Thanks for your help.
December 20, 2017 at 2:14 pm #1410335BrendanKeymasterHi. Sorry you’re experiencing this.
Thanks for your detailed message.
Please install the Rewrite Rules Inspector plugin (third-party, not guaranteed or supported by us) and send me a screenshot of its analysis of https://ncrla.staging.wpengine.com/servsafe-certification-courses
Thanks,
brendanDecember 21, 2017 at 8:01 am #1410871Christopher Liu-BeersParticipantHere you go…
December 22, 2017 at 4:19 pm #1412018BrendanKeymasterHi Christopher,
Thanks for the screenshot. What happens if you remove that rewrite rule? Is the problem resolved?
Thanks,
BrendanDecember 28, 2017 at 9:34 am #1414029Christopher Liu-BeersParticipantHi Brendan,
Sorry to be a bit dense here, can you explain how to remove that re-write rule? I “flushed” the rules using that plugin, but that didn’t seem to change anything. Any help appreciated. Thanks,
-ChrisDecember 28, 2017 at 10:06 pm #1414312BrendanKeymasterHi there,
It depends on where you have it. It most likely is in your .htaccess file in the root directory of your site.
Check there and let me know what you find.
Thanks,
BrendanJanuary 3, 2018 at 6:17 am #1416898Christopher Liu-BeersParticipantAccording to support at my host (WP Engine):
Weird, Im not seeing any rewrite in your rewrite rules tab for this or your htaccess
bash: fc: history specification out of range
# BEGIN WordPressRewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
There are no rewrite rules for that.
Please advise. Thanks!
January 3, 2018 at 10:38 pm #1417684BrendanKeymasterHi Christopher,
So WP Engine said those rewrite rules do not exist?
Thanks,
BrendanJanuary 4, 2018 at 2:44 pm #1418394Christopher Liu-BeersParticipantCorrect, that is my understanding of what WP Engine support said (see quote in my previous post). Where would that leave us?
January 12, 2018 at 9:54 pm #1425395BrendanKeymasterHi Chris,
WP engine should be able to just add those rewrite rules or the standard rewrite rules. Did they give you info on why or when they were removed?
Thanks,
BrendanJanuary 15, 2018 at 10:58 am #1426711Christopher Liu-BeersParticipantCan you please specify which rewrite rules should be in place for this Events Calendar shortcode functionality to work? Then I will ask WP Engine to put them in place. Thanks.
January 16, 2018 at 3:08 pm #1428093BrendanKeymasterHi Christopher,
The plugin just needs the default rewrite for WordPress.
Its the one above in this thread.
Thanks,
BrendanJanuary 17, 2018 at 9:07 am #1428605Christopher Liu-BeersParticipantOK, perhaps I’ve been unclear. WP Engine assures me that I DO have .htaccess with default WP rewrite rules in place for this install. So, with that in place, is there some other rewrite rule that also needs to be added? Thanks.
-
AuthorPosts
- The topic ‘URL parameters not working with events calendar shortcode’ is closed to new replies.