• Resolved tuomonurkkala

    (@tuomonurkkala)


    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 to see the link]

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

    (@sangeethasrinivasan)

    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/

    Hope this helps in resolving the issue.

    If issue still persists, can you please open a support ticket here –> 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

    (@tuomonurkkala)

    Hi @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

    (@tuomonurkkala)

    I tested your plugin in my other website 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

    (@tuomonurkkala)

    I tested the multisite activation for your plugin but this didn’t help either. 🙁

    Thread Starter tuomonurkkala

    (@tuomonurkkala)

    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

    (@tuomonurkkala)

    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

    (@sangeethasrinivasan)

    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

    (@tuomonurkkala)

    Hi @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

    (@sangeethasrinivasan)

    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.