Rank math and Kadence gallery and Kadence shopkit conflict

#275718
  • Resolved Inga
    Rank Math free

    Hello,
    I’ve encountered fatal error when trying to save schema settings. I’ve enabled troubleshooting mode and unfortunately I’ve found out that the problem only exists when 3 plugins are enabled:Rank math, KAdence gallery and Kadence Shopkit. What should I do to be able to use rankmath with kadence plugins?
    Has anyone reported this problem before?

    When Kadence gallery plugin is enabled:

    [15-Oct-2021 08:36:21 UTC] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /home/bath/domains/xxx/public_html/wp-content/plugins/kadence-galleries/admin/cmb2-conditionals/cmb2-conditionals.php:130
    Stack trace:
    #0 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(303): KT_CMB2_Conditionals->filter_data_to_save(Object(CMB2), ‘rank-math-optio…’)
    #1 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #2 /home/bath/domains/xxx/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #3 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(850): do_action(‘cmb2_options-pa…’, Object(CMB2), ‘rank-math-optio…’)
    #4 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(776): CMB2->pre_process()
    #5 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(757): CMB2->process_fields()
    #6 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php(306): CMB2->save_fields(‘rank-math-optio…’, ‘options-page’, Array)
    #7 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(303): CMB2_Options_Hookup->save_options(”)
    #8 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #9 /home/bath/domains/xxx/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #10 /home/bath/domains/xxx/public_html/wp-admin/admin-post.php(70): do_action(‘admin_post_rank…’)
    #11 {main}
    thrown in /home/bath/domains/xxx/public_html/wp-content/plugins/kadence-galleries/admin/cmb2-conditionals/cmb2-conditionals.php on line 130

    When Kadence gallery disabled and Kadence Shopkit enabled:

    [15-Oct-2021 08:39:46 UTC] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /home/bath/domains/xxx/public_html/wp-content/plugins/kadence-woo-extras/classes/cmb2-conditionals/cmb2-conditionals.php:130
    Stack trace:
    #0 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(303): KT_CMB2_Conditionals->filter_data_to_save(Object(CMB2), ‘rank-math-optio…’)
    #1 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #2 /home/bath/domains/xxx/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #3 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(850): do_action(‘cmb2_options-pa…’, Object(CMB2), ‘rank-math-optio…’)
    #4 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(776): CMB2->pre_process()
    #5 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(757): CMB2->process_fields()
    #6 /home/bath/domains/xxx/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php(306): CMB2->save_fields(‘rank-math-optio…’, ‘options-page’, Array)
    #7 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(303): CMB2_Options_Hookup->save_options(”)
    #8 /home/bath/domains/xxx/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #9 /home/bath/domains/xxx/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #10 /home/bath/domains/xxx/public_html/wp-admin/admin-post.php(70): do_action(‘admin_post_rank…’)
    #11 {main}
    thrown in /home/bath/domains/xxx/public_html/wp-content/plugins/kadence-woo-extras/classes/cmb2-conditionals/cmb2-conditionals.php on line 130

    Kind Regards,
    Inga

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    It seems that those plugins are using a very old version of the CMB2 library that is conflicting with our plugin.

    The plugins use version 2.6.0 which was released more than 2 years ago.

    ​​​​​​​We recommend getting in touch with the developers and ask about the possibility of bumping the CMB2 library to a more recent release to see if that helps mitigate the issue.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Rank math and Kadence gallery and Kadence shopkit conflict’ is closed to new replies.