• Hi,

    I tried to use:

    remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );

    to remove the related products through the theme editor. It didn’t work so I deleted the code, but now the whole website is messed up and wont load.

    How do I fix this?

    I found this code on a YouTube video:

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter tonjunee

    (@tonjunee)

    I can’t even change my theme or customize my site now.

    Is this code some sort of hack?

    Thread Starter tonjunee

    (@tonjunee)

    I found this:

    if (isset($_SERVER[‘HTTP_ACCEPT_ENCODING’]) && stristr($_SERVER[‘HTTP_ACCEPT_ENCODING’], $compression) !== false) {

    I don’t know what I’m supposed to do here. Someone help.

    Thread Starter tonjunee

    (@tonjunee)

    Now I found out it is a fatal error.

    I get this now:

    Fatal error: Uncaught Error: Class ‘Hantus_Repeater’ not found in /home/miromcar/public_html/wp-content/plugins/clever-fox/inc/hantus/features/section-slider.php:91 Stack trace: #0 /home/miromcar/public_html/wp-includes/class-wp-hook.php(287): hantus_slider_setting(Object(WP_Customize_Manager)) #1 /home/miromcar/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /home/miromcar/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/miromcar/public_html/wp-includes/class-wp-customize-manager.php(933): do_action(‘customize_regis…’, Object(WP_Customize_Manager)) #4 /home/miromcar/public_html/wp-includes/class-wp-hook.php(287): WP_Customize_Manager->wp_loaded(”) #5 /home/miromcar/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /home/miromcar/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /home/miromcar/public_html/wp-settings.php(568): do_action(‘wp_loaded’) #8 /home/miromcar/public_html/wp-config.php(93): in /home/miromcar/public_html/wp-content/plugins/clever-fox/inc/hantus/features/section-slider.php on line 91

    How did some stupid code cause all this havoc? I even deleted the code and still got the same result.

    Thread Starter tonjunee

    (@tonjunee)

    Now I changed the theme but I still get the error message from the top of the header of every website.

    What is going on? I talked to my host and they said to speak with the web developers. Do I speak with WordPress?

    Thread Starter tonjunee

    (@tonjunee)

    This seems to be the focal point of the problem:

    Deprecated: stristr(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /home/miromcar/public_html/wp-content/plugins/a2-w3-total-cache/lib/W3/PgCache.php on line 1054

    This text shows up whenever I go into the site https://www.miromcare.com.

    Hi, @tonjunee

    I see you found a fix here https://www.ads-software.com/support/topic/ive-got-a-fatal-error-or-something-help/

    I am sorry you didn’t get a fast response on this. I imagine that was frustrating. That is because the way the forums work right now: if a topic has any kind of replies, that topic won’t be seen as much as topics without any replies. You can read here why: https://www.ads-software.com/support/guidelines/#do-not-bump-posts

    For future topics, keep in mind that you have 60 minutes to edit your original post and insert additional informations, instead of replying – that way, the topic will be visible to our volunteers and you will get a faster response.

    Kind regards.

    Thread Starter tonjunee

    (@tonjunee)

    Hi Vlad.

    Yes it was very frustrating.

    I did manage to get some help. Yet I figured the damage was too much at that point and I uninstalled WordPress and reinstalled.

    It fixed the error, but I learnt a valuable lesson here. Backing up files.

    At least I know this forum does have good preventative info on issues.

    Thanks for getting back to me.

    Happy new years.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Website got a bug for trying to remove woocommerce related products’ is closed to new replies.