You may have this kind of error with Yoast SEO :
Warning: require_once(/wp-content/plugins/wordpress-seo/wp-seo-main.php): failed to open stream: No such file or directory in /wp-content/plugins/wordpress-seo/wp-seo.php on line 48
Warning: require_once(/wp-content/plugins/wordpress-seo/wp-seo-main.php) [function.require-once]: failed to open stream: No such file or directory in /wp-content/plugins/wordpress-seo/wp-seo.php on line 47 Fatal error: require_once() [function.require]: Failed opening required ‘/wp-content/plugins/wordpress-seo/wp-seo-main.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /wp-content/plugins/wordpress-seo/wp-seo.php on line 47
Notice: Undefined index: og_frontpage_image_id in wordpress-seo/inc/options/class-wpseo-option-social.php on line 121 Notice: Undefined index: og_frontpage_image_id in wordpress-seo/inc/options/class-wpseo-option-social.php on line 123
Fatal error: Uncaught TypeError: Argument 1 passed to WPSEO_OnPage::add_weekly_schedule() must be of the type array, null given, called in /wp-includes/class-wp-hook.php on line 286 and defined in /wp-content/plugins/wordpress-seo/admin/onpage/class-onpage.php:105 Stack trace: #0 /wp-includes/class-wp-hook.php(286): WPSEO_OnPage->add_weekly_schedule(NULL) #1 /wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/cron.php(439): apply_filters(‘cron_schedules’, Array) #3 /wp-includes/cron.php(384): wp_get_schedules() #4 /wp-includes/class-wp-hook.php(286): wp_cron(”) #5 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #6 /wp-includes/plugin.php(453): WP_Hook->do_action(Arra in /wp-content/plugins/wordpress-seo/admin/onpage/class-onpage.php on line 105
There are multiple solutions to try to make it work.
The first thing to do if you are stuck with Yoast SEO is to ensure that all your WordPress is up to date. You should check your :
Once all these updates are done, check back if these errors appear.
Check Yoast SEO
Sometimes, you just need to disable the plugin, and enable it just after to make it work again.
If it doesn’t work, your Yoast SEO plugin may be corrupted. To ensure that it’s not your case, you have to re-download the plugin (or the theme delivered with the plugin) and try to install it again.
Check others plugins
Are you sure that the error is related to Yoast SEO? Maybe not.
It could be related to another plugin that is not compatible. It could happen when you use a cache plugin, a security plugin, or simply a poorly developed plugin.
Disable all plugins. Then, check for your error, if the error is still there, the problem is not related to plugins compatibility. If there are no more errors, then enable every plugin one by one and check for the error. The goal is to target the plugin involved.
Try another theme
The error can be a problem with your theme.
If it’s not already done, then you should install & activate the default WordPress theme like Twenty Twenty-Two. Check for the error, and see what is happening to be sure that your WordPress theme is not the cause.
Permalinks & htaccess
If it doesn’t work, you may have a problem with your WordPress permalinks and/or your htaccess file. You should go on your WordPress dashboard, and re-saving permalinks from the permalinks page.
Contact the developer
If all these solutions don’t work, we advise you to contact the plugin developer.
You may have found a new bug, or a specific issue. You should get in touch with the developer either on the WordPress plugin forum, either by mail, either on their specific website with their own support.
If the developer doesn’t reply, or your problem is very urgent, then you should try an alternative to the plugin.
There are thousands of plugins on the official directory, and many others outside. You should try to find and test them!
If the issue is very specific, and the plugin could not be replaced, we advise you to contact an expert.
This is the best way to ensure you're not going to break your site anymore.