Title: PHP Warning: in_array() expects parameter 2 to be array, boolean given in
Last modified: April 16, 2019

---

# PHP Warning: in_array() expects parameter 2 to be array, boolean given in

 *  Resolved [Ismail Siraje Ittembe](https://wordpress.org/support/users/ismailsirajeittembe/)
 * (@ismailsirajeittembe)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-boolean-given-in/)
 * [17-Jan-2019 13:47:20 UTC] PHP Warning: in_array() expects parameter 2 to be 
   array, boolean given in /home/kessgbgf/isisofttechnologies.com/wp-content/mu-
   plugins/swift-performance-loader.php on line 13
    [18-Jan-2019 15:56:25 UTC] PHP
   Warning: call_user_func_array() expects parameter 1 to be a valid callback, class‘
   N2WordpressAssetInjector’ not found in /home/kessgbgf/isisofttechnologies.com/
   wp-content/plugins/smart-slider-3/library/smartslider/plugins/item/image/image.
   php on line 112 [18-Jan-2019 15:56:25 UTC] PHP Fatal error: Class ‘Swift_Performance_Lite’
   not found in /home/kessgbgf/isisofttechnologies.com/wp-content/plugins/smart-
   slider-3/library/smartslider/plugins/item/image/image.php on line 112 [18-Jan-
   2019 15:56:25 UTC] PHP Fatal error: Unknown: Cannot use output buffering in output
   buffering display handlers in Unknown on line 0 [14-Feb-2019 17:10:07 UTC] PHP
   Warning: count(): Parameter must be an array or an object that implements Countable
   in /home/kessgbgf/isisofttechnologies.com/wp-includes/post-template.php on line
   284 [14-Feb-2019 17:10:07 UTC] PHP Warning: count(): Parameter must be an array
   or an object that implements Countable in /home/kessgbgf/isisofttechnologies.
   com/wp-includes/post-template.php on line 284 [14-Mar-2019 09:18:01 UTC] PHP 
   Warning: call_user_func_array() expects parameter 1 to be a valid callback, class‘
   Swift_Performance_Cache’ does not have a method ‘clear_cache_after_post’ in /
   home/kessgbgf/isisofttechnologies.com/wp-includes/class-wp-hook.php on line 286[
   17-Mar-2019 18:58:18 UTC] PHP Warning: count(): Parameter must be an array or
   an object that implements Countable in /home/kessgbgf/isisofttechnologies.com/
   wp-includes/post-template.php on line 293 [17-Mar-2019 18:58:18 UTC] PHP Warning:
   count(): Parameter must be an array or an object that implements Countable in/
   home/kessgbgf/isisofttechnologies.com/wp-includes/post-template.php on line 293[
   17-Mar-2019 19:11:24 UTC] PHP Fatal error: Uncaught Error: Call to undefined 
   method Swift_Performance_Lite::is_developer_mode_active() in /home/kessgbgf/isisofttechnologies.
   com/wp-content/plugins/swift-performance-lite/performance.php:769 Stack trace:#
   0 /home/kessgbgf/isisofttechnologies.com/wp-content/plugins/swift-performance-
   lite/performance.php(729): Swift_Performance_Lite::prebuild_cache_hit(‘[https://isisoft…&#8217](https://isisoft…&#8217);)#
   1 /home/kessgbgf/isisofttechnologies.com/wp-includes/class-wp-hook.php(286): 
   Swift_Performance_Lite::prebuild_page_cache(Array) #2 /home/kessgbgf/isisofttechnologies.
   com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /
   home/kessgbgf/isisofttechnologies.com/wp-includes/plugin.php(531): WP_Hook->do_action(
   Array) #4 /home/kessgbgf/isisofttechnologies.com/wp-cron.php(133): do_action_ref_array(‘
   swift_performan…’, Array) #5 {main}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-in_array-expects-parameter-2-to-be-array-boolean-given-in%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Fred](https://wordpress.org/support/users/fredawd/)
 * (@fredawd)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-boolean-given-in/#post-11435375)
 * That sounds as an output buffer conflict with another plugin or with your theme,
   no easy fix except for disable/ re-enable plugins (and optionally briefly switching
   themes) one by one to see which one is causing the conflict (maybe also have 
   a look in your php errorlog, that might have relevant info).
 * Which version is installed? Lite version doesn´t have a developer mode?????
    
   Also, your site seems to be compromised and dangerous. [https://cl.ly/1468ead3b2b4](https://cl.ly/1468ead3b2b4)
 *  Thread Starter [Ismail Siraje Ittembe](https://wordpress.org/support/users/ismailsirajeittembe/)
 * (@ismailsirajeittembe)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-boolean-given-in/#post-11436866)
 * Thanks for the reply
    what i did was to disable the swift performance plugin 
   and now in my error_log file i have no issues then also i restored the old back
   up of January thanks though

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

The topic ‘PHP Warning: in_array() expects parameter 2 to be array, boolean given
in’ is closed to new replies.

 * ![](https://ps.w.org/swift-performance-lite/assets/icon-256x256.jpg?rev=2388229)
 * [Swift Performance Lite](https://wordpress.org/plugins/swift-performance-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/swift-performance-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/swift-performance-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/swift-performance-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/swift-performance-lite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ismail Siraje Ittembe](https://wordpress.org/support/users/ismailsirajeittembe/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-boolean-given-in/#post-11436866)
 * Status: resolved