Title: expects parameter 2 to be array
Last modified: August 22, 2016

---

# expects parameter 2 to be array

 *  Resolved [leucospis](https://wordpress.org/support/users/leucospis/)
 * (@leucospis)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/)
 * Hello,
 * Please excuse me if I am not accurate enough… I’m beginning.
    This is about my
   first steps while trying to build my first website with WordPress… (I hope I’m
   on the right forum).
 * WordPress was installed with success.
    Then, I installed a new theme, a Catch
   base one. After a few clicks and trials to discover the interface, the following
   message appeared on the top of my site page and other active windows on the dashboard:
 * ‘Warning: in_array() expects parameter 2 to be array, null given in /home/clients/…../
   web/wp-content/themes/catch-base/inc/catchbase-core.php on line 1488’
 * It is perennial and I guess it won’t disappear magically…
    I don’t know if it
   appeared because of something I did wrong.
 * Many thanks in advance for your help.
 * Cheers.
 * Matthieu

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

 *  [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/#post-5674314)
 * Hey there leucospis,
 * Hope you’re well! 🙂
 * > After a few clicks and trials to discover the interface
 * Can you tell me what are these clicks you did? Something more specific so I can
   help you better.
 * Did you hack the theme by all means?
 * Looking forward for your reply! 🙂
 * Best Regards,
    Calvin
 *  Thread Starter [leucospis](https://wordpress.org/support/users/leucospis/)
 * (@leucospis)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/#post-5674342)
 * Hi Calvin,
 * Thanks for your reply. I’m very fine. Hope you too.
 * Before it happened I went into the “appearence” menu, in “Personnalize” and “
   Menus”. I went also on the “Edit” page but didn’t change anything. I just looked
   at these pages, mainly. I guess the only things I modified were site title and
   description.
 * Here is the line 1488 (and 1489) of the catchbase-core code as it was after the
   warning message appeared (I can’t tell if something changed here… even if I delete
   the catchbase-core.php file, using Filezilla interface, and download again the
   theme, the problem persists) :
 * ‘if ( !in_array( ‘0’, $cats ) ) {
    if( $query->is_main_query() && $query->is_home()){‘
 * Best regards,
 * Matthieu
 *  [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/#post-5674426)
 * Hey there leucospis,
 * Hope you’re well today! 🙂
 * Try changing the homepage for a start and see if the error still there. Also 
   try to check “inc/catchbase-default-options.php” in line 56 if this is the code:
 *     ```
       'front_page_category'								=> array(),
       ```
   
 * Looking forward for your reply! 🙂
 * Take care,
    Calvin
 *  Theme Author [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * (@catchthemes)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/#post-5674472)
 * [@leucospis](https://wordpress.org/support/users/leucospis/): Thanks for the 
   posting the issue. We have just fixed it and uploaded the new version 1.2 for
   review. It will be live soon. If you have any further issue, then please feel
   free to post in our free support forum at [http://catchthemes.com/support-forum/](http://catchthemes.com/support-forum/)
 *  Thread Starter [leucospis](https://wordpress.org/support/users/leucospis/)
 * (@leucospis)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/#post-5674473)
 * Hi !
 * Finally, I’ve changed the theme… I choosed Catch-Flames. It’s a nice one and 
   it does its job well 🙂
 * Thanks for your help, especially Calvin.
 * Bye.
 * Matthieu
 *  Theme Author [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * (@catchthemes)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/#post-5674475)
 * [@leucospis](https://wordpress.org/support/users/leucospis/): Thanks for choosing
   Catch Flames.
    Thanks to both of you for finding out the issue.

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

The topic ‘expects parameter 2 to be array’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/catch-base/3.5.2/screenshot.png)
 * Catch Base
 * [Support Threads](https://wordpress.org/support/theme/catch-base/)
 * [Active Topics](https://wordpress.org/support/theme/catch-base/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/catch-base/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/catch-base/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 6 replies
 * 3 participants
 * Last reply from: [Catch Themes](https://wordpress.org/support/users/catchthemes/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/expects-parameter-2-to-be-array-1/#post-5674475)
 * Status: resolved