• Resolved araundu

    (@araundu)


    We got an error when completing an order with the plugin enabled, I must comment out all the if block at line 142 to proceed but this has counter-effects I think during auto update of product availability (that I Need)

    2024/06/04 09:37:29 [error] 12558#12558: *539124 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /home/forge/{website}/public/wp-content/plugins/stock-locations-for-woocommerce/src/helpers/helper-slw-order-item.php:142
    Stack trace:
    #0 /home/forge/{website}/public/wp-content/plugins/stock-locations-for-woocommerce/src/helpers/helper-slw-order-item.php(142): method_exists()
    #1 /home/forge/{website}/public/wp-content/plugins/stock-locations-for-woocommerce/src/classes/class-slw-order-item.php(908): SLW\SRC\Helpers\SlwOrderItemHelper::allocateLocationStock()
    #2 /home/forge/{website}/public/wp-includes/class-wp-hook.php(324): SLW\SRC\Classes\SlwOrderItem->newOrderItemAllocateStock()
    #3 /home/forge/{website}/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/forge/{website}/public/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/forge/{website}/public/wp-content/plugins/woo” while reading response header from upstream, client: xxxxx, server:?https://{website}, request: “POST /?wc-ajax=checkout HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/php8.1-fpm.sock:”, host: “{website}”, referrer: “https://{website}/checkout/”

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.