Support

Home Forums Event Espresso Premium Warning: array_slice() expects parameter 1 to be array, string given

Warning: array_slice() expects parameter 1 to be array, string given

Posted: December 11, 2014 at 9:52 am

Viewing 1 reply thread


Victoria Lioznyansky

December 11, 2014 at 9:52 am

I’ve started getting the following message across in the site and in the admin panel yesterday. I’ve got it while working with EventEspresso, though I don’t think it’s something wrong with the plugin. Anybody knows how to make it go away?

Warning: array_slice() expects parameter 1 to be array, string given in /home/content/p3pnexwpnas06_data03/20/2264320/html/wp-content/mu-plugins/gd-system-plugin/class-gd-system-plugin-hotfixes.php on line 48


Lorenzo Orlando Caum

  • Support Staff

December 11, 2014 at 11:40 am

Hi, that warning appears to be from a plugin that your host has enabled (mu-plugins means must-use plugin).

You could check with them to see if there are any issues with the plugin.

Adding this macro to your wp-config.php file should also remove the warning:

https://gist.github.com/lorenzocaum/848801a1173be464fbe7#comment-1239850

It should replace any existing debugging macros that may be in place.


Lorenzo

Viewing 1 reply thread

The support post ‘Warning: array_slice() expects parameter 1 to be array, string given’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso