Title: Oops!! something went wrong!
Last modified: June 6, 2022

---

# Oops!! something went wrong!

 *  Resolved [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/)
 * Hi there,
 * I am getting this error (Oops!! something went wrong!) when I am trying to add
   products to the discount.
    Your plugin has been working before without problems
   but now it’s not working as well.
 * Best Regards,
    Tuomo Nurkkala
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foops-something-went-wrong-56%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15714518)
 * Hi,
    Thank you for reaching out.
 * Do you have any security plugins like wordfence installed ?﻿
    If so, can you 
   please try to enable learning mode?﻿﻿
 * Please review this below guide to know how to set to learning mode:
    [https://www.wordfence.com/help/firewall/learning-mode/](https://www.wordfence.com/help/firewall/learning-mode/)
 * Hope this helps in resolving the issue.
 * If issue still persists, can you please open a support ticket here –> [https://www.flycart.org/support](https://www.flycart.org/support)
   with detailed screenshots of settings tab and site URL so that we can quickly
   have a check and assist accordingly?
 * Thanks
    Team Flycart
 *  Thread Starter [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15714763)
 * Hi [@sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * I don’t have wordfence plugin. I have Limit Login Attempts Reloaded and it doesn’t
   have learning modes.
 * I disabled it and this didn’t have any effect on this.
 * Best Regards,
    Tuomo Nurkkala
 *  Thread Starter [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715009)
 * I tested your plugin in my other website [https://www.alusvaatteet.com](https://www.alusvaatteet.com)
   and this works just fine there. Should I activate your plugin for multisite activation
   when my site is in multisite?
 * Best Regards,
    Tuomo Nurkkala
 *  Thread Starter [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715113)
 * I tested the multisite activation for your plugin but this didn’t help either.
   🙁
 *  Thread Starter [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715125)
 * It is giving me these fatal errors in woocommerce logs:
 *     ```
       2022-06-07T06:54:52+00:00 CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php:1582
       Stack trace:
       #0 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1582): method_exists()
       #1 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1527): Wdr\App\Helpers\Rule->getVariantsOfProducts()
       #2 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1504): Wdr\App\Helpers\Rule->addAdditionalDataForFilters()
       #3 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1324): Wdr\App\Helpers\Rule->getFromArray()
       #4 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(445): Wdr\App\Helpers\Rule->save()
       #5 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(67): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_save_rule()
       #6 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_requests()
       #7 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #8 /home2/sukkianet/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
       #9 /home2/sukkianet/public_html/wp-admin/admin-ajax.php(187): do_action()
       #10 {main}
         thrown tässä /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php rivillä 1582
   
       2022-06-07T07:01:05+00:00 CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php:1582
       Stack trace:
       #0 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1582): method_exists()
       #1 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1527): Wdr\App\Helpers\Rule->getVariantsOfProducts()
       #2 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1504): Wdr\App\Helpers\Rule->addAdditionalDataForFilters()
       #3 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1324): Wdr\App\Helpers\Rule->getFromArray()
       #4 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(445): Wdr\App\Helpers\Rule->save()
       #5 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(67): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_save_rule()
       #6 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_requests()
       #7 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #8 /home2/sukkianet/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
       #9 /home2/sukkianet/public_html/wp-admin/admin-ajax.php(187): do_action()
       #10 {main}
         thrown tässä /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php rivillä 1582
   
       2022-06-07T08:33:41+00:00 CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php:1582
       Stack trace:
       #0 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1582): method_exists()
       #1 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1527): Wdr\App\Helpers\Rule->getVariantsOfProducts()
       #2 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1504): Wdr\App\Helpers\Rule->addAdditionalDataForFilters()
       #3 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1324): Wdr\App\Helpers\Rule->getFromArray()
       #4 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(445): Wdr\App\Helpers\Rule->save()
       #5 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(67): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_save_rule()
       #6 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_requests()
       #7 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #8 /home2/sukkianet/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
       #9 /home2/sukkianet/public_html/wp-admin/admin-ajax.php(187): do_action()
       #10 {main}
         thrown tässä /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php rivillä 1582
   
       2022-06-07T08:34:23+00:00 CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php:1582
       Stack trace:
       #0 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1582): method_exists()
       #1 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1527): Wdr\App\Helpers\Rule->getVariantsOfProducts()
       #2 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1504): Wdr\App\Helpers\Rule->addAdditionalDataForFilters()
       #3 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1324): Wdr\App\Helpers\Rule->getFromArray()
       #4 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(445): Wdr\App\Helpers\Rule->save()
       #5 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(67): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_save_rule()
       #6 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_requests()
       #7 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #8 /home2/sukkianet/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
       #9 /home2/sukkianet/public_html/wp-admin/admin-ajax.php(187): do_action()
       #10 {main}
         thrown tässä /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php rivillä 1582
   
       2022-06-07T08:37:33+00:00 CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php:1582
       Stack trace:
       #0 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1582): method_exists()
       #1 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1527): Wdr\App\Helpers\Rule->getVariantsOfProducts()
       #2 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1504): Wdr\App\Helpers\Rule->addAdditionalDataForFilters()
       #3 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php(1324): Wdr\App\Helpers\Rule->getFromArray()
       #4 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(445): Wdr\App\Helpers\Rule->save()
       #5 /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Controllers/Admin/WDRAjax.php(67): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_save_rule()
       #6 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): Wdr\App\Controllers\Admin\WDRAjax->wdr_ajax_requests()
       #7 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #8 /home2/sukkianet/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
       #9 /home2/sukkianet/public_html/wp-admin/admin-ajax.php(187): do_action()
       #10 {main}
         thrown tässä /home2/sukkianet/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Rule.php rivillä 1582
       ```
   
 *  Thread Starter [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715171)
 * I have made one slight change to your dicount_table.php row 164 ->
 *     ```
       if (isset($range['from']) && !empty($range['from']) && isset($range['to']) && !empty($range['to'])) {
                                   if($range['from'] == $range['to']) {
                                       $discount_range = $range['from'];
                                   }else {
                                       $discount_range = $range['from'] . ' - ' . $range['to'];
                                   }
       ```
   
 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715640)
 * Hi,
    Thanks for the detailed reply.
 * It seems like you have raised a ticket in our support form and one of our engineers
   is already in contact with you.
 * Thanks
    Team Flycart
 *  Thread Starter [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715663)
 * Hi [@sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * Thank you for your help!
    The problem was that I had invalid (deleted and transfered)
   products in the discount table.
 * Best Regards,
    Tuomo Nurkkala
 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715835)
 * Hi,
    Thanks for the letting us know.
 * Also, happy to help. 🙂
 * Thanks
    Team Flycart

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Oops!! something went wrong!’ is closed to new replies.

 * ![](https://ps.w.org/woo-discount-rules/assets/icon-256x256.png?rev=1977982)
 * [Discount Rules for WooCommerce](https://wordpress.org/plugins/woo-discount-rules/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-discount-rules/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-discount-rules/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-discount-rules/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-discount-rules/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-discount-rules/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/oops-something-went-wrong-56/#post-15715835)
 * Status: resolved