Error when update post/pages

#595589
  • Resolved Anonymous
    Rank Math free

    I’m experiencing the following fatal error:
    PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, bool given in /var/www/vhosts/centromarcheacque.it/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:410
    Stack trace:
    #0 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(410): array_reverse()
    #1 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(325): RankMath\Instant_Indexing\Instant_Indexing->api_submit()
    #2 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/class-wp-hook.php(308): RankMath\Instant_Indexing\Instant_Indexing->save_post()
    #3 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/post.php(4704): do_action()
    #6 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/post.php(4817): wp_insert_post()
    #7 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(880): wp_update_post()
    #8 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Posts_Controller->update_item()
    #9 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()
    #10 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()
    #11 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()
    #12 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/class-wp-hook.php(308): rest_api_loaded()
    #13 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #14 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
    #15 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/class-wp.php(399): do_action_ref_array()
    #16 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/class-wp.php(780): WP->parse_request()
    #17 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-includes/functions.php(1334): WP->main()
    #18 /var/www/vhosts/centromarcheacque.it/httpdocs/wp-blog-header.php(16): wp()
    #19 /var/www/vhosts/centromarcheacque.it/httpdocs/index.php(17): require(‘…’)
    #20 {main}
    thrown in /var/www/vhosts/centromarcheacque.it/httpdocs/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php on line 410

    I have installed Inspiro free theme. When i deactivate the plugin everything is OK, when i activate RankMath i can’t publish/update post/pages modified. Can you help me?
    Thank’s

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

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    The error comes from the fact that the history table for the IndexNow API is currently empty.

    To get around the issue, please submit one URL of your website manually to the IndexNow API by going to WordPress Dashboard > Rank Math > Instant Indexing and making sure you are submitting to the IndexNow API.

    After that, you should be able to run the plugin without any issues.

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

    Anonymous
    Rank Math free

    Perfect! Thanks

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Error when update post/pages’ is closed to new replies.