Undefined array key “host” in /public_html/wp-includes/canonical.php

#360776
  • Resolved Catalin
    Rank Math free

    Hi,

    In error_log I received the following error:

    Undefined array key “host” in /public_html/wp-includes/canonical.php

    Do you know what could be the cause?

    now I have disabled the rank math plugin and I’m waiting to see if I get this error again.

    Thanks!

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

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

    That is a core WordPress file and is not controlled by our plugin.

    The canonical URL is also something that WordPress implements and that is the file that controls this implementation and the redirection to the canonical in case it’s needed.

    Since this is not related to Rank Math it falls outside the scope of our support.

    Don’t hesitate to get in touch if you have any other questions about our plugin.​​​​​​

    Thank you for your answer!

    I deactivated the plugin and I see that I no longer receive that error.

    I think it may not be the problem with the plugin, but it may contribute to this error.

    Is it possible to cause the host configuration error?

    Hello,

    This could be a misconfiguration on either WordPress or the server configuration file.

    For WordPress, you can check that the options table has the correct values for the siteurl and home as for the server configuration you would need to check the configuration values with your hosting provider.

    Don’t hesitate to get in touch if you have any other questions.

    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 ‘Undefined array key “host” in /public_html/wp-includes/canonical.php’ is closed to new replies.