Title: Error when search
Last modified: August 22, 2016

---

# Error when search

 *  Resolved [axeman41](https://wordpress.org/support/users/axeman41/)
 * (@axeman41)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-when-search/)
 * I am getting this error when I search:
 * Warning: in_array() expects parameter 2 to be array, null given in […] /wp-content/
   plugins/jonradio-multiple-themes/includes/select-theme.php on line 322
 * Thanks for your help!
 * [https://wordpress.org/plugins/jonradio-multiple-themes/](https://wordpress.org/plugins/jonradio-multiple-themes/)

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

 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-when-search/#post-5580016)
 * I’ll look into this right away and get back to you here, with either an answer
   or a request for specific information.
 * Thank you for reporting this!
 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-when-search/#post-5580028)
 * I can’t re-create this error on my test systems, but I can see the problem by
   looking at the code: one of the plugins or themes you are using is asking WordPress
   for the Theme name before WordPress is fully initialized. Which I’ve been able
   to handle since Version 5, but I missed this one when I added some necessary 
   checking for the presence of Queries on the Home Page, which had been missing
   in Version 5.
 * It will require a significant amount of change to store the required values in
   the plugin’s internal settings, rather than asking WordPress for them. But I’ll
   do it ASAP and it will be Version 6.0.1 of the plugin.
 * Yes, I remember you from your previous support post. Appreciate the continuing
   interest in the plugin.
 *  Thread Starter [axeman41](https://wordpress.org/support/users/axeman41/)
 * (@axeman41)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-when-search/#post-5580029)
 * Thank _you_ very much!
 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/error-when-search/#post-5580115)
 * Version 6.0.1 is now available as an automatic update to resolve this problem,
   and an issue when $_SERVER[‘QUERY_STRING’] was missing rather than just blank.
 * Please let me know if you run into any other issues.

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

The topic ‘Error when search’ is closed to new replies.

 * ![](https://ps.w.org/jonradio-multiple-themes/assets/icon-256x256.png?rev=1134086)
 * [Multiple Themes](https://wordpress.org/plugins/jonradio-multiple-themes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jonradio-multiple-themes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jonradio-multiple-themes/)
 * [Active Topics](https://wordpress.org/support/plugin/jonradio-multiple-themes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jonradio-multiple-themes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jonradio-multiple-themes/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [jon](https://wordpress.org/support/users/adiant/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/error-when-search/#post-5580115)
 * Status: resolved