• Resolved misterfu

    (@misterfu)


    I was experiencing the following issue:

    PHP message: PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /(…)/wp-content/plugins/twentig/inc/theme-tools/customizer-functions.php:38

    This fixed it:

    
    - $choices = call_user_func_array( 'array_merge', $choices );
    + $choices = call_user_func_array( 'array_merge', array_values($choices) );

    Maybe it could be considered in the next update? 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Twentig

    (@twentig)

    Hi @misterfu,

    Thanks for your feedback and solution. We’re working to ensure that our plugin is compatible with PHP 8 and will release a fix in the next release.

    Please note that according to WordPress, WordPress 5.6 should be considered “beta compatible” with PHP 8. This means that most core WordPress functionality will work, but unexpected bugs may still occur for some time, even without the presence of additional plugins or themes.

    Best wishes 🙂

    Thread Starter misterfu

    (@misterfu)

    Thank you for the fast feedback, @twentig!

    Even if WordPress is still only ‘beta compatible’ to PHP8, it’s already running really smooth. Thanks for considering the fix in the next version of the plugin, as well!

    Plugin Author Twentig

    (@twentig)

    Hi @misterfu,

    We’ve released Twentig 1.2.2, which includes your fix. Thanks again.

    If you enjoy Twentig, please leave us a review 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP8 compatibility: PHP Fatal error: Uncaught ArgumentCountError: array_merge()’ is closed to new replies.