Error on post delete, and Solution:

#319959
  • On wp-content/plugins/seo-by-rank-math/includes/modules/links/class-links.php line 76
    It should be: $processor->storage->update_link_counts( $post_id, null, $links );

    instead of: $processor->storage->update_link_counts( $post_id, 0, $links );

    if not on post delete you will get an error like:

    <div id=”error”><p class=”wpdberror”>WordPress database error: [Unknown column '0' in 'field list']<br />UPDATE wp_rank_math_internal_meta SET internal_link_count = '0', external_link_count = '0', 0 = '' WHERE object_id = 26341</p></div>

Viewing 1 replies (of 1 total)
  • Hello,

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

    We enabled the full debugging on our local installations and tried with you mentioned there but there was not a single error about this SQL query that we could see.

    ​​​​​​​That field in the function accepts either an integer or null value so passing the zero shouldn’t cause any error to the function.

    Could you please clarify if you are deleting the posts via a different method other than the default delete link from the WordPress Dashboard?

    Looking forward to hearing back from you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Error on post delete, and Solution:’ is closed to new replies.