I recently migrated a WP site, and had a 500 error. I renamed a bunch of plugins, until the site worked, Yoast was the culprit. The directory was renamed wordpress-seo-XXXXXXXXXXXXX. I removed Yoast, deleted that folder, and all was well for a few days. I reinstalled Yoast today, and now have an error message on top of every page:
Warning: Attempt to read property "permalink" on bool in /home3/wponlyor/public_html/MY-DOMAIN-NAME.com/wp-content/plugins/wordpress-seo-XXXXXXXXXXXXX/src/context/meta-tags-context.php on line 308
I've deleted and reinstalled Yoast, I've renamed it to the temporary directory. Disabled it again. Nothing. I've set debug to false, so it shouldn't display any errors.
Edited the database to remove three instances of the incorrect folder name. And no change. Any ideas on how to remove the error from displaying?
TIA

https://wordpress.org/support/topic/php-warning-attempt-to-read-property-permalink-on-bool-bug/