HP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must

#415210
  • Resolved SFERO ONLUS
    Rank Math free

    Hello everyone,
    after the domain change of the site I have this error when saving articles. How can I solve it?

    [04-Jul-2022 09:55:30 UTC] PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, bool given in /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:365
    Stack trace:
    #0 /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(365): array_reverse()
    #1 /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(280): RankMathInstant_IndexingInstant_Indexing->api_submit()
    #2 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp-hook.php(307): RankMathInstant_IndexingInstant_Indexing->save_post()
    #3 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #4 /web/htdocs/www.sferoets.it/home/wp-includes/plugin.php(476): WP_Hook->do_action()
    #5 /web/htdocs/www.sferoets.it/home/wp-includes/post.php(4662): do_action()
    #6 /web/htdocs/www.sferoets.it/home/wp-includes/post.php(4775): wp_insert_post()
    #7 /web/htdocs/www.sferoets.it/home/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(831): wp_update_post()
    #8 /web/htdocs/www.sferoets.it/home/wp-includes/rest-api/class-wp-rest-server.php(1143): WP_REST_Posts_Controller->update_item()
    #9 /web/htdocs/www.sferoets.it/home/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request()
    #10 /web/htdocs/www.sferoets.it/home/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch()
    #11 /web/htdocs/www.sferoets.it/home/wp-includes/rest-api.php(394): WP_REST_Server->serve_request()
    #12 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp-hook.php(307): rest_api_loaded()
    #13 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #14 /web/htdocs/www.sferoets.it/home/wp-includes/plugin.php(524): WP_Hook->do_action()
    #15 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp.php(398): do_action_ref_array()
    #16 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp.php(770): WP->parse_request()
    #17 /web/htdocs/www.sferoets.it/home/wp-includes/functions.php(1330): WP->main()
    #18 /web/htdocs/www.sferoets.it/home/wp-blog-header.php(16): wp()
    #19 /web/htdocs/www.sferoets.it/home/index.php(17): require(‘…’)
    #20 {main}
    thrown in /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php on line 365
    [04-Jul-2022 09:55:31 UTC] PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, bool given in /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:365
    Stack trace:
    #0 /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(365): array_reverse()
    #1 /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(280): RankMathInstant_IndexingInstant_Indexing->api_submit()
    #2 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp-hook.php(307): RankMathInstant_IndexingInstant_Indexing->save_post()
    #3 /web/htdocs/www.sferoets.it/home/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #4 /web/htdocs/www.sferoets.it/home/wp-includes/plugin.php(476): WP_Hook->do_action()
    #5 /web/htdocs/www.sferoets.it/home/wp-includes/post.php(4662): do_action()
    #6 /web/htdocs/www.sferoets.it/home/wp-includes/post.php(4775): wp_insert_post()
    #7 /web/htdocs/www.sferoets.it/home/wp-admin/includes/post.php(426): wp_update_post()
    #8 /web/htdocs/www.sferoets.it/home/wp-admin/post.php(227): edit_post()
    #9 {main}
    thrown in /web/htdocs/www.sferoets.it/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php on line 365

Viewing 9 replies - 1 through 9 (of 9 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 logins in the designated Sensitive Data section.

    <span style=”text-decoration: underline;”>Please do take a complete backup of your website before sharing the information with us.</span>
    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/

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

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi Sharmin,
    i don’t solve the problem, so i attached support login user.

    g.

    Hello,

    I’ve checked your site, and the Rank Math plugin is currently deactivated. Could you please also share the FTP logins in the sensitive data section so we can revert back any changes and unexpected errors?

    Meanwhile, please increase the Max input time PHP value on your site to 150 and let us know if the issue still persists.

    Looking forward to helping you.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I increased to max-input-time and the error persist.

    g.

    Hello,

    We updated the API key for the Instant Indexing feature and tried submitting one URL manually and one automatically and it submitted successfully.

    Could you please check the same from your end and see if the URLs are submitted after saving an article?

    Looking forward to hearing back from you.

    It works, thanks guys

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘HP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must’ is closed to new replies.