{"id":962,"date":"2023-07-24T07:45:42","date_gmt":"2023-07-24T11:45:42","guid":{"rendered":"http:\/\/tech.creed3.com\/?p=962"},"modified":"2023-07-24T07:45:42","modified_gmt":"2023-07-24T11:45:42","slug":"wordpress-error-you-are-currently-editing-the-page-that-shows-your-latest-posts","status":"publish","type":"post","link":"https:\/\/tech.creed3.com\/?p=962","title":{"rendered":"WordPress Error: You are currently editing the page that shows your latest posts"},"content":{"rendered":"<p><img decoding=\"async\" style=\"margin: 0 4px 4px 0;\" alt=\"\" src=\"images\/stories\/wordpress-logo-simplified-rgb.png\" width=\"100\" align=\"left\" border=\"0\" \/>Are you seeing this message when you try to add a new post to your WordPress site? &nbsp;Have you recently moved to a new server? &nbsp;If the answer to BOTH questions is yes this might be the solution.<!--more--><\/p>\n<p>I was recently seeing this on a WordPress site that had been moved to another server. &nbsp;I was very careful to make all of the necessary changes to the database. &nbsp;Tested it before moving the domain. &nbsp;Everything looked great. &nbsp;A short time passed and I went to add a new post and was met with this error. &nbsp;I was also seeing some random odd errors for a plugin as well, but it was only complaining and didn&#8217;t offer any clue about what was actually wrong. &nbsp;If you search it out you&#8217;ll find many different sites explaining various steps to take to fix it. &nbsp;Some even correctly say it&#8217;s a database problem. &nbsp;I tried everything and nothing proved to help my situation. &nbsp;I&#8217;m not at all saying none of these solutions won&#8217;t work in certain instances, I&#8217;m sure they will, otherwise why would someone post it? &nbsp;It just didn&#8217;t help mine.<\/p>\n<p>Then I stumbled on <a href=\"https:\/\/stackoverflow.com\/questions\/21726630\/an-error-occurred-in-the-upload-please-try-again-later-in-wordpress-when-uplo\" rel=\"noopener\" target=\"_blank\">this in Stack Overflow<\/a> which gave me a clue. &nbsp;I didn&#8217;t follow the steps outlined here but did scan my database tables and found all of the ID&#8217;s that are supposed to be unique numbers for each record and set to auto_increment were not in fact set that way. &nbsp;A few were but most were not. &nbsp;Looking at the records I found all of the ID&#8217;s were set to &#8216;0&#8217;. &nbsp;Apparently there is some sort of &#8220;option&#8221; when importing database tables that ignores setting auto_increment. &nbsp;I&#8217;ve never run into this before and find that very odd you would ever want that option for any reason. &nbsp;I&#8217;ve not taken the time yet to research it out so it&#8217;s possible it was a bug somewhere as well. &nbsp;BUT the required fix was to edit each database table and change the unique ID records to auto_increment. &nbsp;After which the database properly renumbered all of the ID&#8217;s to sequential order and things now seem to be operating as expected. &nbsp;I may yet run into a problem later if a record points to the wrong ID number now, that remains to be seen. &nbsp;I may opt to re-import the entire database again and pay close attention whether auto_increment is being properly set. &nbsp;That would at least help insure there won&#8217;t be future errors with incorrect ID references.<\/p>\n<p>Anyway, this was my experience. &nbsp;If you recently moved to a different server I suggest checking this possibility. &nbsp;If this is the case for you as well, try doing another import on you database first rather than manually editing each table.<\/p>\n<p>Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you seeing this message when you try to add a new post to your WordPress site? &nbsp;Have you recently moved to a new server? &nbsp;If the answer to BOTH questions is yes this might be the solution.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,30,41],"tags":[92,44,31],"class_list":["post-962","post","type-post","status-publish","format-standard","hentry","category-technology","category-web-development","category-wordpress","tag-database","tag-mysql","tag-wordpress"],"views":1604,"_links":{"self":[{"href":"https:\/\/tech.creed3.com\/index.php?rest_route=\/wp\/v2\/posts\/962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.creed3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.creed3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.creed3.com\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.creed3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=962"}],"version-history":[{"count":1,"href":"https:\/\/tech.creed3.com\/index.php?rest_route=\/wp\/v2\/posts\/962\/revisions"}],"predecessor-version":[{"id":963,"href":"https:\/\/tech.creed3.com\/index.php?rest_route=\/wp\/v2\/posts\/962\/revisions\/963"}],"wp:attachment":[{"href":"https:\/\/tech.creed3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.creed3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.creed3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}