Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help. I got this fatal error while create item by rest API #292

Open
WuzenLiz opened this issue Sep 15, 2024 · 0 comments
Open

Help. I got this fatal error while create item by rest API #292

WuzenLiz opened this issue Sep 15, 2024 · 0 comments

Comments

@WuzenLiz
Copy link

2024-09-14T10:23:04+00:00 Critical Uncaught Error: Call to a member function get_id() on bool in $HIDDEN_HOME_PATH/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1525
Additional context
{
"error": {
"type": 1,
"file": "$HIDDEN_HOME_PATH/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php",
"line": 1525
},
"backtrace": [
"",
"#0 $HIDDEN_HOME_PATH/wp-includes/class-wp-hook.php(326): WC_REST_Products_V2_Controller->clear_transients()",
"#1 $HIDDEN_HOME_PATH/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
"#2 $HIDDEN_HOME_PATH/wp-includes/plugin.php(517): WP_Hook->do_action()",
"#3 $HIDDEN_HOME_PATH/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(221): do_action()",
"#4 $HIDDEN_HOME_PATH/wp-includes/rest-api/class-wp-rest-server.php(1230): WC_REST_CRUD_Controller->create_item()",
"#5 $HIDDEN_HOME_PATH/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()",
"#6 $HIDDEN_HOME_PATH/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()",
"#7 $HIDDEN_HOME_PATH/wp-includes/rest-api.php(420): WP_REST_Server->serve_request()",
"#8 $HIDDEN_HOME_PATH/wp-includes/class-wp-hook.php(324): rest_api_loaded()",
"#9 $HIDDEN_HOME_PATH/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
"#10 $HIDDEN_HOME_PATH/wp-includes/plugin.php(565): WP_Hook->do_action()",
"#11 $HIDDEN_HOME_PATH/wp-includes/class-wp.php(418): do_action_ref_array()",
"#12 $HIDDEN_HOME_PATH/wp-includes/class-wp.php(813): WP->parse_request()",
"#13 $HIDDEN_HOME_PATH/wp-includes/functions.php(1336): WP->main()",
"#14 $HIDDEN_HOME_PATH/wp-blog-header.php(16): wp()",
"#15 $HIDDEN_HOME_PATH/index.php(17): require('/home3/leetword...')",
"#16 {main}",
"thrown"
]
}

Woo Version 9.3.1
WooRest Legacy Version 1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant