Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

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

@WuzenLiz

Description

@WuzenLiz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions