API get orders Error when delete product in order
-
In the new version 1.4.0 When we delete the product already bought, the API get order show error.
<p><span class="dashicons dashicons-warning" aria-hidden="true"></span> <b>Fatal error</b>: Uncaught Error: Call to a member function get_image_id() on bool<br>in <b>/opt/lampp/htdocs/wpdev/wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-order-controller.php</b> on line <b>389</b></p> <p>Call stack:</p> <ol> <li><code>WCFM_REST_Order_Controller::get_order_item_data()</code></li> <li><code>array_map()</code><br><span class="qm-info qm-supplemental">wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-order-controller.php:276</span> </li> <li><code>WCFM_REST_Order_Controller::get_formatted_item_data()</code><br><span class="qm-info qm-supplemental">wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-order-controller.php:184</span> </li> <li><code>WCFM_REST_Order_Controller::get_post_type_items()</code><br><span class="qm-info qm-supplemental">wp-content/plugins/wcfm-marketplace-rest-api/core/class-wcfmapi-rest-controller.php:46</span> </li> <li><code>WCFM_REST_Controller::get_items()</code><br><span class="qm-info qm-supplemental">wp-includes/rest-api/class-wp-rest-server.php:1015</span> </li> <li><code>WP_REST_Server::dispatch()</code><br><span class="qm-info qm-supplemental">wp-includes/rest-api/class-wp-rest-server.php:342</span> </li> <li><code>WP_REST_Server::serve_request()</code><br><span class="qm-info qm-supplemental">wp-includes/rest-api.php:312</span> </li> <li><code>rest_api_loaded()</code><br><span class="qm-info qm-supplemental">wp-includes/class-wp-hook.php:287</span> </li> <li><code>WP_Hook::apply_filters()</code><br><span class="qm-info qm-supplemental">wp-includes/class-wp-hook.php:311</span> </li> <li><code>WP_Hook::do_action()</code><br><span class="qm-info qm-supplemental">wp-includes/plugin.php:544</span> </li> <li><code>do_action_ref_array()</code><br><span class="qm-info qm-supplemental">wp-includes/class-wp.php:388</span> </li> <li><code>WP::parse_request()</code><br><span class="qm-info qm-supplemental">wp-includes/class-wp.php:739</span> </li> <li><code>WP::main()</code><br><span class="qm-info qm-supplemental">wp-includes/functions.php:1274</span> </li> <li><code>wp()</code><br><span class="qm-info qm-supplemental">wp-blog-header.php:16</span></li> <li><code>require()</code><br><span class="qm-info qm-supplemental">index.php:17</span></li> </ol>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘API get orders Error when delete product in order’ is closed to new replies.