if an order is deleted it will show an error for the line 690 because it will return false
my fix is the following but should be handled
if ($order === false)
{
$item['order_status'] = 'waiting';
}
else
{
$order_data = $order->get_data();
$item['order_status'] = $order_data['status'];
}
wordpress: 6.6.2
woocommerce: 9.3.3
Mstore API: 4.15.5
I have load on server when run yours plugin:
i have in log this problem:
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
GROUP BY terms.term_id' at line 9 for query SELECT COUNT( DISTINCT wp_posts.ID ) as term_count, terms.term_id as term_count_id FROM wp_posts
INNER JOIN wp_term_relationships AS term_relationships ON wp_posts.ID = term_relationships.object_id
INNER JOIN wp_term_taxonomy AS term_taxonomy USING( term_taxonomy_id )
INNER JOIN wp_terms AS terms USING( term_id )WHERE wp_posts.post_type IN ( 'product' )
AND wp_posts.post_status = 'publish'
AND terms.term_id IN ()
GROUP BY terms.term_id made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WC_REST_Product_Attributes_V1_Controller->get_items, WC_REST_Product_Attributes_V1_Controller->prepare_item_for_response, apply_filters('woocommerce_rest_prepare_product_attribute'), WP_Hook->apply_filters, flutter_custom_change_product_attribute, get_filtered_term_product_counts
when disable function [get_filtered_term_product_counts] from [mstore-api/functions/index.php] load server is off and every thing ok.
]]>PHP: 8.2.24
WordPress: 6.6.2
Woocommerce: 9.3.3
MStore API: 4.15.5
[12-Oct-2024 08:22:17 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
GROUP BY terms.term_id' at line 9 for query SELECT COUNT( DISTINCT wp_posts.ID ) as term_count, terms.term_id as term_count_id FROM wp_posts
INNER JOIN wp_term_relationships AS term_relationships ON wp_posts.ID = term_relationships.object_id
INNER JOIN wp_term_taxonomy AS term_taxonomy USING( term_taxonomy_id )
INNER JOIN wp_terms AS terms USING( term_id ) WHERE wp_posts.post_type IN ( 'product' )
AND wp_posts.post_status = 'publish'
AND terms.term_id IN ()
GROUP BY terms.term_id made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WC_REST_Product_Attributes_V1_Controller->get_items, WC_REST_Product_Attributes_V1_Controller->prepare_item_for_response, apply_filters('woocommerce_rest_prepare_product_attribute'), WP_Hook->apply_filters, flutter_custom_change_product_attribute, get_filtered_term_product_counts
]]>
Hello, Is this plugin HPOS compatible?
Thanks!
]]>i am currently using a M store API for the Creating an order but my website and M Store API both showing a different shipping methods.
if M Store paid plugin then i will go with paid plugin too.
This setting help to speed up the mobile app performance, upload the config_xx.json
This is the last question . No clue what file your referring too
]]>Hello,
Using this for a demo site and got a fatal error email from wp a few days ago after an update on line 134. Have only just seen the email.
Détails de l’erreur======================Une erreur de type E_PARSE a été causée dans la ligne 134 du fichier /home/fsrncmvj/autour-de-moi/wp-content/plugins/mstore-api/functions/index.php. Message d’erreur : syntax error, unexpected ‘)’, expecting variable (T_VARIABLE)
Have just disabled it from the back end so will no longer be active on the site.
Tia
]]>We have e-commerce website and app using flux store and after updating the “MStore API” plugin All products showing zero prices except the on-sales products, and therefore no more orders can be done, this is a running App ,, Please HELP ASAP
]]>Hi there,
I have setup a product with variant and attributes (https://docs.fluxbuilder.com/fr/product-detail-settings/) but it’s not showing as options on the app, instead, it is showing as additional information. Can anyone help please?
]]>I am using Mstore api plugin along with woocommerce and dokan plugin. From app i need the customer signup as well. So i need to pass customer user role to the signup endpoint which is used for register. There are all user roles but customer is missing from that. Even i am not able to override the code. Please share solution for this problem with me.
]]>
Fatal error: Uncaught Error: Call to a member function get_data() on array in /plesk_content/web_content/xxx.xxx/httpdocs/wp-content/plugins/mstore-api/functions/index.php:490 Stack trace: #0 /plesk_content/web_content/xxx.xxx/httpdocs/wp-content/plugins/mstore-api/controllers/flutter-vendor.php(597): customProductResponse() #1 /plesk_content/web_content/xxx.xxx/httpdocs/wp-includes/class-wp-hook.php(310): FlutterVendor->prepeare_product_response() #2 /plesk_content/web_content/xxx.xxx/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /plesk_content/web_content/xxx.xxx/httpdocs/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(192): apply_filters() #4 /plesk_content/web_content/xxx.xxx/httpdocs/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(391): WC_REST_Products_V2_Controller->prepare_object_for_response() #5 /plesk_content/web_content/xxxx/plesk_content/web_content/xxx.xxx/httpdocs/wp-content/plugins/mstore-api/functions/index.php?on line?490
In the latest version of the plugin, the email and password login in the app does not work, I hope you can correct it
]]>Hello,
I am trying to add age field to register screen, and I added it to profile field in WP however I still cant post that information to the system from my app and I can show it on the app if I entered it manually to a user, any help please? I know the function the need to edit is public function register() in fluttter-user.php
here is how it looks like after editing but still not working:
public function register()
{
$json = file_get_contents('php://input');
$params = json_decode($json, TRUE);
$usernameReq = $params["username"];
$emailReq = $params["email"];
$role = $params["role"];
if (isset($role)) {
if (!in_array($role, ['subscriber', 'wcfm_vendor', 'seller', 'wcfm_delivery_boy', 'driver','owner'], true)) {
return parent::sendError("invalid_role", "Role is invalid.", 400);
}
}
$userPassReq = $params["user_pass"];
$userLoginReq = $params["user_login"];
$userEmailReq = $params["user_email"];
$userAge = $params["age"];
$username = sanitize_user($usernameReq);
$email = sanitize_email($emailReq);
if (isset($params["seconds"])) {
$seconds = (int)$params["seconds"];
} else {
$seconds = 1209600;
}
if (!validate_username($username)) {
return parent::sendError("invalid_username", "Username is invalid.", 400);
} elseif (username_exists($username)) {
return parent::sendError("existed_username", "Username already exists.", 400);
} else {
if (!is_email($email)) {
return parent::sendError("invalid_email", "E-mail address is invalid.", 400);
} elseif (email_exists($email)) {
return parent::sendError("existed_email", "E-mail address is already in use.", 400);
} else {
if (!$userPassReq) {
$params->user_pass = wp_generate_password();
}
$allowed_params = array('user_login', 'user_email', 'user_pass', 'display_name', 'user_nicename', 'user_url', 'nickname', 'first_name',
'last_name', 'description', 'rich_editing', 'user_registered', 'role', 'jabber', 'aim', 'yim',
'comment_shortcuts', 'admin_color', 'use_ssl', 'show_admin_bar_front', 'age',
);
$dataRequest = $params;
foreach ($dataRequest as $field => $value) {
if (in_array($field, $allowed_params)) {
$user[$field] = trim(sanitize_text_field($value));
}
}
$user['role'] = isset($params["role"]) ? sanitize_text_field($params["role"]) : get_option('default_role');
$user_id = wp_insert_user($user);
if (is_wp_error($user_id)) {
return parent::sendError($user_id->get_error_code(), $user_id->get_error_message(), 400);
} elseif (isset($params["phone"])) {
update_user_meta($user_id, 'billing_phone', $params["phone"]);
update_user_meta($user_id, 'registered_phone_number', $params["phone"]);
update_user_meta( $user_id, 'age', $_POST['age'] );
update_user_meta($user_id, 'age', $allowed_params["age"]);
}
}
}
wp_new_user_notification($user_id, null, 'both');
$cookie = generateCookieByUserId($user_id, $seconds);
return array(
"cookie" => $cookie,
"user_id" => $user_id,
);
}
]]>
Hi ,
I have noticed that the plugin is causing the response of the calls to be slow, it adds up to 1sec on the response
Without the plugin response time is under 1.6 seconds
With the plugin response is above 2.8 seconds
Is the anything i can do to improve this
The results above are from Mstore api plugin and woocommerce plugin no other plugin is active
Hi,
When plugin activated, a problem with sorting products on the website appear: Reproducing: chose a category > sort items by price for example > change the category > sorting is still showing by price but items are sorted by the random sorting. plugin deactivated > problem fixed. thanks
I press the button to deactivate the license code from the development site to the official one
and does not disable it !.
It keeps saying it’s hooked to the development site (tells me the domain it’s hooked to)
Either the button doesn’t work and doesn’t disable, or there will be another problem.
Can we evaluate it for a moment together?
For the sake of consideration, I have updated both wordpress and your plugin to the latest version.
Thank you
]]>Hi Team,
After added this plugin, dokan vendor after adding and editing products it won’t go back. Stuck with product editing view.
Kindly check and let me know
Awaiting your earliest response
]]>Hello,,, I installed the last version of plugin however in WOO log I got this error, and also in WP dashboard all saved products unselect categories that was selected before some product still connect with main category but lost connection to sub or sub-sub category!
Here is the error message written by Woo Logs
CRITICAL Uncaught Error: Call to a member function is_taxonomy() on string in /home/mataaaco/public_html/wp-content/plugins/mstore-api/functions/index.php:466
]]>Hello InspireUI
We made compatibility code with your plugin and WOOCS and we will be very grateful if you add it directly to your code to make life easier for your and ours customers. Thank you!
]]>Dear Sir,
We have Woocommerce and WooCommerce Currency Switcher installed on our platform
We notice that your plugin has some kind of conflict with WOOCS
The price show fine in our website but once added to cart the price is somehow increased
Best regards
]]>after update the mstore api plugin i find on arabic language during “EnableOnePageCheckout”: true, that the app send products data (name and price ) of woocommerce addons products but this update of mstore plugin have anew error when its duplicate the total amount of addons on products
i mean if product price is 10 and addons 15 the total amount after send to website should be 25 but after new update its duplicate it to 40 please modify this error on mstore plugin
Unable to set the vacation mode from fluxstore multi vendor.
It throws fatal error in wordpress.
Please help me to solve this issue.
I hope to hear from you soon.
Thank You!
2022-04-07T01:52:06+00:00 CRITICAL Uncaught TypeError: Cannot access offset of type string on string in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php:230
Stack trace:
#0 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(1141): FlutterVendor->set_vendor_vacation_option(Object(WP_REST_Request))
#1 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc/v2/flutter/...', Array, NULL)
#2 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))
#3 /home/xyz/public_html/wp-includes/rest-api.php(386): WP_REST_Server->serve_request('/wc/v2/flutter/...')
#4 /home/xyz/public_html/wp-includes/class-wp-hook.php(307): rest_api_loaded(Object(WP))
#5 /home/xyz/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#6 /home/xyz/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#7 /home/xyz/public_html/wp-includes/class-wp.php(396): do_action_ref_array('parse_request', Array)
#8 /home/xyz/public_html/wp-includes/class-wp.php(758): WP->parse_request('')
#9 /home/xyz/public_html/wp-includes/functions.php(1310): WP->main('')
#10 /home/xyz/public_html/wp-blog-header.php(16): wp()
#11 /home/xyz/public_html/index.php(17): require('/home/xyz...')
#12 {main}
thrown in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php on line 230
2022-04-07T01:52:12+00:00 CRITICAL Uncaught TypeError: Cannot access offset of type string on string in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php:230
Stack trace:
#0 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(1141): FlutterVendor->set_vendor_vacation_option(Object(WP_REST_Request))
#1 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc/v2/flutter/...', Array, NULL)
#2 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))
#3 /home/xyz/public_html/wp-includes/rest-api.php(386): WP_REST_Server->serve_request('/wc/v2/flutter/...')
#4 /home/xyz/public_html/wp-includes/class-wp-hook.php(307): rest_api_loaded(Object(WP))
#5 /home/xyz/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#6 /home/xyz/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#7 /home/xyz/public_html/wp-includes/class-wp.php(396): do_action_ref_array('parse_request', Array)
#8 /home/xyz/public_html/wp-includes/class-wp.php(758): WP->parse_request('')
#9 /home/xyz/public_html/wp-includes/functions.php(1310): WP->main('')
#10 /home/xyz/public_html/wp-blog-header.php(16): wp()
#11 /home/xyz/public_html/index.php(17): require('/home/xyz...')
#12 {main}
thrown in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php on line 230
2022-04-07T01:52:17+00:00 CRITICAL Uncaught TypeError: Cannot access offset of type string on string in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php:230
Stack trace:
#0 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(1141): FlutterVendor->set_vendor_vacation_option(Object(WP_REST_Request))
#1 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc/v2/flutter/...', Array, NULL)
#2 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))
#3 /home/xyz/public_html/wp-includes/rest-api.php(386): WP_REST_Server->serve_request('/wc/v2/flutter/...')
#4 /home/xyz/public_html/wp-includes/class-wp-hook.php(307): rest_api_loaded(Object(WP))
#5 /home/xyz/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#6 /home/xyz/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#7 /home/xyz/public_html/wp-includes/class-wp.php(396): do_action_ref_array('parse_request', Array)
#8 /home/xyz/public_html/wp-includes/class-wp.php(758): WP->parse_request('')
#9 /home/xyz/public_html/wp-includes/functions.php(1310): WP->main('')
#10 /home/xyz/public_html/wp-blog-header.php(16): wp()
#11 /home/xyz/public_html/index.php(17): require('/home/xyz...')
#12 {main}
thrown in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php on line 230
2022-04-07T01:52:24+00:00 CRITICAL Uncaught TypeError: Cannot access offset of type string on string in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php:230
Stack trace:
#0 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(1141): FlutterVendor->set_vendor_vacation_option(Object(WP_REST_Request))
#1 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(988): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc/v2/flutter/...', Array, NULL)
#2 /home/xyz/public_html/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))
#3 /home/xyz/public_html/wp-includes/rest-api.php(386): WP_REST_Server->serve_request('/wc/v2/flutter/...')
#4 /home/xyz/public_html/wp-includes/class-wp-hook.php(307): rest_api_loaded(Object(WP))
#5 /home/xyz/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#6 /home/xyz/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#7 /home/xyz/public_html/wp-includes/class-wp.php(396): do_action_ref_array('parse_request', Array)
#8 /home/xyz/public_html/wp-includes/class-wp.php(758): WP->parse_request('')
#9 /home/xyz/public_html/wp-includes/functions.php(1310): WP->main('')
#10 /home/xyz/public_html/wp-blog-header.php(16): wp()
#11 /home/xyz/public_html/index.php(17): require('/home/xyz...')
#12 {main}
thrown in /home/xyz/public_html/wp-content/plugins/mstore-api/controllers/flutter-vendor.php on line 230
]]>
i found that flutter_get_orders is not passing order meta to the app, however is there a possible work around to amend the code without effecting the future updates?
]]>Hello
I installed the MStore API fresh and when I go to the MStore Plugin (clicking left sidebar of WordPress backend) I get a “You website has a critical error” message instead of MStore Settings.
Any Idea?
Best regards
Marc
mstore api cannot be downloaded or accessed at this time.
what is the reason of this?
The sign up operation is not working
]]>Dear Customer,
This is an official announcement from InspireUI Team. Please notice that we are not using this forum as a support issue. Please help to raise the issues to our ticket support https://support.inspireui.com/help-center
If you get concerned about security, please always update the latest version as the MStore API plugin is always up-to-date, you could verify via the following trust security plugins:
1. verify the ranking via the jetpack plugin https://jetpack.com/features/security/library/mstore-api-plugin/#rank
2. Or check the report from https://wpscan.com/plugin/mstore-api
Thank you for your time!
InspireUI Team
When I install MStore API for WordPress multisite, I am getting an error “There has been a critical error on your website. Please check your site admin email inbox for instructions.”. I want to know if this plugin works for WordPress multisite?
Thanks!
]]>How can i deactivate purchase code from mstore plugin. i want to use in another site.
]]>Hi. I have 3 Fatal Errors for this plugin:
#1 Invalid argument supplied for foreach()
from
wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php:205
load_template(‘wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php’)
wp-content/plugins/mstore-api/mstore-api.php:193
mstore_init()
wp-includes/class-wp-hook.php:287
do_action(‘toplevel_page_mstore-plugin’)
wp-admin/admin.php:259
Plugin: mstore-api
#2 scandir(): (errno 2): No such file or directory
from
wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php:203
scandir()
wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php:203
load_template(‘wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php’)
wp-content/plugins/mstore-api/mstore-api.php:193
mstore_init()
wp-includes/class-wp-hook.php:287
do_action(‘toplevel_page_mstore-plugin’)
wp-admin/admin.php:259
and
#3 scandir(…/images/uploads//2000/01): failed to open dir: No such file or directory
wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php:203
scandir()
wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php:203
load_template(‘wp-content/plugins/mstore-api/templates/mstore-api-admin-page.php’)
wp-content/plugins/mstore-api/mstore-api.php:193
mstore_init()
wp-includes/class-wp-hook.php:287
do_action(‘toplevel_page_mstore-plugin’)
wp-admin/admin.php:259