Title: PHP 8+ error
Last modified: January 8, 2024

---

# PHP 8+ error

 *  Resolved [plaidpowered](https://wordpress.org/support/users/plaidpowered/)
 * (@plaidpowered)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-8-error-36/)
 * Hi, I ran into a few issues generating meta data that appear to be exclusive 
   to PHP 8 and above. The issue is that in some places `call_user_func_array` is
   called, the array passed as parameters have non-numeric keys. But since PHP 8,
   [those keys are passed as named parameters](https://www.php.net/manual/en/function.call-user-func-array.php),
   throwing a fatal error when passed to the numberBetween function.
 * I was able to solve this in a pinch on my local install by wrapping the arguments
   parameter with “array_values”, I modified the following locations:
   FakerPress\
   Provider\WP_Meta.php:26FakerPress\Provider\WP_Meta.php:56I saw in other spots
   in the plugin using `call_user_func_array` that you’ve already made this change,
   so I’m guessing just those two spots got missed. Thanks very much for your hard
   work building and supporting this very valuable plugin.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gustavo Bordoni](https://wordpress.org/support/users/bordoni/)
 * (@bordoni)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-error-36/#post-17701956)
 * I’ve released version `0.6.2`, it should have resolved this issue.
 * If not please let me know and I will take a closer look.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8+ error’ is closed to new replies.

 * ![](https://ps.w.org/fakerpress/assets/icon.svg?rev=1846090)
 * [FakerPress](https://wordpress.org/plugins/fakerpress/)
 * [Support Threads](https://wordpress.org/support/plugin/fakerpress/)
 * [Active Topics](https://wordpress.org/support/plugin/fakerpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fakerpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fakerpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gustavo Bordoni](https://wordpress.org/support/users/bordoni/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/php-8-error-36/#post-17701956)
 * Status: resolved