Fatal error restore_current_blog does not exists
-
We use wordpress automatic plugin for posting to our wordpress. Your social poster throws a fatal error (when posting) because of using this function restore_current_blog without checking if exists. this function lays in this file ms-blogs.php and it is not always loaded
social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.php on line 248
here is the fix
//SNAP fix
`if(! function_exists(‘restore_current_blog’)){
require_once ABSPATH.’/’. WPINC .’/ms-blogs.php’;
}
`https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/
The topic ‘Fatal error restore_current_blog does not exists’ is closed to new replies.