Error when network deactivating
-
WordPress version: 6.4.3
Plugin version: 2.59I had activated the plugin network wide and was about to deactivate it again when I received the following error:
PHP Fatal error: Uncaught Error: Cannot use object of type WP_Site as array in [...]/wp-content/plugins/wp-external-links/libs/fwp/component-bases/class-fwp-register-hook-base.php:55
I was able to fix the problem by change the line
switch_to_blog( $site[ 'blog_id' ] );
to
switch_to_blog( $site->__get( 'blog_id' ) );
Cheers
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error when network deactivating’ is closed to new replies.