Fatal error on CMB2_Base.php

#743427
  • Resolved Anonymous
    Rank Math free

    Hi,

    I hope you can help me with a fatal error on Rank Math settings that causes some warnings while sharing page links. It also breaks the settings page, Titles and meta section: https://imgur.com/a/3j48K3r

    I already tried to deactivate every plugin except Rank Math and activate the default WP theme, but nothing changes.

    This is my error log and you can find the WP status in the sensitive data section.
    Can you help me? I’m sorry but I don’t know since when this happens, I guess it’s quite recent.

    Thanks for your help.

    [12-Feb-2024 08:32:36 UTC] PHP Warning: next(): Argument #1 ($array) must be passed by reference, value given in /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php on line 315
    [12-Feb-2024 08:32:36 UTC] PHP Fatal error: Uncaught ArgumentCountError: next() expects exactly 1 argument, 3 given in /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php:315
    Stack trace:
    #0 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php(315): next(Array, Object(CMB2_Field), NULL)
    #1 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php(273): CMB2_Base->do_callback(‘Next’)
    #2 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php(1345): CMB2_Base->get_param_callback_result(‘default_cb’)
    #3 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php(1298): CMB2_Field->get_default()
    #4 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_JS.php(69): CMB2_Field->js_data()
    #5 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php(1279): CMB2_JS::add_field_data(Object(CMB2_Field))
    #6 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Base.php(65): CMB2_Field->register_js_data()
    #7 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php(58): CMB2_Type_Base->rendered(‘<input type=”te…’)
    #8 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Types.php(484): CMB2_Type_Text->render()
    #9 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Types.php(503): CMB2_Types->input()
    #10 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Types.php(101): CMB2_Types->text()
    #11 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Types.php(90): CMB2_Types->_render()
    #12 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php(934): CMB2_Types->render()
    #13 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php(315): CMB2_Field->render_field_callback(Array, Object(CMB2_Field), NULL)
    #14 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php(273): CMB2_Base->do_callback(Array)
    #15 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php(249): CMB2_Base->get_param_callback_result(‘render_row_cb’)
    #16 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php(872): CMB2_Base->peform_param_callback(‘render_row_cb’)
    #17 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(464): CMB2_Field->render_field()
    #18 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2.php(260): CMB2->render_field(Array)
    #19 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Hookup.php(775): CMB2->show_form(0, ‘options-page’)
    #20 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php(283): CMB2_Hookup->show_form_for_type(‘options-page’)
    #21 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-options.php(303): CMB2_Options_Hookup->options_page_metabox()
    #22 /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php(194): RankMath\Admin\Options->display(Object(CMB2_Options_Hookup))
    #23 /home/nextformazione/public_html/wp-includes/class-wp-hook.php(324): CMB2_Options_Hookup->options_page_output(”)
    #24 /home/nextformazione/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #25 /home/nextformazione/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #26 /home/nextformazione/public_html/wp-admin/admin.php(259): do_action(‘rank-math_page_…’)
    #27 {main}
    thrown in /home/nextformazione/public_html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Base.php on line 315

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Here is a video you can follow as well:
    https://www.youtube.com/watch?v=FcIWRhcUP2c

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Anonymous
    Rank Math free

    Thanks for the guide. After installing the Health Check plugin I activated Rank Math in maintenance mode and I found the php error as a value in the site “Name” field, on Titles and meta > local SEO settings page.
    There were no plugin or theme conflicts.
    I fixed the site name and saved.

    Then I deactivated the debug mode and it all worked without errors, so I really don’t know what happened, but it’s ok now.

    Hello,

    Thank you for the update.

    We’re glad that you have already managed to resolve this issue.

    If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.

    Looking forward to helping you.

    Thank you.

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

The ticket ‘Fatal error on CMB2_Base.php’ is closed to new replies.