permalinks issue giving 404

Home Forums Calendar Products Events Calendar PRO permalinks issue giving 404

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #957635
    Catherine Lennon
    Participant

    Hello

    i have just today purchased the PRO version and have both the PRO and regular running in a dev website in a local network. I experience also the permalinks 404 issue. To explain in detail the issue happens when i click to see an indiviual event. It happens only when i have the permalinks structure to anything but the default. If i put it back to the default the problem is gone. The problem appears also in other themes and with other plugins disabled. I have also changed the slug for events page and event single page but nothing.The only time i can fix the problem is to revert to the default permalink structure. Here is my htaccess

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /efc.be/
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    RewriteRule ^wp-admin/includes/ – [F,L]
    RewriteRule !^wp-includes/ – [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ – [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php – [F,L]
    RewriteRule ^wp-includes/theme-compat/ – [F,L]

    # END WordPress
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>

    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>

    Also i need to tell you that i have some custom content types that i used to have issues with their permalinks and managed to fix it by adding flush_rewrite_rules( false ); after the register_post_type function. I also had (deactivated now) this function in my functions.php

    function my_flush_rewrite_rules() {
    flush_rewrite_rules();
    }
    //add_action( ‘after_switch_theme’, ‘my_flush_rewrite_rules’ );
    and before buying your plugin i used to have the epsresso events plugin which also experienced the same issue.
    Can you please help me?

    #957636
    Catherine Lennon
    Participant

    This is the dump of the Debug bar on the 404 page i get

    Request:

    efc-event/understanding-learning-and-innovating-the-agriculture-and-food-systems-sustainability-challenge
    Query String:

    name=understanding-learning-and-innovating-the-agriculture-and-food-systems-sustainability-challenge&category_name=efc-event
    Matched Rewrite Rule:

    (.+?)/([^/]+)(/[0-9]+)?/?$
    Matched Rewrite Query:

    category_name=efc-event&name=understanding-learning-and-innovating-the-agriculture-and-food-systems-sustainability-challenge&page=
    Maybe it can help?

    #957766
    Geoff
    Member

    Hi Catherine! Welcome to the forums and thanks for getting in touch. ๐Ÿ™‚

    Man, that’s a weird issue indeed! The fact that this was happening with another plugin raises a red flag, but let’s see if we can figure out what’s happening here together and if there’s anything we can do on this end.

    First off, I see you noted having tried activating a default WordPress theme (which one did you try?) and deactivating other installed plugins. Did you notice any change in behavior under those conditions? How about when activating a default WordPress themeย and deactivating all other plugins together? Any change?

    I do want to note that sometimes 404 issues will require clearing cache on the site as well as your browser for testing. So, if you have any caching features or plugins installed, keep an eye out for that.

    Secondly, I’d like to try running through the steps in this guide. Many of the 404 issues we’ve seen come up are resolved by following these steps, so definitely give those a try and let me know if you notice any difference.

    Let’s start there and see what we find. ๐Ÿ™‚

    Cheers!
    Geoff

    #958047
    Catherine Lennon
    Participant

    Hi there, my name is Tolis actually as i had to purchase the plugin under my boss’ name. Now for the problem, disabling the other plugins made no difference, or changing theme either.What makes a difference (fixes the problem) is reverting back to the default permalinks structure.

    The weird thing is that as i was about to try to change theme again to confirm the problem still occurs as i explained in the original email, changing to the twentyfifteen theme and back to my custom one fixed the problem…. I have no absolutely idea what fixed it… I was mostly worried for this flush rewrite rules or any weird htaccess rules but i didnt even touch these. What i did since yesterday was just flush cache, change slugs and go back to the previous ones and change themes and disable/enable plugins. Who knows…

    Thanks
    Tolis

    #958076
    Geoff
    Member

    That’s awesome, Tolis! Thanks for following up and sharing that here. I’m so glad that switching things out seemed to address the issue.

    I’ll go ahead and close this thread but please feel free to start a new one of anything else comes up and we’d be happy to help. ๐Ÿ™‚

    Cheers!
    Geoff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘permalinks issue giving 404’ is closed to new replies.