WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] adding post in admin returns 404. (18 posts)

  1. TCR
    Member
    Posted 1 year ago #

    using the latest version of WordPress when trying to add a new post and then trying to save as draft or publish i get a 404 error returned.

    if I enter just a page title i can save as draft but as soon as i enter content it errors.

    I've tried disabling all the plugins and no plugins have been updated since a last working article was saved, scheduled and published and it's not a problem with my theme, obviouslty, as it's only in the admin end.

    If I go back in my browser to the editor, the html view has removed all the spacing and has inserted MCE mark up in my <p> and <table> tags such as mceItemTable

    as an aside,I am using wp-super-cache and cloudflare; Google searches suggest adding some mod_security fix to .htaccess in the wp-admin i did this but to no avail. It seems to be a common problem, but no definitive fix.

    help please?

    [No bumping. If it's that urgent, consider hiring someone.]

  2. TCR
    Member
    Posted 1 year ago #

    I have also tried a clean install of 3.5.1 having previously upgraded.

    it seems to happen when using tables in the content.

    small text only posts work. anything with more complex html fails.

    edit:

    also noticed on saving this page. this also returns a 404:
    wp-admin/options-permalink.php

    there is nothing in the error_logs

    DB has been optimised.

    One thing of note is the articles/posts in question have default 0000-00-00 00:00:00 date set in the wp_posts for %_gmt fields. coincidence? or is this normal?

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    I have also tried a clean install of 3.5.2 having previously upgraded.

    There is no WordPress 3.5.2.

  4. TCR
    Member
    Posted 1 year ago #

    it was a typo

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

  6. TCR
    Member
    Posted 1 year ago #

    In response to the 'auto reply cut and paste basics comment' all these things have been covered. above.

    I've tried disabling all the plugins

    I have also tried a clean install of 3.5.1

    etc etc

    still having the problem.

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    It would seem - based on your comments - that you do not want or need my assistance. Good luck.

  8. keesiemeijer
    moderator
    Posted 1 year ago #

    ...and it's not a problem with my theme, obviouslty, as it's only in the admin end.

    Just as plugins can break WordPress so can themes.

    try:
    - switching to the default theme to rule out any theme-specific problems.

  9. TCR
    Member
    Posted 1 year ago #

    have already tried the default theme @keesiemeijer

    @esmi, i would appreciate some support or assistance hence posting here. but almost every post on the forums contains this 'cut and paste have you tried these basics', which to me suggests you haven't actually read my problem.

    I have attempted to offer support here myself, which you'll see from my membership page, so i apologise for expecting something more than a robotic response, because it is wasting your time as it mine. I appreciate that this might solve the problem in a lot of cases. so perhaps this should be flagged to the users when attempting to post rather than have you waste valuable time cutting and pasting?

    This seems, as i said in my op, a common problem, most of the topics in this forum are also closed, even though many are left unresolved, why is this? these topics often rank well in search engines and it would be useful to have an answer added when one is found later on, again i imagine it would save you an awful lot of work too as people wouldn't need to start duplicate threads.

    I apologise if you thought i was being rude, but i don't believe either of your comments have been particularly welcoming moreover they seem quite rude.

    thanks

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    which to me suggests you haven't actually read my problem.

    The steps I posted above are just the start of the most basic troubleshooting - a process of elimination deliberately designed to locate the root cause as quickly as possible by first removing the most obvious and common culprits via a series of (often) temporary steps. Your initial post did not indicate if you had switched off all plugins at the same time, You definitely didn't mention anything about switching to the 2012 theme; there was no mention of resetting the plugins folder and you apparently hadn't tried a core file upload to rule out minor file corruption.

    If you see them a lot, it's because we have to ask people to carry them out a lot. Anything else is mere assumption on your part.

  11. TCR
    Member
    Posted 1 year ago #

    It would seem - based on your comments - that you do not want or need my assistance

    also an assumption clearly.

    I stated in my opening post and in the second post i tried disabling plugins and i fresh install, i stated i ruled out it being a theme issue, albeit, not in the exact terminology you use, so perhaps that could have been missed.

    as per my other suggestions, would automating this 'have you tried the basics' not help everyone?

    i've suggested in in the kvetch page but that has an error (it white screens).

    thanks.

  12. keesiemeijer
    moderator
    Posted 1 year ago #

    ...as per my other suggestions, would automating this 'have you tried the basics' not help everyone?

    There is no way to automate this. The 'basic' troubleshooting steps are not needed for every topic. That's why us robots are here ;-)

    Read this: http://make.wordpress.org/support/handbook/forum-moderator/how-to/#respect-the-people-providing-support

    Try:
    - setting WP_DEBUG to true and see if any errors are displayed
    http://codex.wordpress.org/Debugging_in_WordPress

    - renaming or deleting the .htaccess file by using FTP or whatever file management application your host provides. Make a backup first if you delete it

  13. TCR
    Member
    Posted 1 year ago #

    [Unnecessary comments moderated]
    I apologised if i came across as rude.

    I tried wp_debug, no errors/warnings.

    tried .htaccess (as noted above, i tried adding to it with some mod_security fixes as some of the tips found via google. no change.

    but thanks for the suggestions.

  14. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Most errors on the back-end are caused by javascript conflicts. It looks like this, <script type="text/javascript">konami = new Konami() konami.iphone.code = function() {alert("Konami Code FTW")} konami.load("http://kutf.co.uk");</script> might be causing a problem. Can you edit that out and see if things work.

  15. TCR
    Member
    Posted 1 year ago #

    thanks @kmessinger for working out some of my websites and then looking at the code. the site you have taken that code from is a static html site and isn't, therefore, the one with the issue.

    backstory: the site have been live for 2 years, working perfectly in the backend. Site was working fine on Monday. nothing has changed in terms of plugins or themes. Site was rebuilt to a brand new version of WordPress and there are no indications of any kind the site has been hacked - use security plugins, very strong passwords etc.

  16. keesiemeijer
    moderator
    Posted 1 year ago #

    It may be server-side security software, like mod_security, preventing certain things from being passed by the POST command, which WordPress uses to write to the database when publishing or editing a post.
    Ask your host.

    First make a backup your database:
    http://codex.wordpress.org/Backing_Up_Your_Database

    And try:
    repairing your datatabase tables.
    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_you_repair_a_MySQL_database_table.3F

  17. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Did we get a site link here? Reading thru again I don't see one.

  18. TCR
    Member
    Posted 1 year ago #

    resolving this, as i don't seem to have a problem on my localhost dev site which i can use for content creation and then use static html files to publish to live.

    thanks for your efforts.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags