• Hello friends,

    Please i need help with this error, its showing on the front page of my site

    “Notice: storefront_sanitize_hex_color is deprecated since version 2.0! Use sanitize_hex_color instead.”

    I have done everything i can but its still there, i even had a fatal error while trying to resolve this because it seems a similar code is already in wordpress. Please i need the right code to resolve this error.

    I will appreciate your response.

    Thank you for your support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Bennn

    (@bennn)

    Dear friends,

    Please I am still waiting for solution to this error below, I have still not been able to fix it, your quick response will highly be appreciated.

    “Notice: storefront_sanitize_hex_color is deprecated since version 2.0! Use sanitize_hex_color instead.”

    I have done everything i can but its still there on the front page of my website, i even had a fatal error while trying to resolve this because it seems a similar code is already in wordpress. Please i need the right code to resolve this error.

    I will appreciate your response.

    Thank you for your support.

    Please ensure you’re using the latest version of Storefront and all Storefront extensions.

    If you already are try deactivating them all one by one to find out which one is causing this error. When you figure that out, contact the author ??

    I have this same issue – I’ve tried deactivating all plugins, and everything is at the latest version, but no luck. I have the error 10 times at the top of my client’s homepage… not ideal.

    Has anyone had any luck resolving this issue?

    To clarify; this is not an issue in Storefront core.

    What is happening is that another codebase (likely a child theme or a plugin) is calling a function (storefront_sanitize_hex_color()) which has been deprecated. That’s why the notice is appearing. To resolve this you need to replace any instance of storefront_sanitize_hex_color() with sanitize_hex_color(). If you’re using a Woo child theme or extension this should just be a case of updating to the latest version.

    If you’re using a third party plugin / child theme you’ll need to speak with the author to fix this.

    In the mean time you can turn of wp debug to hide the notices; https://codex.www.ads-software.com/WP_DEBUG

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘storefront sanitize hex color deprecated error’ is closed to new replies.