• Resolved glittergirlau

    (@glittergirlau)


    The plugin is falling when the below request is performed.
    
    Request:
    POST?https://www.storedomain.com/wc-api/v2/orders/357743
    data: {"order": {"status": "completed"}}
    
    Error:
    
    1 PHP Notice Trying to get property 'ID' of non-object
    Plugin: Customize My Account for WooCommerce
    File: /wp-content/plugins/customize-my-account-for-woocommerce/include/frontend/woocommerce_frontend_endpoint.php
    Line: 29 Aug 16, 2023 - 11:58:25
    (2 occurrences logged)
    2 PHP Fatal Uncaught ArgumentCountError: Too few arguments to function IGFW\Models\Orders\IGFW_Order_CPT::save_invoice_number(), 1 passed
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(310): IGFW\Models\Orders\IGFW_Order_CPT->save_invoice_number(293833)
    #1 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
    #2 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-api-orders.php(629): do_action('woocommerce_upd...', 293833)
    #4 /wp-content/pl in /wp-content/plugins/invoice-gateway-for-woocommerce/Models/Orders/IGFW_Order_CPT.php on line 185
    WordPress core
    File: /wp-includes/class-wp-hook.php on line 310 and exactly 2 expected
    Line:
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi @glittergirlau, thanks for the error report. Based on your php notices there it seems the Customize My Account for WooCommerce plugin is not passing the right amount of arguments. Could you test a basic debug by disabling that to see if the issue goes away?

    Thread Starter glittergirlau

    (@glittergirlau)

    Hi Josh, I tested it, but it isnt that plugin, its the plugin below that is causing the problem.

    Invoice Gateway For WooCommerce Plugin

    Provides an invoice gateway for WooCommerce so your customers can check out without immediate payment.

    Version 1.1.2 | By?Rymera Web Co?|?View details

    Thanks Adam

    I also have the same issue.

    2023-08-18T01:25:17+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function IGFW\Models\Orders\IGFW_Order_CPT::save_invoice_number(), 1 passed in /home/5f033d64c1ac181b540debeb/public_html/wp-includes/class-wp-hook.php on line 310 and exactly 2 expected in /home/5f033d64c1ac181b540debeb/public_html/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Orders/IGFW_Order_CPT.php:185 Stack trace: #0 /home/5f033d64c1ac181b540debeb/public_html/wp-includes/class-wp-hook.php(310): IGFW\Models\Orders\IGFW_Order_CPT->save_invoice_number(16294)

    #1 /home/5f033d64c1ac181b540debeb/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array)

    #2 /home/5f033d64c1ac181b540debeb/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

    #3 /home/5f033d64c1ac181b540debeb/public_html/wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-api-orders.php(629): do_action(‘woocommerce_upd…’, 16294)

    #4 /home/5f033d64c1ac181b540debeb/public_html/wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-a in /home/5f033d64c1ac181b540debeb/public_html/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Orders/IGFW_Order_CPT.php on line 185

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Thanks @glittergirlau and @digitrixau for confirming.

    I’ll get this raised up and we’ll check this out in the next release!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error with Ready to Ship Update Store’ is closed to new replies.