Skip to content

Fatal error on some sites #12

Description

@thatdevgirl

The following fatal error happened on mccourt.g.e when we were testing PHP 8:

Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /code/wp-content/plugins/block-controller/inc/packages.php:125 Stack trace: #0 [internal function]: array_merge(Text: Array, Media: Array, Design: Array, Widgets: Array, Embeds: Array) #1 /code/wp-content/plugins/block-controller/inc/packages.php(125): call_user_func_array('array_merge', Array) #2 /code/wp-content/plugins/block-controller/inc/settings.php(32): ThreePM\BlockController\Packages->get_all_blocks() #3 /code/wp-content/plugins/block-controller/inc/settings.php(117): ThreePM\BlockController\Settings->__construct() #4 /code/wp-content/plugins/block-controller/block-controller.php(20): require_once('/code/wp-conten...') #5 /code/wp-settings.php(428): include_once('/code/wp-conten...') #6 /code/wp-config.php(287): require_once('/code/wp-settin...') #7 /code/wp-load.php(50): require_once('/code/wp-config...') #8 /code/wp-blog-header.php(13): require_once('/code/wp-load.p...') #9 /code/index.php(17): require('/code/wp-blog-h...') #10 {main} thrown in /code/wp-content/plugins/block-controller/inc/packages.php on line 125

Let's test this on PHP 8 locally to see if I can reproduce.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions