• I have installed WordPress 6.4.2 and everything seems to be in order. This is regarding a fresh install. It installed correctly, database user has full permissions and I can install plugins, save images to media library, etc. However, when I attempt to edit a page or post, and I click the update button, the page immediately reverts to what it was before but still has the popup message that says it saved. It is set to publish immediately. This is NOT a caching or CDN issue or anything like that. When I look at the raw MySQL logs, there are no update or insert queries even being attempted, they just don’t happen at all. The same thing happens when I attempt to make a new page or post, it says it saved but on the backend no update or insert queries are even happening. It’s not failed queries, it’s that no update or insert queries are even happening.

    I have examined the logs and update and insert queries work fine elsewhere regarding WordPress functionality but for updating or creating posts or pages, the queries don’t even exist despite in WordPress in a browser it saying it saved but then instantly reverting to what the pages/posts were in the first place.

    I have tried editing/creating pages/posts in multiple browsers and have made sure there are no browser plugins or blockers, etc. causing any issues.

    What could be the issue here? I don’t even know what to check for this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aismk

    (@aismk)

    UPDATE:

    To note, I have installed WordPress 6.4.2 freshly on 6 different computers and I get the same results on all of them. I redownloaded WordPress just to be sure I didn’t have a corrupt version. Maybe this is just a version thing?

    I am logged into my WordPress as an administrator.

    I am still having this issue, however, I can at least update comments just fine. By default, the “Hello World!” post exists after a fresh WordPress install and there is a default response comment from “A WordPress Commenter”. In wp-admin, if I go to comments and edit the comment, that does successfully update and save just fine. After I did this, it now shows an update query in MySQL when I attempt to update the “Sample Page” page that is present by default after install, however, it updates itself with what is already there regardless of any changes I make, thus ultimately changing nothing. Why wasn’t this query happening until I updated a comment? That’s so far beyond bizarre I don’t even know what to say. When I edit, remove, or whatever anything on the Sample Page and then publish the changes, the MySQL update query content is of what the page already had there and is not picking up any of the changes I make. I have made changes to this page and attempted to publish them in Chrome, Edge, Firefox, Chromium, Opera, and Safari and the same thing happens in all of them. There are no browser plugins that are interfering.

    When I attempt to make a new page altogether, it looks like the only query besides SELECT queries is as follows: UPDATE wp_posts SET post_author = 1, post_date = ‘2024-01-04 16:43:04’, post_date_gmt = ‘0000-00-00 00:00:00’, post_content = ”, post_content_filtered = ”, post_title = ‘Auto Draft’, post_excerpt = ”, post_status = ‘auto-draft’, post_type = ‘page’, comment_status = ‘closed’, ping_status = ‘closed’, post_password = ”, post_name = ”, to_ping = ”, pinged = ”, post_modified = ‘2024-01-04 16:43:04’, post_modified_gmt = ‘2024-01-04 16:43:04’, post_parent = 0, menu_order = 0, post_mime_type = ”, guid = ‘https://localhost/?page_id=16’ WHERE ID = 16

    It doesn’t matter what I edit or add in the browser before publishing or attempting to save a draft, the query will always be like that (i.e., no post_content). Additionally, when I attempt to add a new page, I get prompted to select a style pattern, I can then make modifications, but when I click publish, all that happens is I get the little popup in the bottom left that says saved and then the prompt to select a pattern comes up again and nothing has saved.

    It’s as if WordPress isn’t detecting any changes made in the editor. I have used visual and code editor mode and the same thing happens regardless. When trying to edit something that already exists, it’s like the changes I make aren’t detected and WordPress is somehow grabbing a stored version of the original content from somewhere and updating with that, thus not actually changing anything.

    Is WordPress 6.4.2 unstable/buggy? Should I try radically older versions instead?

    Based on your description, I assume that you have not activated any plugins? And the TwentyTwentyFour theme is activated?

    Go to Tools > Site Health. Are there any anomalies there?

    Have you also taken a look at your hosting’s error log? If not, you can also activate debugging as described here: https://www.ads-software.com/documentation/article/debugging-in-wordpress/

    Thread Starter aismk

    (@aismk)

    I have not activated any plugins and I do have the TwentyTwentyFour theme active. The only thing that Site Health says is that I have errors visible to users (which I want while setting everything up and testing). I have full error logging enabled as suggested in the documentation (all set in wp-config.php) and there is nothing in the logs indicative of anything relevant. The only thing in the log for errors I see is that one of the image uploads I did while testing, took over 30 seconds. This only happened once and images were uploaded correctly so it should be completely unrelated.

    I have absolutely no clue where I would even start looking at this point. It’s bizarre.

    This is definitely not normal behavior. I supervise dozens of projects and have never experienced this.

    My guess is that something is wrong with the hosting. Which PHP version is being used? Which database system (MySQL/MariaDB)? Apache or nginx? Is a security tool active on the server? A firewall with content filter or similar? If you copy the entire project to another system, will the same thing happen there?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Updating/Creating pages no update/insert query, won’t save’ is closed to new replies.