Title: Error when network deactivating
Last modified: February 16, 2024

---

# Error when network deactivating

 *  Resolved [user4523](https://wordpress.org/support/users/user4523/)
 * (@user4523)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-network-deactivating/)
 * WordPress version: 6.4.3
   Plugin version: 2.59
 * I 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)

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-network-deactivating/#post-17438565)
 * Thank you for letting us know! We’ll have it fixed in the next version.

Viewing 1 replies (of 1 total)

The topic ‘Error when network deactivating’ is closed to new replies.

 * ![](https://ps.w.org/wp-external-links/assets/icon-256x256.png?rev=2103983)
 * [External Links - nofollow, noopener & new window](https://wordpress.org/plugins/wp-external-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-external-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-external-links/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-external-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-external-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-external-links/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WebFactory](https://wordpress.org/support/users/webfactory/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/error-when-network-deactivating/#post-17438565)
 * Status: resolved