• Resolved kamrafique

    (@kamrafique)


    Hi.

    My web host has blocked my site as a script has looped too many times.

    CPU/hr: 55,259 (web host has a limit of 2000)
    Program executions/hr: 12,505 (web host has a limit of 2000)

    See below:

    “We have conducted a thorough investigation which showed that one of your scripts loops and spawns too many processes. The script that loops (i.e. references itself) is:

    <site>/wp-admin/admin-ajax.php /home/<site>/public_html/wp-admin/admin-ajax.php

    For additional information please review the server logs below:

    <ip> <site> – [25/Sep/2020:21:24:10 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=1443e4874c HTTP/1.1” 499 0 “<site>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=1443e4874c” “WordPress/5.5.1; <site>” | TLSv1.3 | – 0.984 0.984 – W NC:100000 UP:0

    Your FB page has confirmed the above script was run by your latest plugin update:
    “Just curious, does your plugin log this?
    “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&..” – Kam

    “Hi Kam, yes, this is a converter that runs after updating the plugin and converts old Schema into a revamped Schema format.”

    WP: 5.5.1
    WC: 4.5.2
    Storefront: 2.7.0
    Rank Math: 1.0.48

    Please can you investigate and confirm a fix?
    Thanks.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @kamrafique

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

    Can you please check if there are any errors in the error log as we are not able to reproduce the error?

    Also, if you want, you can run the converter manually from here:
    /wp-admin/admin.php?page=rank-math-status&view=tools
    https://i.rankmath.com/n8nPPG

    Looking forward to helping you.

    Thread Starter kamrafique

    (@kamrafique)

    Hi.

    Not sure I want to run the manual converter until this issue is resolved as it may cause issues again.

    I think the script updated quite quickly as I got this message:
    “Rank Math: Converted 47 posts successfully from old Schema data format to new.”

    I have mostly variable products.

    I don’t have logs from that date, however, this is from today:

    2020-09-27 13:34:27 UTC [apache][access_compat:error] [pid 53787] [client <IP address>:48082] AH01797: client denied by server configuration: /home/<removed>/www/<removed>/public_html/wp-admin/admin-ajax.php, referer: https://<site>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=d4aedadfeb

    I had another SEO plugin and used yours to switch that out and your in as part of your plugin feature if that helps.

    Happy to send you my setup in private if needed.

    Thanks.

    OP & RM,

    I am having the same issue here and my host shut me down as well for this looping script problem. Very inconvenient – please find a fix soon as I had to disable RM in order to get my website back up.

    Thanks

    Plugin Author Rank Math SEO

    (@rankmath)

    Hi @thedermdetective,

    It would be great if you can share the errorlog or any helpful log from your host? We are still trying to find the issue but we are unable to reproduce it.

    Looking forward to helping you.

    Hello RM,

    Here are the server logs my host provided. I have replaced my website URL for privacy reasons.

    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “ISFxH9iENECH” | TLSv1.3 | 1.478 1.478 1.478 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “he8oVDoxPdyu” | TLSv1.3 | 1.124 1.124 1.124 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “oIsDToiAL9zr” | TLSv1.3 | 1.454 1.454 1.454 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “Ewi8FvvEGw11” | TLSv1.3 | 0.425 0.425 0.426 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “7QTqeDJ7bd7g” | TLSv1.3 | 1.483 1.483 1.482 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “say7SFnUf9Kc” | TLSv1.3 | 1.418 1.418 1.418 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “CvMnDxNQfMor” | TLSv1.3 | 1.479 1.479 1.479 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “7mjYTmayh668” | TLSv1.3 | 22.520 22.520 22.520 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “dLnomyBy1w6k” | TLSv1.3 | 1.497 1.497 1.497 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “wOcEvKWWvvNX” | TLSv1.3 | 1.459 1.459 1.459 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:33 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “CMw38krgqH7D” | TLSv1.3 | 1.536 1.536 1.536 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:34 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “6Fycxaav6o8K” | TLSv1.3 | 22.744 22.744 22.743 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:34 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “zNjwWkWcBxR8” | TLSv1.3 | 21.481 21.481 21.481 – W NC:000000 UP:1
    35.208.152.45 <domain name> – [26/Sep/2020:17:35:34 0000] “POST /wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015 HTTP/1.1” 200 0 “<domain name>/wp-admin/admin-ajax.php?action=wp_convert_schema_posts&nonce=2fbcdb6015” “M2T8g9nxjCrQ” | TLSv1.3 | 1.436 1.436 1.436 – W NC:000000 UP:1

    Plugin Author Rank Math SEO

    (@rankmath)

    Could you please confirm, how many posts, pages, and single CPT items you have on your website?

    Thread Starter kamrafique

    (@kamrafique)

    posts: 1
    pages: 24 (published), 2 (private)
    products: 35 (published), 1 (private)
    product categories: 21
    product tags: 27

    my web host confirmed that the script (\admin-ajax.php?action=wp_convert_schema_posts) was running at 10+ times per second.
    issue has not recurred since i updated the plugin when the new schema was converted.

    Thread Starter kamrafique

    (@kamrafique)

    fyi – not sure if this is related and as this doesn’t appear to be a global issue, I have this custom script to remove errors and warnings in google search console:

    /**
    * Remove the generated product schema markup from Product Category and Shop pages.
    */
    function wc_remove_product_schema_product_archive() {
    remove_action( ‘woocommerce_shop_loop’, array( WC()->structured_data, ‘generate_product_data’ ), 10, 0 );
    }
    add_action( ‘woocommerce_init’, ‘wc_remove_product_schema_product_archive’ );

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @kamrafique

    my web host confirmed that the script (\admin-ajax.php?action=wp_convert_schema_posts) was running at 10+ times per second.
    issue has not recurred since i updated the plugin when the new schema was converted.

    It is fine if the query is running 10+ times. We convert the Schema in the chunks of 10 posts and since your site has 100+ posts, the query will run more than 10 times.

    fyi – not sure if this is related and as this doesn’t appear to be a global issue, I have this custom script to remove errors and warnings in google search console:

    For this, we have an option in Titles & Meta settings to disable the Schema data on Product Category page. And if you want to disable it from Shop archive page, then you can do so from Dashboard >> Rank Math >> General Settings >> Remove Schema Markup on Shop Archives.

    Hope that helps. Thank you.

    Thread Starter kamrafique

    (@kamrafique)

    Hi @rankmath.

    OK thanks, will use your plugin instead of the custom code.

    Did you find out why we got the spike in traffic from your plugin causing our sites to get switched off by the web host?

    • This reply was modified 4 years, 5 months ago by kamrafique.
    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @kamrafique

    That could be caused due to limited resources allocated to your website.

    If your website is running fine now and all the posts are converted to the newer Schema Markup, you should be all good.

    Please let us know if there’s anything else we can help you with. Thank you.

    Thread Starter kamrafique

    (@kamrafique)

    Hi @rankmath.

    My web host confirmed the reason as too many loops from your script – see my first post.

    I have another site on the same host which updated ok, so I don’t think it is resource allocation.

    Anyway, looks like there is no more progress on this, so we can leave it here.

    Hi @thedermdetective.

    If interested, happy to jump on a call to try and figure out what is common on our sites which might have caused this. I doubt any of us want our sites to go down again.

    @kamrafique great idea! I can send you an email with a list of my installed plugins. Perhaps there is a similarity there? My email – [email protected]

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @kamrafique & @thedermdetective

    You can also search on our website’s support forums or contact us and see if you can find any similar topics.

    Hope that helps further. Thank you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘action=wp_convert_schema_posts’ is closed to new replies.