• Resolved Brian Brown, Ph.D.

    (@brianbrown)


    Hi Matthias!
    I noticed that this plugin is causing 404’s on category and tag pages (but not home page).
    I have also changed the category and tags base to /c/ and /t/ from their defaults in the permalinks settings, respectively.
    Perhaps use !is_singular() function?
    Thanks!
    -Brian

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matthias Pfefferle

    (@pfefferle)

    Hey Brian,

    where have you seen/recognized the issue? There is no category/tag support yet, so I am curious why/where it loads.

    Thanks,
    Matthias

    Thread Starter Brian Brown, Ph.D.

    (@brianbrown)

    Thanks for the quick response, Mathias!
    Short Answer: It isn’t. Its causing the posts to completely disappear on the category and tags pages.
    It is not generating an error in the debug log.
    It is not a conflict with other plugin(s)/theme(s). It does this regardless of any other plugin activations. As soon as your plugin is deactivated the expected, correct default behavior occurs again.
    It only sends a 404 on the category/tag pages when the category/tag (as set in the permalinks) base is only one (1) letter i.e., ‘example.com/c/‘ instead of ‘example.com/category/‘. If the category/tag base is >1 letter i.e., ‘example.com/cc/‘ it seems to redirect to an actual post, if the Link Fixer plugin is active.
    The browser “remembers” the 301 redirection when the Link Fixer plugin is deactivated.
    The Link Fixer plugin also causes this issue, regardless of whether your plugin is active or not and also acts independently of other plugin activations. Similarly, when the Link Fixer plugin is deactivated the expected default behavior is again restored, regardless of other plugins that are active, including yours.
    So these plugins have some action/hook in common.
    Nothing in the .htaccess file seems to be affecting the issue.
    Thanks!

    -Brian

    WordPress: (5.7-alpha-50001)
    PHP: 7.4.13
    PHP Memory Limit: 9 GB/WP Script 32 GB Total

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    I see!

    I proposed a fix: https://github.com/willnorris/wordpress-hum/pull/29

    If @willnorris is fine with it, I will release a new version later this week.

    Thanks for the report!

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    @brianbrown your problem should be fixed with v1.2.7

    Thread Starter Brian Brown, Ph.D.

    (@brianbrown)

    Thanks for the very quick fix Matthias!
    I can also confirm that this plugin v1.2.7 works with WP 5.7-alpha-50001.
    Regards,
    -Brian Brown

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Causing 404 on category & tag pages’ is closed to new replies.