• Resolved anjitaitsolutions

    (@anjitaitsolutions)


    Site shows critical error after installing this

    Users are not able to login and site shows critical error

    Error Details
    =============
    An error of type E_ERROR was caused in line 627 of the file /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wc-category-discount/src/DiscountRules.php. Error message: Uncaught Error: Unsupported operand types in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wc-category-discount/src/DiscountRules.php:627
    Stack trace:
    #0 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(286): Wcd\DiscountRules\DiscountRules->minMaxDiscountRule()
    #1 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #2 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woo-discount-rules/includes/cart-rules.php(1986): do_action('woocommerce_bef...', Object(WC_Cart))
    #4 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woo-discount-rules/includes/cart-rules.php(94): FlycartWooDiscountRulesCartRules->calculateCartSubtotal()
    #5 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woo-discount-rules/includes/discount-base.php(47): FlycartWooDiscountRulesCartRules->__construct()
    #6 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wo
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Hi,

    Thanks for letting me know.
    The plugin “woo-discount-rules” is a commercial or a free plugin?
    Could you provide me the link to download the conflicted plugin so I can test it on my local WP installation, please?

    Thread Starter anjitaitsolutions

    (@anjitaitsolutions)

    woo-discount-rules
    https://www.ads-software.com/plugins/woo-discount-rules/

    is a free plugin we have used

    Users are still not able to login, Even when I removed the plugin of Login as user,

    When we login as an administrator – things works
    when customer logins with role Customer this error comes.

    I you can tell me the extact pages where we do all these code changes on installing the plugin – I will replace them with the old code back up I have .. currently the site is live and login of the user feature is not working.

    Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    I have installed the “woocommerce”, the “woo-discount-rules”, the “login-as-user” on a clean WordPress installation and everything works like a charm.

    Maybe the conflict is somewhere else. Have you enabled the debug mode to see the exact errors?

    If you would like you can send me more details (access, link to your site) at [email protected].

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[NSFW] Site shows critical error after installing this’ is closed to new replies.