500 error – affects 2 pages

#702971
  • Resolved Anonymous
    Rank Math free

    I use RankMath free on my website (wordpress with woocommerce, WPBakery Page builder) but I get a 500 error on 2 subpages every time I work on the keywords/meta description and then want to save it.

    At first I thought it was a plugin issue, but the strange thing is that it only appears on two pages. When I deactivate all plugins and activate them again the error is gone, but the changes on the page are not saved.

    I have already asked the customer support of my theme, but it seems that so far there have been no known problems with the theme and RankMath.
    I’d like Rankmath to work well, because I’m interested in getting a subscription for your content ai.

    Can you help me with this?

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

    I’m sorry to hear that you’re experiencing a 500 error when trying to save changes to the keywords and meta description on two specific subpages of your website. It’s great that you’ve already tried deactivating and reactivating your plugins to troubleshoot the issue.

    It’s possible that the problem is related to a conflict with another plugin or theme. To further troubleshoot this issue, you can perform a health check and troubleshooting process to identify any conflicts with Rank Math. You can use the Health Check & Troubleshooting plugin to check for any plugin/theme conflicts. We have a dedicated knowledgebase tutorial to help you with this: Check Plugin Conflicts.

    If the issue persists after performing the health check, you can proceed to open a support ticket on our Rank Math support page. You can click Submit a Ticket on the support page and enter the relevant details in the Ticket Title and Ticket Question. If you’ve identified a plugin or theme conflict, be sure to include those details as well.

    Open new support ticket

    Our support team will be able to assist you further with this issue and help ensure that Rank Math works well on your website.

    If you have any other questions or need further assistance, feel free to let us know.

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    How To Effectively & Efficiently Get Support from Rank Math (Support Tickets) » Rank Math
    Why Your SEO Title, Description & Focus Keyword Aren’t Being Saved » Rank Math
    Why Rank Math Settings Are Not Getting Saved? » Rank Math
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math

    Hello,

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

    5xx errors are usually caused due to server misconfiguration or other server issues.

    Can you please share the website error log with us? Having the error log file will give a clear idea of why this might be happening.

    You can follow this guide to enable debugging in WordPress https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, and they will help you locate the log file.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Hi,

    thank you for your reply and for looking into it.

    Yes, of course. This is the error log:

    [moved to sensitive data section]

    Hello,

    There seem to be some limitations imposed by your server resulting in some of the features of Rank Math to not work as intended.

    Can you please check this one with your hosting provider?

    From the log you shared, your server is limiting the client which is why Rank Math is not working properly.

    Let us know how that goes.

    Looking forward to helping you.

    Anonymous
    Rank Math free

    Hi,

    thank you very much for your reply.

    I have contacted my hosting provider directly to have the problem checked in more detail.
    The problem could be reconstructed, but it seems that it is still not solved.
    The keywords are now included in the pages, but as soon as I want to change them or even look at them (yesterday I did not even save the page and the 500 error appeared), the problem will probably occur again. Can you help me with this?

    I have updated the sensitive data with reply hosting.

    Thanks.

    Hello,

    We were able to save changes to the focus key in the page: /de/mi-mango/. We used the
    Früchte online bestellen Deutschland, Exotische Bio Früchte online bestellen, Tropische Früchte online kaufen, Exotische Früchte kaufen Österreich as focus keywords and received no error:

    Please clear your site’s browser cache, use incognito mode, or better still use a different browser and check if the issue persists.

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    Anonymous
    Rank Math free

    Thank you for taking a closer look and for your advice 🙂

    I have just tested it again after clearing the cache and using incognito mode.
    The MiMango site is now working fine.

    The shop page just gave me the error again after I deleted/added a keyword and saved the page.
    But at least now it seems that the changes are applied despite the error.
    After saving the permalinks in the wordpress settings the error is gone.

    I can now see that even if I only open the shop page, this error occurs. Could this indicate a plugin conflict or any other idea on that?

    Thanks a lot for your help =)

    Hello,

    I see, it seems like your permalinks are occasionally getting out of sync, which is causing 404 errors on your category pages.

    Here is a code that checks if the current page is a product category page and if so, it flushes the rewrite rules and refreshes the page.

    add_action('template_redirect', 'flush_rules_on_product_category_page');
    
    function flush_rules_on_product_category_page() {
        if (is_product_category()) {
            if (get_transient('flushed_rewrite_rules') === false) {
                flush_rewrite_rules();
    
                // Set transient to prevent infinite loop
                set_transient('flushed_rewrite_rules', true, 60);
    
                // Save the current URL
                $current_url = home_url(add_query_arg(null, null));
    
                // Redirect to the current URL to refresh the page
                wp_redirect($current_url);
                exit;
            } else {
                // Delete the transient so that rules are flushed next time
                delete_transient('flushed_rewrite_rules');
            }
        }
    }
    

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    While the code I provided will certainly work, it’s a very resource-intensive operation and can slow down your site if it’s flushing rewrite rules on every page load.

    It’s also treating the symptom rather than the underlying problem.

    If you continue to have this issue, I recommend reaching out to a WordPress developer or to WooCommerce support directly.

    They may be able to help you find a more permanent solution to your problem.

    We hope that helps, and please don’t hesitate to get in touch if you have any other questions.

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

The ticket ‘500 error – affects 2 pages’ is closed to new replies.