WordPress.org

Ready to get started?Download WordPress

Forums

404 - Page Not Found Error When Posting (13 posts)

  1. steelz09
    Member
    Posted 5 years ago #

    Why do I get 404 - Page Not Found Errors when I'm trying to post either a page or a post? It also sometimes occur when I try to save as a draft.

    What's strange is that it doesn't ALWAYS occur. It's as if I get to a certain line and then it starts happening. For example, I'll type a paragraph or so and attempt to save, and everything works fine. Then, I'll continue to write a few more paragraphs then try to save again, and then I get a 404 - Page not found error. Strange huh? Then, I'll delete some of the post, and it works again... very odd.

    Is this a common bug that you all are aware of? It's EXTREMELY frustrating and I would like to fix it if possible. Any help would be greatly appreciated.

    Regards,

    John

  2. steelz09
    Member
    Posted 5 years ago #

    bump

  3. Shane G
    Member
    Posted 5 years ago #

    HI,

    Please check with the permissions to your database and wordpress blog folder...if they may not resolve the case then check with the permalinks settings for your blog.

    Thanks,

    Shane G.

  4. steelz09
    Member
    Posted 5 years ago #

    Shane,

    If it was a permissions problem why would it only occur.. sometimes?

    For example, I could be writing an article and save it as a draft and it works. Then, i'll write a little more and save (following the same process) and then I get the 404 error.

    Any thoughts?

    Thanks,

    John

  5. steelz09
    Member
    Posted 5 years ago #

    This is still a major problem for me.. does anyone have a resolution?

    For example, I try to post a page (w/ php code, using exec-php) with the following contents:

    <?php

    $dbhost = "placeholder";
    $dbuser = "placeholder";
    $dbpass = "placeholder";

    $connection = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to database');
    $dbname = 'dbname';

    if (!mysql_select_db($dbname, $link)) {
    echo 'Could not select database';
    exit;
    }
    $sql = "fgsgdgdgfsgsdfgsgdfgsdgsdgfgsdgdsgs";

    ?>

    ^^^^^^^ The ABOVE WORKS AND ALLOWS ME TO SAVE THE PAGE ^^^^^^

    Then I try to modify the above page and do this (JUST A MINOR CHANGE)

    <?php

    $dbhost = "placeholder";
    $dbuser = "placeholder";
    $dbpass = "placeholder";

    $connection = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to database');
    $dbname = 'planetst_main';

    if (!mysql_select_db($dbname, $link)) {
    echo 'Could not select database';
    exit;
    }
    $sql = "SELECT * FROM TABLENAME ORDER BY COLNAME ASC";

    ?>

    ^^^^^^^ WHEN I TRY TO SAVE THIS I GET A 404 ERROR PAGE NOT FOUND. THIS HAPPENS WHEN I TRY TO POST THE PAGE OR SAVE IT AS A DRAFT. THEN IT LOGS ME OUT OF THE ADMIN PANEL.. ^^^^^^

    Does anyone have any experience with this type of error(s). Very strange.. This should cause an error. Very frustrating!

    Any help would be greatly appreciated.

    Regards,

    John

  6. steelz09
    Member
    Posted 5 years ago #

    does nobody respond to these threads or does nobody know the answer?

  7. dlmfisher
    Member
    Posted 5 years ago #

    Most responses are made by other people with WordPress blogs who just happen to have a little time to haunt the forums. (I'm procrastinating.)

    Is exec-php causing the problem?

  8. steelz09
    Member
    Posted 5 years ago #

    I've seem this problem both with and without exec-php. But lately it seems like its only php causing the problem?

  9. noyz319
    Member
    Posted 5 years ago #

    I've recently been having this exact same proble, have you been able to find a solution for this?

    This error doesn't happen all of the time, but it happens quite a lot. Even occurs when editing a page. Sometimes i can save it without getting the error if i delete a paragraph or two from the end of a page. Its a very strange an annoying error.

    Any help would be much appreciated. Thanks!

  10. iceman2009
    Member
    Posted 4 years ago #

    I am having exactly the same problem.

    @steelz09 did you find a resolution to this problem?

    @noyz319 what about you? any luck in resolving this issue?

    This issue is very frustrating and will appreciate your help.

    Thanks.

  11. noyz319
    Member
    Posted 4 years ago #

    I upgraded to the latest WP version made sure all my plugins were up to date and that seemed to fix it for me, never did find out the exact route of the problem though. I think it may have been outdated or conflicting plugins.

  12. erikajurney
    Member
    Posted 4 years ago #

    I've found that this consistently happens to me when I have a post containing the word 'select' or any variations like 'selections' 'selected' -- even with all plugins disabled.

    Very irritating as it is a word which comes up a lot in my topic, and I'm always having to explain this strange fact to my authors...

    If anyone has a fix, I'd love to hear it.

    Erika

  13. erikajurney
    Member
    Posted 4 years ago #

    I'm running 2.9.1 now and this problem seems to be gone. Frustrating to not know the exact cause, but I'm relieved it is working!

    Erika

Topic Closed

This topic has been closed to new replies.

About this Topic