Error message: Uncaught TypeError: array_reverse() updating posts and pages

#650497
  • Resolved Coachlavoro
    Rank Math free

    Hi guys,

    we have the following problem when we try to update posts and pages:

    An E_ERROR error was caused in line 410 of the file /web/htdocs/www.coachlavoro.com/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant -indexing.php. Error message: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, bool given in /web/htdocs/www.coachlavoro.com/home/wp-content/plugins/seo-by- rank-math/includes/modules/instant-indexing/class-instant-indexing.php:410
    Stack traces:
    #0 /web/htdocs/www.coachlavoro.com/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(410): array_reverse( )
    #1 /web/htdocs/www.coachlavoro.com/home/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(325): RankMath Instant_IndexingInstant_Indexing->api_submit()
    #2 /web/htdocs/www.coachlavoro.com/home/wp-includes/class-wp-hook.php(310): RankMathInstant_IndexingInstant_Indexing->save_post()
    #3 /web/htdocs/www.coachlavoro.com/home/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 /web/htdocs/www.coachlavoro.com/home/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /web/htdocs/www.coachlavoro.com/home/wp-includes/post.php(4740): do_action()
    #6 /web/htdocs/www.coachlavoro.com/home/wp-includes/post.php(4853): wp_insert_post()
    #7 /web/htdocs/www.coachlavoro.com/home/wp-admin/includes/post.php(445): wp_update_post()
    #8 /web/htdocs/www.coachlavoro.com/home/wp-admin/post.php(227): edit_post()
    #9 {main}
    thrown

    Here you can find information about our settings:
    WordPress version 6.3.1
    Active theme: OceanWP (version 3.5.0)
    Current plugin: Rank Math SEO (version 1.0.203)
    PHP version 8.2.9

    We tried all the solutions you mentiones in your support forum but we still have this issue and we cannot understand how to solve this situation.

    Thanks in advance!

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    From the error log you shared, it seems 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.

    Hope that helps.

    Thank you.

    Dear Reinelle,

    thanks a lot for your great support: finally we solved the issue, after several attempts.

    Thanks agaian!

    Hello,
    
    You’re welcome.

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
    
    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
    
    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
    
    Thank you.

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

The ticket ‘Error message: Uncaught TypeError: array_reverse() updating posts and pages’ is closed to new replies.