• Resolved user4523

    (@user4523)


    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

    (@webfactory)

    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.