wordpress error

#451010
  • Resolved Rick Farrell
    Rank Math business
    Content AI Expert

    I have 2 issues.

    1. I have the “Seems like your site URL has changed since you connected to Rank Math. Click here to reconnect.” every time I reconnect this banner still remains.

    2. Whenever I try to go through the wizard I get this…

    Warning: Invalid argument supplied for foreach() in /home/customer/www/thunk.co/public_html/wp-admin/includes/plugin.php on line 1779

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/thunk.co/public_html/wp-admin/includes/plugin.php:1779) in /home/customer/www/thunk.co/public_html/wp-admin/includes/misc.php on line 1381

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    1. Could you please add the following filter on your website and then reconnect to your account?

    /**
     * Filter whether we need to check for URL mismatch or not.
     */
    add_filter( 'rank_math/registration/do_url_check', '__return_false' );

    ​​​​​​​After that, the plugin should be able to stay connected without any issues.

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    2. Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Here is a video you can follow as well: https://www.youtube.com/watch?v=FcIWRhcUP2c

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Please let us know how that goes.

    Rick Farrell
    Rank Math business
    Content AI Expert

    ok, thank you. This is resolved, however, it has created another issue. When I load the website on the console there is the following error:

    api-fetch.min.js?ver=63050163caffa6aac54e9ebf21fe0472:2
    GET https://thunk.co/wp-json/rankmath/v1/an/post/undefined?_locale=user 404

    Request URL: https://thunk.co/wp-json/rankmath/v1/an/post/undefined?_locale=user
    Request Method: GET
    Status Code: 404
    Remote Address: 34.91.95.185:443
    Referrer Policy: strict-origin-when-cross-origin

    then if I go to that URL I get
    “code”:”rest_no_route”,”message”:”No route was found matching the URL and request method.”,”data”:{“status”:404}}

    Hello,

    In this case, please take a backup of your .htaccess file and replace it with the default WordPress .htaccess file. You can get the file here: https://wordpress.org/support/article/htaccess/

    You can follow this guide to edit the .htaccess file:
    https://rankmath.com/kb/edit-htaccess/

    If you are not sure about this, we can check this over your admin dashboard. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘wordpress error’ is closed to new replies.