URL parameters not working with events calendar shortcode

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.
Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #1408662

    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.

    #1409227
    Brendan
    Keymaster

    Hi 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,
    Brendan

    #1410120

    I’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.

    #1410335
    Brendan
    Keymaster

    Hi. 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,
    brendan

    #1410871

    Here you go…

    #1412018
    Brendan
    Keymaster

    Hi Christopher,

    Thanks for the screenshot. What happens if you remove that rewrite rule? Is the problem resolved?

    Thanks,
    Brendan

    #1414029

    Hi 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,
    -Chris

    #1414312
    Brendan
    Keymaster

    Hi 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,
    Brendan

    #1416898

    According 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 WordPress

    RewriteEngine 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!

    #1417684
    Brendan
    Keymaster

    Hi Christopher,

    So WP Engine said those rewrite rules do not exist?

    Thanks,
    Brendan

    #1418394

    Correct, that is my understanding of what WP Engine support said (see quote in my previous post). Where would that leave us?

    #1425395
    Brendan
    Keymaster

    Hi 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,
    Brendan

    #1426711

    Can 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.

    #1428093
    Brendan
    Keymaster

    Hi Christopher,

    The plugin just needs the default rewrite for WordPress.

    Its the one above in this thread.

    Thanks,
    Brendan

    #1428605

    OK, 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.

Viewing 15 posts - 1 through 15 (of 23 total)
  • The topic ‘URL parameters not working with events calendar shortcode’ is closed to new replies.