saabclubna
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Customer meta_data no longer readable by my API userForum: Plugins
In reply to: [WooCommerce] Customer meta_data no longer readable by my API userI found the proximate cause:
https://github.com/woocommerce/woocommerce/pull/36408
but very much not the rationale. I agree with commenter rajeevkarora that this makes things less secure, not more.
Forum: Plugins
In reply to: [WooCommerce] Customer meta_data no longer readable by my API userYour second image shows the returned results for basic User fields and WC Customer fields like billing but does not go on to show what it returns for meta_data. I tried adding the manage_woocommerce capability (with User Role Editor), and then the Shop Manager role (that also adds view_woocommerce_reports). In both cases meta_data still comes back empty until I add back Administrator. Again, this used to work. I changed nothing, no settings, no roles, no capabilities, no plugins, only upgraded WC and WP, and it broke.
- This reply was modified 3 years, 2 months ago by saabclubna.
Solved! The field member_last_name had to be present or it wouldn’t take the $full_membership_import branch. I had last_name, billing_last_name, and shipping_last_name, but not member_last_name. Line 142 of addons/woocommerce-membership.php.
I do have dates in that format, with no times. They are still ignored.
This may be because you have both php 7.0 and 7.3 enabled for Apache, so WordPress isn’t seeing the later PHP and the curl module it expects. I was able to fix it with this (on Debian stable/buster):
% sudo a2enmod php7.3 && sudo a2dismod php7.0 && sudo systemctl restart apache2