• Resolved Marisa

    (@marisa2023)


    I am using Rencontre, Rencontre Preminium and WooCommerce.

    Until I recently upgraded to a later version of Rencontre Premium I had no problems with the action I will describe below.

    A user placed an order to subscribe to Premium Access on Rencontre.

    I then went to WooCommerce->Orders.

    I selcted the most recent order.

    I then selected Bulk Actions->Change status to completed.

    I then hit the Apply button.

    Before the recent update to Recontre Premium hitting the Apply button always worked.

    Now WordPress crashes. The error stack trace is given below.

    Error Details

    An error of type E_ERROR was caused in line 428 of the file /home/myusername/public_html/unjabbed.net/wp-content/plugins/rencontreP/rencontreP.php. Error message: Uncaught Error: Call to a member function get_sku() on bool in /home/myusername/public_html/unjabbed.net/wp-content/plugins/rencontreP/rencontreP.php:428
    Stack trace: 0 /home/myusername/public_html/unjabbed.net/wp-includes/class-wp-hook.php(312): rencWooForceEmailOrder() 1 /home/myusername/public_html/unjabbed.net/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() 2 /home/myusername/public_html/unjabbed.net/wp-includes/plugin.php(517): WP_Hook->do_action() 3 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/class-wc-order.php(395): do_action() 4 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Order->status_transition() 5 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/class-wc-order.php(365): WC_Order->save() 6 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php(477): WC_Order->update_status() 7 /home/myusername/public_html/unjabbed.net/wp-includes/class-wp-hook.php(310): WC_Admin_List_Table_Orders->handle_bulk_actions() 8 /home/myusername/public_html/unjabbed.net/wp-includes/plugin.php(205): WP_Hook->apply_filters() 9 /home/myusername/public_html/unjabbed.net/wp-admin/edit.php(222): apply_filters() 10 {main}

    thrown

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jacques Malgrange

    (@sojahu)

    Hi,

    I’ll post an update. You can solve this problem by replacing :

    if(0===strpos($pf->get_product($r['product_id'])->get_sku().'-', 'renc'))
    
    

    with ( remove .’-‘):

    if(0===strpos($pf->get_product($r['product_id'])->get_sku(), 'renc'))

    in document RrencontreP.php, line 428.

    Regards

    Thread Starter Marisa

    (@marisa2023)

    Thanks for your fast reply. I do appreciate all the work you put into this useful plugin.

    Thread Starter Marisa

    (@marisa2023)

    I made the change as you suggest but the problem still exists.

    Thread Starter Marisa

    (@marisa2023)

    I wonder if the problem could be in WooCommerce.

    Thread Starter Marisa

    (@marisa2023)

    This problem still exists, but it is only a minor issue, because it doesn’t affect things running.

    Thread Starter Marisa

    (@marisa2023)

    I think this might be a WooCommerce bug and not a Rencontre bug.

    If I go to WooCommerce->Orders and then select one order, change from “Bulk Actions” to “Change status to completed” and then hit Apply, I see an error.

    However if I click on an individual order, open it and then change status from “processing” to “Completed”, followed by an Update button click there is no error.

    Thread Starter Marisa

    (@marisa2023)

    This bug seems to have disappeared after yet another WooCommerce update.

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

The topic ‘WordPress crash when WooCommerce changes order status’ is closed to new replies.