Link Counter Not Working

#391270
Viewing 15 replies - 1 through 15 (of 15 total)
  • Hello,

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

    I was able to replicate the issue on your site. I have forwarded this to the devs and will get back to you soon with an update.

    We really appreciate your patience in the meantime.

    Hello,

    I see the issue on your site but I couldn’t reproduce it on my setup. Can you please add your site’s FTP & Database access in the Sensitive Data Section so we can debug this by editing some plugin files?

    Looking forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    I logged into your site and spend a considerable amount of time debugging this but I couldn’t find the issue. For some reason, the CRON fails on your site. On the Site Health page, I see the following warning:
    The scheduled event, litespeed_task_imgoptm_pull, is late to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

    Not sure if this is causing the problem. Can you please get in touch with your hosting team to confirm the server doesn’t have any rules that block the CRON process?

    Also, would it be possible to create a staging site where we can debug this with the default WordPress theme and by deactivating all the plugins?

    Looking forward to helping you.

    Thanks. I have done the below tasks but no luck.

    1. I have added Cron Jobs “Once per day” from Cpanel
    2. Deleted Internal Links Data (Rank math)
    3. Re-created Missing Database Tables (Rank math)

    It is not possible to create a staging site. FYI, the Link counter did work 2/3 weeks ago.

    Let me know your feedback.

    Regards.

    Hello,

    I have logged in to your site to take a look at the issue, and I edited one of the plugin files to fix it. The issue seems to be specific to your site, I could not replicate it on a test site. Nevertheless, I have taken note of it, we will investigate it, and see if there’s anything we can change in the plugin to prevent this issue from happening again.

    For future reference, I edited the plugin file seo-by-rank-math/includes/modules/links/class-links.php, lines 34-38:

    if ( is_admin() ) {
    	$this->action( 'save_post', 'save_post', 10, 2 );
    	$this->action( 'delete_post', 'delete_post' );
    	$this->action( 'rank_math_seo_details', 'post_column_content' );
    }

    I commented out the opening & closing lines of the conditional block (which has the same effect as deleting those 2 lines):

    //if ( is_admin() ) {
    	$this->action( 'save_post', 'save_post', 10, 2 );
    	$this->action( 'delete_post', 'delete_post' );
    	$this->action( 'rank_math_seo_details', 'post_column_content' );
    //}

    Now, when I edit a post on your site, the link counts get updated correctly.

    Hope that helps.

    Thanks but do I need to edit the core file after every update?

    Hello,

    We have already released a beta update with the fix for the issue with the Link Counter. You can wait for the stable release or enable the beta updates on your site by following this guide: https://rankmath.com/kb/version-control/#beta-updates

    Once updated, you will not need to edit the plugin files to fix the issue.

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

    I have updated the beta version but no luck. I have 3/4 websites on the same server and rankmath is working fine on those websites.

    Hello,

    You will need to edit and update the posts for the link count to be visible in the Link Counter.

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

    Please remove the screenshot you added in the last reply. It is showing some confidential data (Author Name) of my website.

    Hello,

    As requested, we have removed the screenshot in the previous reply. Meanwhile, we will keep this ticket open until you confirm that your issue is resolved. Let us know if you need any further assistance with this.

    Looking forward to hearing from you.

    Thanks for your amazing support.
    All the best.

    Hello,

    We are super happy that this resolved your issue. 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.

    Hello,

    Thank you for your patience.

    Just a quick update that we have fixed this issue on one of our recent releases.

    Please update Rank Math & all other plugins, themes and WordPress to the latest version.

    The issue should be fixed.

    If not, please feel free to open a support topic or reply to this message and we will be more than happy to assist.

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

The ticket ‘Link Counter Not Working’ is closed to new replies.