...
Plugin Banner

This is the place to ask questions, report issues, or request new features related to our plugins. Whether you’re troubleshooting something small or have an idea to make things better, we’re here to help. Please search the forum before posting to see if your topic has already been covered.

You need to log in to create posts and topics.

404 Page to BetterDocs page is seen as vaiid link, even though it isn't

We use BetterDocs to create a docs system, but for some reason, links pointing to non-existent page are shown as valid, even when you open them they show a 404 (Status Code is also 404) - the only show as broken when there's a PHP error on them - what can we do to make sure these links, which get a 404, also get shown as broken?

I am using the most default settings, just installed the plugin, selected the posttypes for BetterDocs to be included - the links are now found, but show as OK Status 200 - while a 404 is returned.

Hi Dylan,

Thanks for reaching out. I'll take a look at this today or tomorrow. I've never used BetterDocs, but I'll see what I can do. I see there is a version in the WP repo, as well as premium features on their website; is using the repo version good enough for testing? 

I may have additional questions if you're willing to go back and forth. It might also be easier to discuss on Discord in a chat if you are on there.
https://discord.gg/3HnzNEJVnR

Ari

Hi Dylan,

Thanks again for the report. While testing with BetterDocs, I found and fixed a bug that could cause the behavior you described. For internal links, the plugin first checked whether the URL matched a post on your site, and if it did, it reported the link as OK without actually requesting the page. That is now fixed in version 2.0.0.1, so those links get a real check like any other.

Please update to 2.0.0.1, run the scan again, and let me know whether the problem is gone. I can't say for sure yet that this was what you were seeing.

If the links still show as OK, I need more information:

1. An example link that shows OK but returns a 404 (you can remove your domain), exactly as it is written in the doc, and whether it is a relative link (/docs/...) or a full URL.
2. Which scan shows it as OK (Page Scan, Site Scan, Link Browser, or the front-end scan).
3. What the page returns in a private/incognito window while logged out.
4. Whether you use a caching plugin, a security plugin or firewall, or a CDN.
5. Any BetterDocs settings for restricted access or an internal knowledge base.

Thanks for helping me track this down.

Ari

 

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.