Edit link goes to 404 error
-
When we run the Broken Link Notifier plugin, it returns a number of broken links on our site that we go to investigate. However, when we click on “Edit”, we get the following error:
“Not Found
The requested URL /wp-admin/post.php was not found on this server.”
I use the Broken Link Notifier plugin on two different sites, and both are getting this error. I’m running version 1.1.3.
-
Hi @oddmonster , I apologize that I am just seeing this. I’m looking at it now, and don’t get the same problem. I am on the
Broken Link Notifier
>Results
page, looking at the Source column. TheEdit
link should look something like this:https://yourdomain.com/wp-admin/post.php?post=1950&action=edit
. If you go to edit the actual page, can you confirm that the URL path matches this link? I’m guessing that is mismatched and that is where the problem lies.Yep! My edit URL looks like that almost exactly: https://multisitedomain.edu/wp-admin/post.php?post=4061&action=edit
At first I thought the issue might be that I’m running this plugin on a multi-site installation, but the other single standalone site I’m trying to run this plugin with produces the same error, and has the same URL configuration: https://singledomain.uvm.edu/wp-admin/post.php?post=15909&action=edit
- This reply was modified 2 months, 2 weeks ago by oddmonster.
@oddmonster , yeah I have it installed on a multi-site installation as well, so that shouldn’t be an issue. If you go to the page that the link was found on to edit it, what does the URL path look like?
By the way, I’d recommend replacing your domain in the link above to an a fake one like “mydomain.com” or “example.com” since this forum is public.Also, I just noticed if I go to your sites without going to the admin, I get this message:
"If you are a member of the general public: The fact that you are seeing this page indicates that the website you just visited is either experiencing problems, or is undergoing routine maintenance."
- This reply was modified 2 months, 2 weeks ago by Aristocles.
So, a URL where a broken link is currently being found is here: https://sample.edu/blog/i-team/resource-library-landing-page/?blink=_wp_link_placeholder
@oddmonster , it sounds like the Edit link is working now? That link you are sharing goes to the page that the broken link is on, and if it’s visible on the page it will highlight as it does in your example. You will see it highlighted and glowing under
HOME & FAMILY > Family Support
. When you click on the Family Support link it takes you to a page that says the link is broken. When looking at your console, I see the link is showing as<a href="_wp_link_placeholder">Family Support</a>
.- This reply was modified 2 months, 1 week ago by Aristocles.
- This reply was modified 2 months, 1 week ago by Aristocles.
- This reply was modified 2 months, 1 week ago by Aristocles.
No, sorry, the Edit link brings up a message: “Not Found: The requested URL /wp-admin/post.php was not found on this server.”
- This reply was modified 2 months, 1 week ago by oddmonster.
Hi @oddmonster , I can’t help you unless you tell me what the link should look like. I need to know the path to the post edit screen. Go to Posts and edit any post, then copy the URL to that edit screen and send it to me (masking the domain of course).
I think there might be something we’re both missing here. I’ve given you the link to the post edit screen several times now. This is the link that comes up when I use this plugin, it shows a link is broken, and offers me an Edit link: https://sample.edu/blog/i-team/resource-library-landing-page/?blink=_wp_link_placeholder
When I click that link, it comes up as “
“Not Found
The requested URL /wp-admin/post.php was not found on this server.”
What is the specific information that’s missing from what I’ve shared?
@oddmonster
Alright, let’s clarify. I am understanding that you are on theBroken Link Notifier > Results
page. Under theSource
column, it shows you the page where the broken link is found. If you hover your mouse over the table row, you will see a list of action links:View | Omit | Scan Page | Edit
. When you click on theEdit
link, you are seeing the error:Not Found, The requested URL /wp-admin/post.php was not found on this server
. TheEdit
link (not theView
link) is supposed to go to edit the page that the link is on, but it gives you the error instead.In order for me to fix that error, I need to know what your post edit screen path actually is. To get that, ignore the links on the Broken Link Notifier Results page; I am not asking for the edit link that shows up there. In your admin dashboard of your website, go to either the
Posts
orPages
section. Then edit any post or page. This is your actual edit screen. Copy the URL of that screen from your browser. It should end with something like/post.php?post=12345&action=edit
. I am guessing that your path does not actually use/wp-admin/
, but I could be wrong.Now, separate from all this is the
View
link on the Broken Link Notifier Results page under theSource
column, which is supposed to take you to the front-end of the site where you can view (not edit) where the link is at. That link has the query string parameter?blink=...
. When I go to this page using the domain you gave me before you changed it to a generic one, I do not see a problem. I see the page where the broken link is at, and the broken link is there on the page blinking yellow. It is underHOME & FAMILY > Family Support
. I’m not sure what this has to do with theEdit
link. ThatView
link is only supposed to show you where it is located; it does not allow you to edit it. They are two completely separate things.Unfortunately I cannot share screenshots here. It is much easier for me to discuss this on Discord if you are able to get on there. https://discord.gg/3HnzNEJVnR
- You must be logged in to reply to this topic.