• Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in wp-content/plugins/wordpress-seo/inc/class-addon-manager.php:820


    Please fix the code
    From :

    protected function map_site_information( $site_information ) {
    return (object) [
    'url' => $site_information->url,
    'subscriptions' => array_map( [ $this, 'map_subscription' ], $site_information->subscriptions ),
    ];
    }

    To:

    protected function map_site_information( $site_information ) {

    return (object) [
    'url' => $site_information->url,
    'subscriptions' => array_map([ $this, 'map_subscription' ],
    is_array( $site_information->subscriptions ) ? $site_information->subscriptions : []),];

    }


Viewing 1 replies (of 1 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi @hell0bunny!

    We’re sorry to hear that you’re experiencing this fatal error with the Yoast SEO plugin. Could you please update to the latest version of the Yoast SEO plugin 25.3.1, as well as WP 6.8.1, and see if this fatal error still occurs? We haven’t received other reports from other users reporting this, but we would appreciate if you could contribute and open a bug report so our developers will take a look at it – https://yoast.com/help/how-to-write-a-good-bug-report/

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.