• Resolved pb7555

    (@pb7555)


    Plugin is giving this error message on category pages only; all other pages are okay. thanks.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter pb7555

    (@pb7555)

    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

    Dear @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

    Dear @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

    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

    (@pb7555)

    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

    Hello @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

    Hello @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

    Let me know if you need more help.

    Regards,
    Sumit

    Thread Starter pb7555

    (@pb7555)

    Thank you, that worked. Except now the responsive menu does not appear on category pages: https://readingrebus.com/category/advertisements/

    Prakash

    (@prakashnfrn)

    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 7 months ago by Prakash.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning: Undefined array key 0’ is closed to new replies.