• Resolved Will

    (@willage)


    Good morning,

    When the All In One WP Security & Firewall plugin is activated, our menu items which link to category archives break.

    In this case, we have a category called “Review Magazine”. The slug for the category is “the-review”. When I activate the All In One WP Security & Firewall plugin, the category slug in our menu changes to “review-magazine” which gives a 404 page as the category archives live at “/the-review”.

    I’ve tried disabling security and firewall features, but the only thing that fixes the issue is deactivating the plugin.

    Thanks for your time.

    • This topic was modified 2 years, 6 months ago by Will.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support vupdraft

    (@vupdraft)

    I have tried to replicate this on my site but have thus far been unable to.

    Is it possible you have the slug and the category the wrong way round?
    The slug is the the bit that is supposed to be at the end of the url

    Say I have
    A category – security
    The slug – how-to-improve-security

    The URL should be https://www.mysite/how-to-improve security

    Thread Starter Will

    (@willage)

    Good morning,

    No, the slug is what is causing the problem. Here is some additional info that may help:

    1) We are using the plugin with WPMU.
    2) Here is what is returned by get_term for the same category both with and without this plugin enabled:

    With the plugin enabled:
    object(WP_Term)#2587 (10) { ["term_id"]=> int(6222) ["name"]=> string(15) "Review Magazine" ["slug"]=> string(15) "review-magazine" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(5) ["taxonomy"]=> string(8) "category" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(58) ["filter"]=> string(3) "raw" }

    With the plugin disabled (this is the correct slug):
    object(WP_Term)#2505 (10) { ["term_id"]=> int(6222) ["name"]=> string(15) "Review Magazine" ["slug"]=> string(10) "the-review" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(5) ["taxonomy"]=> string(8) "category" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(58) ["filter"]=> string(3) "raw" }

    Thanks.

    Plugin Contributor Prashant Baldha

    (@pmbaldha)

    Very Good Morning,

    I am not able to replicate the issue. Can you please give me a code that creates custom taxonomy and related custom post type? so, I can try to replicate the issue.

    Thank you,
    Prashant

    Thread Starter Will

    (@willage)

    Hi @pmbaldha,

    We are not using any custom taxonomy or post types for this blog. This is occurring with the default “post” type and “categories” taxonomy that are build into WordPress.

    Thanks,

    Will

    Plugin Support vupdraft

    (@vupdraft)

    Can you try the following:

    1) Go to WPML>>Settings>>Slug translations
    2) Enable the *Translate custom post and taxonomy base slugs (via WPML String Translation).* option & save the changes
    3) Visit Settings>>Permalinks
    4) Resave the settings

    Thread Starter Will

    (@willage)

    Good afternoon @vupdraft,

    We do not have the WPML plugin installed and are hoping not to have to add any additional plugins.

    Thanks.

    Plugin Support vupdraft

    (@vupdraft)

    Apologies, I read WPMU as WPML.
    What theme are you using?

    Thread Starter Will

    (@willage)

    We are using TwentyTwenty with a custom child theme, however I just tested it with another, completely different theme and the same thing happens.

    Thanks.

    Thread Starter Will

    (@willage)

    Good afternoon,

    I was able to resolve this by setting global_terms_enabled to 0 in the sitemeta table in the DB. Still curious as to why this issue was only present with the All in One Security Plugin enabled, however I am glad to have it resolved.

    Thanks for looking into it.

    Plugin Support vupdraft

    (@vupdraft)

    That’s interesting, thanks for letting us know.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Category slug for menu item changes when plugin is activated’ is closed to new replies.