• Resolved annrochelle

    (@annrochelle)


    The 404 page’s title displays correctly if the invalid URL is at the top menu level. BUT if the invalid URL is deeper at a sub-menu level, then instead of displaying the correct 404 page title, the title of the current post is displayed. Examples below.

    We’re using X Theme and their X Custom 404 plug-in for a custom 404 page. When I deactivate Yoast SEO, the problem is resolved.

    When I deactivate X Custom 404 plug-in, and instead install and activate 404page plug-in using the same existing 404 page, it too, has the problem, but then when I deactivate Yoast SEO the problem is resolved. Also tried setting a different existing page to be the 404 page with 404page; no luck.

    Examples of this on our site, where I’m appending abc here to force a 404 error –

    1. Correct custom 404 page title of Whoops! is displayed
    https://nexlan.com/abc
    https://nexlan.com/accountmate/abc
    and a post, https://nexlan.com/trees-in-the-forest-of-reports/abc

    2. Incorrect custom 404 page title that’s our most current post title, Year-End Capital Investment Planning, is displayed
    https://nexlan.com/accountmate/modules/accounts-payable/abc and
    https://nexlan.com/industry-solutions/manufacturing/abc
    (Each time we add a new post, the newest post title becomes the incorrect 404 page title.)

    In Yoast SEO, Force Rewrite Titles was set to Disabled by default. When I try changing it to Enabled, the problem remains the same.

    Is there another Yoast SEO setting I can try?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support marcanor

    (@marcanor)

    Hello,
    Can you verify if the regular 404 error page is displayed when all other 404 related plugins are deactivated?
    If so, there is a conflict with one of the plugins or a theme. You can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.

    Thread Starter annrochelle

    (@annrochelle)

    Hi,
    Yes, sorry I didn’t mention that. When all 404-related plugins are deactivated, the regular 404 error page displays site-wide.
    I just posted a new GitHub issue and included an excerpt from X Theme’s support ticket where they narrowed it down to a function that may be at the root of the issue.
    Thanks,
    -Ann

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sometimes displays current post title instead of 404 page title’ is closed to new replies.