Title: [Plugin: Class Blogs] ClassBlogs error:   Warning: array_key_exists()
Last modified: August 20, 2016

---

# [Plugin: Class Blogs] ClassBlogs error: Warning: array_key_exists()

 *  [AardvarkGirl](https://wordpress.org/support/users/aardvarkgirl/)
 * (@aardvarkgirl)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-class-blogs-classblogs-error-warning-array_key_exists/)
 * Warning: array_key_exists() [function.array-key-exists]: The second argument 
   should be either an array or an object (website path here)/wp-content/plugins/
   class-blogs/ClassBlogs/Utils.php on line 113
 * [http://wordpress.org/extend/plugins/class-blogs/](http://wordpress.org/extend/plugins/class-blogs/)

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

 *  [rCampbell](https://wordpress.org/support/users/rcampbell/)
 * (@rcampbell)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-class-blogs-classblogs-error-warning-array_key_exists/#post-3036692)
 * Not sure if you figured this out. I’ve been trying to figure this out for a bit
   as it has forced my students to use QuickPost in the Dashboard of their sites.
 * I changed
    `if ( property_exists( $wp_query, 'query' ) && array_key_exists( '
   page_id', $wp_query->query ) ) {`
 * to
    `if ( property_exists( $wp_query, 'query' ) && array_key_exists( 'page_id',
   $wp_query ) ) {`
 * I think it works now as the error is no longer showing up. I also noted that 
   this only happens in IE, not in Chrome.
 *  Plugin Author [oberlincilc](https://wordpress.org/support/users/oberlincilc/)
 * (@oberlincilc)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-class-blogs-classblogs-error-warning-array_key_exists/#post-3036696)
 * The code that rCampbell is posted is not too far off, as it no longer gives the
   plugin the chance to look for an array key in something that’s not an array. 
   However, it also bypasses the check for the `page_id` variable entirely, which
   will make the plugin perform in unexpected ways.
 * I just posted version 0.5.1 of the plugin, though, and that contains modified
   code that should prevent this error message from coming up again. If you have
   a chance, try out the new version and let me know if that solves the problem.
   If not, I’ll have another go at fixing this.

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

The topic ‘[Plugin: Class Blogs] ClassBlogs error: Warning: array_key_exists()’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/class-blogs.svg)
 * [Class Blogs](https://wordpress.org/plugins/class-blogs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/class-blogs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/class-blogs/)
 * [Active Topics](https://wordpress.org/support/plugin/class-blogs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/class-blogs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/class-blogs/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [oberlincilc](https://wordpress.org/support/users/oberlincilc/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-class-blogs-classblogs-error-warning-array_key_exists/#post-3036696)
 * Status: not resolved