Title: Robots module throws error array_key_exists() in multisite
Last modified: March 27, 2019

---

# Robots module throws error array_key_exists() in multisite

 *  Resolved [mkwprel](https://wordpress.org/support/users/mkwprel/)
 * (@mkwprel)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/robots-module-throws-error-array_key_exists-in-multisite/)
 * In multisite configuration I got error “array_key_exists() expects parameter 
   2 to be array… in modules/aioseop_robots.php on line 315”, when calling http…/
   robots.txt
    Apparently “$options = get_option(‘aioseop_options’)” in line 311
   is not handled for “false” values coming from other blogs. This snippet above
   line 315 resolved the issue: `if ( $options === false ) { return( array() ); }`
    -  This topic was modified 7 years, 2 months ago by [mkwprel](https://wordpress.org/support/users/mkwprel/).

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

 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [7 years, 1 month ago](https://wordpress.org/support/topic/robots-module-throws-error-array_key_exists-in-multisite/#post-11380948)
 * What version are you using?
    Those line numbers don’t match up with the latest.
 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [6 years, 11 months ago](https://wordpress.org/support/topic/robots-module-throws-error-array_key_exists-in-multisite/#post-11686329)
 * Marking this as resolved as there’s been no reply.

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

The topic ‘Robots module throws error array_key_exists() in multisite’ is closed
to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/robots-module-throws-error-array_key_exists-in-multisite/#post-11686329)
 * Status: resolved