I am trying to: access all wp-admin sections on the back-end of my staging server, when logged in as admin
I expected to see: the WordPress dashboard ( ..../wp-admin/index.php )
Instead, I got a white screen with this message: "Sorry, you are not allowed to access this page"
Debug displays the following notice, repeated many times:
Notice: map_meta_cap was called incorrectly. The post type scheduled-action is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.) in /home/mysite/public_html/mydirectory/wp-includes/functions.php on line 4773
I think this notice is related to WooCommerce. I don't think it is a fatal error.
I lost dashboard access shortly after updating WordPress translations and Toolset Types, so am wondering if it is related?
So far, I have tried everything listed on this page:
hidden link
All plugins and custom themes are deactivated.
I've tried testing in the standard WordPress Twenty Seventeen and Twenty Nineteen themes.
I am running the latest version of WordPress and PHP 7.2
Your help would be appreciated.
I removed the types plugin via FTP, but it has not made any difference.
Do I also have to remove it using PHPmyAdmin?
If the issue still persists, after removing the Types plugin, the issue doesn't seem related to Types 3.3.5.
Do you have the Toolset Access plugin enabled on the website?
It would be best to disable all plugins and then see if the WP Admin access is restored.
( you can rename the "plugins" folder to something else temporarily through FTP )
Additionally, you can also consult your web host, to see if they can help you restore the website to an earlier backup from the time when it was working.
As a precaution, it would be a good idea to request the host to scan the server for any malicious attempts to make changes to the website's files or database.
I hope this helps and please let me know how it goes.
OK, I think I solved it. I now realise that some SQL rows are missing for Admin user 1. I think I accidentally tested the WooCommerce checkout process using Admin User 1 and it removed the administrator capabilities.
My issue is resolved now. Thank you!