UserModel.php error
-
Hi,
We are experiencing a critical error after updating LearnPress to version 4.4.0. When trying to edit an existing order (changing its status from “Completed” to “Pending”), WordPress throws a fatal error and the page returns a 500 error.
The error found in the debug.log is the following:
Fatal error: Uncaught TypeError in /wp-content/plugins/learnpress/inc/Models/UserModel.php on line 123
Stack trace: 0 …/learnpress/inc/order/lp-order-functions.php(526): LearnPress\Models\UserModel::find() 1 …/learnpress/inc/order/lp-order-functions.php(587): learn_press_get_order_refund_event_data() 2 …/learnpress/inc/admin/views/meta-boxes/order/details.php(195): learn_press_admin_order_refund_request_panel() 3 …/learnpress/inc/lp-template-functions.php(1016): include(‘…’) 4 …/learnpress/inc/custom-post-types/order.php(818): learn_press_admin_view()
This worked correctly in the previous version. The issue seems to be in the UserModel::find() method called from the order refund panel when loading the order edit screen in wp-admin.
Could you please look into this? It is affecting our ability to manage student orders and enroll them in new courses.
Thank you.
You must be logged in to reply to this topic.