FIX: You are currently editing the page that shows your latest posts WordPress

I’m not editing the page that shows your latest posts!

I moved from Godaddy to a Dutch hosting provider.
I did the move myself, but here I think something went wrong with the import of the database.
I was not immediately aware of this because I don’t write a post every day, but at one point I got the following error: ‘You are currently editing the page that shows your latest posts.’.

If I look at Stackoverflow for this, everyone says that you edit the main page, but this was not the case with me.

You are currently editing the page that shows your latest posts.
FIX: You are currently editing the page that shows your latest posts.

Let’s fix ‘You are currently editing the page that shows your latest posts.’

Necessities:

  • An FTP client such as FileZilla
  • An FTP account with editor rights

Log in via the FTP client and navigate to the website directory. You can recognize this by the wp- files.

FIX: You are currently editing the page that shows your latest posts.
FIX: You are currently editing the page that shows your latest posts.

Find the wp-config.php file.
Right click the wp-config.php file and select View/Edit.

FIX: You are currently editing the page that shows your latest posts.
FIX: You are currently editing the page that shows your latest posts.

Scroll to the last line, press enter to create an empy line, and add the line below:

define( 'WP_ALLOW_REPAIR', true );

Now browse to one of these URLs and change the domain to yours.

  • For https (Certificate):
    https://domain.com/wp-admin/maint/repair.php
  • For http (not secure):
    http://domain.com/wp-admin/maint/repair.php

Click Repair Database

FIX: You are currently editing the page that shows your latest posts.
FIX: You are currently editing the page that shows your latest posts.

Wait for the repair and then remove the extra line from the wp-config file.

Now try to create a new post or page in WordPress again and see if the problem is resolved.


Banner image credits

Banner Image by simplu27 from Pixabay.

Published by

Bas Wijdenes

My name is Bas Wijdenes and I work as a PowerShell Automation Engineer. My main focus is PowerShell, Azure AD, Azure Infrastructure, Server Management, and Exchange (Online).

2 thoughts on “FIX: You are currently editing the page that shows your latest posts WordPress”

Leave a Reply

Your email address will not be published. Required fields are marked *