The links you are using are generated by the WP_List_Table
class and have nothing to do with the database. Nevertheless, before we try any repair, it is good to clean the link in the database and restart the permalinks (just to be sure):
Dump the database, open it in a text editor, and replace all references to the old address. Then reload the database.
Changes the default permalink structure.
In the settings check if site_url and home_url are right and save again.
Returns the structure of permalinks you used.
This certainly did not solve your problem in wp-admin, but at least now in BD and .htaccess everything is fine.
Your problem is in a server variable. WP_List_Table
uses the variable $_SERVER['HTTP_HOST']
to get the address you were. This error usually happens with servers that are behind a badly configured proxy or firewall. To resolve you can:
Reconfigure the server
Fix for wp-config.php
Since we do not always have control over the (bad) configuration of the server, we will put a patch on wp-config.php
, before the line require_once(ABSPATH . 'wp-settings.php');
if ( ! empty( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
This should solve the problem. If you find any more bugs, you can try a more complete solution, such as this link