Skip to content
Christopher W. asked 6 years ago

Hi, after installation I get following message in admin.

Warning: array_values() expects parameter 1 to be array, string given in ...blog/wp-content/plugins/wpi-performance-plugin/wpi-performance-plugin.php on line 2208

What does it mean and how can I solve that?

Chris

1 Answers
Dave H. answered 6 years ago

Hi – it’s just a warning, no harm done. I’ll modify this code in the next version to check if the existing metadata is an array or a string (can be either and PHP behaves nicely regardless)

If you need this warning removed from your page, you should edit your wp-config.php file and use the following debug values:

define(‘WP_DEBUG’, true);

define(‘WP_DEBUG_LOG’, true);

define(‘WP_DEBUG_DISPLAY’, false);

That way, you still get error messages if you need them but they’re saved to wp-content/debug.log instead of displaying on screen.

Your Answer


Click to join our Discord community and read the rules for a 20% discount coupon. Coupon usable once per customer only.