mine was caused by jobs manager. https://pento.net/projects/wordpress-job-manager-plugin/ deactivating it, the warning is gone. activating it again its back. might be an issue in the restoration of import. as on my case its not an upgrade but an import from a livesite to my local site.