update failed message when I save a page

#516659
  • Resolved Fred B
    Rank Math free

    Hello,
    In settings, advanced mode, if I activate instant indexing I get an update failed message when I save a page in the back office.

    #20 {main}
    thrown in /PPPRRRIIVVAATTEE/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php on line 365
    [23-Jan-2023 09:52:54 UTC] PHP Fatal error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, bool given in /PPPRRRIIVVAATTEE/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:365
    Stack trace:
    #0 /PPPRRRIIVVAATTEE/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(365): array_reverse()
    #1 /PPPRRRIIVVAATTEE/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(280): RankMath\Instant_Indexing\Instant_Indexing->api_submit()
    #2 /PPPRRRIIVVAATTEE/wp-includes/class-wp-hook.php(308): RankMath\Instant_Indexing\Instant_Indexing->save_post()
    #3 /PPPRRRIIVVAATTEE/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 /PPPRRRIIVVAATTEE/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /PPPRRRIIVVAATTEE/wp-includes/post.php(4706): do_action()
    #6 /PPPRRRIIVVAATTEE/wp-includes/post.php(4819): wp_insert_post()
    #7 /PPPRRRIIVVAATTEE/wp-admin/includes/post.php(426): wp_update_post()
    #8 /PPPRRRIIVVAATTEE/wp-admin/post.php(227): edit_post()
    #9 {main}
    thrown in /PPPRRRIIVVAATTEE/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php on line 365

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Fred B
    Rank Math free

    dump $api :
    object(RankMath\Instant_Indexing\Api)#36113 (9) {
    [“api_url”:”RankMath\Instant_Indexing\Api”:private]=>
    string(34) “https://api.indexnow.org/indexnow/”
    [“api_key”:protected]=>
    string(32) “dd9a674e5ef64a6ba1349d620946d3ea”
    [“is_success”:protected]=>
    bool(false)
    [“last_error”:protected]=>
    string(0) “”
    [“last_response”:protected]=>
    string(0) “”
    [“last_code”:protected]=>
    int(0)
    [“is_manual”]=>
    bool(true)
    [“user_agent”:protected]=>
    string(41) “RankMath/9789ff18509dc77af9bcfefe955e22d2”
    [“version”:protected]=>
    string(7) “1.0.106”
    }

    dump $api->get_log() :
    bool(false)

    Hello,

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

    In order to fix this issue, can you please try to submit just a single URL manually under WordPress Dashboard > Rank Math > Instant Indexing? It will trigger the history log to appear in the Instant Indexing feature.

    ​​​​​​​After that, the automatic submission will work correctly for all the post types that you have enabled in the settings.

    Let us know how it goes.

    Thank you.

    ​​​​​​​

    Fred B
    Rank Math free

    Indeed it worked and fixed the bug! thank you so much !

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

The ticket ‘update failed message when I save a page’ is closed to new replies.