- Knowledge Base
- Online Billing Software
- Error & Solutions
Article sections
Error 1:
Sometime during synchronizing you may get the following message/error
“live.EMERGENCY: File:………\vendor\automattic\woocommerce\src\WooCommerce\HttpClient\HttpClient.phpLine:375Message:Syntax error”
Solution:
In your WooCommerce “API Settings” change the “Woocommerce App URL” by adding “index.php” to it.
Example: Change the URL from
www.myWooCommerceStore.com to www.myWooCommerceStore.com/index.php
Error 2:
Sometimes in WooCommerce API bulk operations (add/edit/delete) are restricted. So it will give a error like
“Sorry, you are not allowed to batch manipulate this resource. [woocommerce_rest_cannot_
To resolve this error, follow this steps:
- Install & activate Code Snippet plugin in wordpress. https://wordpress.org/plugins/code-snippets/
- Go to Snippet -> Add New and add a new snippet
- The snippet will have below writen codes:add_filter( ‘woocommerce_rest_check_permissions’, ‘allow_bulk_operation’, 10, 4 );
function allow_bulk_operation( $permission, $context, $object_id, $type ) {
return true;
} - Save & Activate it.
Now it will allow the bulk operation from api.
If you want to understand it more better, check this link: https://wordpress.org/support/topic/restrict-endpoint-on-woocommerce-rest-api/
Related Articles