Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: 404 when editing a post with hyperlink

Discussion in 'Misc WordPress Requests' started by Michael Nelson, Feb 19, 2018.

  1. Michael Nelson

    Guest

    Reply To: 404 when editing a post with hyperlink, by Michael Nelson

    > Could you please tell us how your permalink structure is set?

    Right now, it’s /%postname%/.

    When I change it to the default, I get a different error. When I save the post, I immediately get an error screen saying “Forbidden You don’t have permission to access /wp-admin/post.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.”, eg https://drive.google.com/a/eventesp...14AJ5e7XXKCAuR-4NHBlcOZKdJ_/view?usp=drivesdk

    > Could you please change your permalinks to the default structure, save your settings, then change it back & resave?

    Good suggestion but that didn’t fix it.

    > Also, when you’re adding a link, are you using the visual or text tab on the editor?

    I’ve been using the text tab, but when I switch to using the visual tab I also get the error.

    > Also, MichaelNelson, can you access the .htaccess file a level above your web root folder?

    You mean the folder that CONTAINS the public_html (where public_html contains wp-admin etc) right? There was no .htaccess file there, but when I add one with random content, it caused an error on the server, so I’m pretty sure that means apache is picking up that .htaccess file and using it. So I’m pretty sure that means “yes, I can access the .htaccess file a level above the web root folder”.

    > Have you tried changing wp_debug from ‘false’ to ‘true’ then tried to save a post w/a link & seeing if any errors are thrown?

    Yes I set WP_DEBUG to true but am not seeing any error text when saving the post with a hyperlink in it and getting the 404.

    > Lastly, does your hosting provider’s control panel have an aplet wherein you can read your site’s error logs, or are there any error_log or error.log files in your web root or other WordPress subdirectories that might be relevant?

    Yes we can see access logs and error logs.

    When I have the default permalinks, these are the access logs when I try to save the post with a hyperlink in it:

    > 96.54.153.82 – – [19/Feb/2018:09:10:40 -0800] “POST /wp-admin/post.php HTTP/1.1” 404 – “http://mariakoropecky.com/wp-admin/post.php?post=719&action=edit” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0”

    In the error log, I see

    > [Mon Feb 19 08:58:02 2018] [error] [client 96.54.153.82] File does not exist: /home/vhosts/mariakoropecky/public_html/403.shtml, referer: http://mariakoropecky.com/wp-admin/post.php?post=719&action=edit
    “[Mon Feb 19 08:58:02 2018] [error] [client 96.54.153.82] File does not exist: /home/vhosts/mariakoropecky/public_html/403.shtml, referer: http://mariakoropecky.com/wp-admin/post.php?post=719&action=edit

    Reply To: 404 when editing a post with hyperlink
     
    #1

Share This Page

Monarch Social Sharing Plugin