Title: Warning: Undefined array key 0
Last modified: January 16, 2024

---

# Warning: Undefined array key 0

 *  Resolved [pb7555](https://wordpress.org/support/users/pb7555/)
 * (@pb7555)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/)
 * Plugin is giving this error message on category pages only; all other pages are
   okay. thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-undefined-array-key-0%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [pb7555](https://wordpress.org/support/users/pb7555/)
 * (@pb7555)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17348209)
 * Warning: Undefined array key 0 in /home/readingr/public_html/wp-content/plugins/
   responsive-menu/v4.0.0/inc/classes/class-option-manager.php on line 60
 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17350541)
 * Dear [@pb7555](https://wordpress.org/support/users/pb7555/),
 * I hope this message finds you well.
 * Thank you for reaching out to us. I appreciate your inquiry and will promptly
   discuss the matter with our technical team. Rest assured, I will keep you informed
   of any further updates.
 * If you have any additional questions or concerns in the meantime, please feel
   free to let me know.
 * Best regards,
   Sumit
 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17379723)
 * Dear [@pb7555](https://wordpress.org/support/users/pb7555/),
 * I trust this message finds you well.
 * We have implemented a small code change in our file v4.0.0/inc/classes/class-
   option-manager.php at lines 59 and 60. For your reference, you can view the code
   changes [https://github.com/ResponsiveMenu/Responsive-Menu/pull/253/files](https://github.com/ResponsiveMenu/Responsive-Menu/pull/253/files)
 * Kindly apply the same changes and let us know if the issue has been resolved 
   on your end.
 * Looking forward to your reply.
 * Regards,
   Sumit
 *  Thread Starter [pb7555](https://wordpress.org/support/users/pb7555/)
 * (@pb7555)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17403385)
 * Hi, thanks for your reply. Implementing the code change in v4.0.0/inc/classes/
   class-option-manager.php at lines 59 and 60 resulted in another error so I reverted
   back.
 * Fatal error: Uncaught TypeError: Cannot access offset of type string on string
   in /home/readingr/public_html/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/
   class-option-manager.php:60 Stack trace: #0 /home/readingr/public_html/wp-content/
   plugins/responsive-menu/v4.0.0/inc/classes/class-style-manager.php(195): RMP\
   Features\Inc\Option_Manager->get_options(2392) #1 /home/readingr/public_html/
   wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-style-manager.php(
   274): RMP\Features\Inc\Style_Manager->get_all_menu_options() #2 /home/readingr/
   public_html/wp-includes/class-wp-hook.php(324): RMP\Features\Inc\Style_Manager-
   >add_rmp_menu_frontend_scripts(”) #3 /home/readingr/public_html/wp-includes/class-
   wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /home/readingr/public_html/
   wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/readingr/public_html/
   wp-includes/script-loader.php(2262): do_action(‘wp_enqueue_scri…’) #6 /home/readingr/
   public_html/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts(”) #7 /home/
   readingr/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”,
   Array) #8 /home/readingr/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(
   Array) #9 /home/readingr/public_html/wp-includes/general-template.php(3052): 
   do_action(‘wp_head’) #10 /home/readingr/public_html/wp-content/themes/rebus/header.
   php(31): wp_head() #11 /home/readingr/public_html/wp-includes/template.php(790):
   require_once(‘/home/readingr/…’) #12 /home/readingr/public_html/wp-includes/template.
   php(725): load_template(‘/home/readingr/…’, true, Array) #13 /home/readingr/public_html/
   wp-includes/general-template.php(48): locate_template(Array, true, true, Array)#
   14 /home/readingr/public_html/wp-content/themes/rebus/category.php(10): get_header()#
   15 /home/readingr/public_html/wp-includes/template-loader.php(106): include(‘/
   home/readingr/…’) #16 /home/readingr/public_html/wp-blog-header.php(19): require_once(‘/
   home/readingr/…’) #17 /home/readingr/public_html/index.php(17): require(‘/home/
   readingr/…’) #18 {main} thrown in /home/readingr/public_html/wp-content/plugins/
   responsive-menu/v4.0.0/inc/classes/class-option-manager.php on line 60
 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17404901)
 * Hello [@pb7555](https://wordpress.org/support/users/pb7555/),
 * Thank you for your input.
 * I will discuss this matter with our technical team and provide you with further
   updates shortly.
 * If you have any additional questions or concerns, please feel free to let me 
   know.
 * Regards,
   Sumit
 *  [sumitsanadhya](https://wordpress.org/support/users/sumitsanadhya/)
 * (@sumitsanadhya)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17409216)
 * Hello [@pb7555](https://wordpress.org/support/users/pb7555/),
 * Can you please add this code at line 60
 * $options = is_array( $options ) ? $options : array();
 * PR URL: [https://github.com/ResponsiveMenu/Responsive-Menu/pull/254](https://github.com/ResponsiveMenu/Responsive-Menu/pull/254)
 * Let me know if you need more help.
 * Regards,
   Sumit
 *  Thread Starter [pb7555](https://wordpress.org/support/users/pb7555/)
 * (@pb7555)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17409632)
 * Thank you, that worked. Except now the responsive menu does not appear on category
   pages: [https://readingrebus.com/category/advertisements/](https://readingrebus.com/category/advertisements/)
 *  [Prakash](https://wordpress.org/support/users/prakashnfrn/)
 * (@prakashnfrn)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17713067)
 * Hi,
 * As per your coding update on the class-option-manager.php, I have updated but
   still the category page not working, I am getting 500 internal server error. 
   If I deactivate the responsive menu pro plugin, the category page working fine.
 * Error log: **Notice**: Uninitialized string offset: 0 in **/home/customer/www/
   ourdomain.com/public_html/wp-content/plugins/responsive-menu-pro/v4.0.0/inc/classes/
   class-option-manager.php** on line **60**
 * Thanks
    -  This reply was modified 2 years, 1 month ago by [Prakash](https://wordpress.org/support/users/prakashnfrn/).

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

The topic ‘Warning: Undefined array key 0’ is closed to new replies.

 * ![](https://ps.w.org/responsive-menu/assets/icon-256x256.png?rev=1782326)
 * [Responsive Menu - Create Mobile-Friendly Menu](https://wordpress.org/plugins/responsive-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-menu/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Prakash](https://wordpress.org/support/users/prakashnfrn/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/warning-undefined-array-key-0/#post-17713067)
 * Status: resolved