Closed samy closed 8 months ago
It seems Jetpack debugguer encountered problems to contact the site because of a agressive mod_security strategy returning HTTP 429 errors if the connection rate was too high.
I fixed this setting and the debugger works now.
But it doesn't fix the problem for WooCommerce iOS app.
@shiki I think your team is the one working on products (please help ping the right people if not 🙏 ) pinging you so that you're aware of this issue.
Also, I've tried the steps above (about 5 photos - screenshots, and actual photos) and wasn't able to reproduce the issue on my test device, all the photos uploaded without issue.
Thank you for sharing the details about the error. When the app uploads images, it expects the site to respond with details about the successfully uploaded images. The errors in the app logs indicate that the app received an unexpected response (missing the expected data) from your site.
This fits with the PHP error described in the issue, where the function get_id()
did not work. Based on where that occurred it looks like your site wasn't able to fetch the ID of the product where the images were being uploaded. This kind of error is usually caused by a plugin or your site's theme modifying related code on your site so it doesn't work as expected. In this case, it's possible that the upload itself works but your site sends a response that looks like a failure to the app, so the app thinks the upload has failed (and if there are multiple images being uploaded, it cancels the upload).
The best way to resolve this for your store is to test for theme or plugin conflicts. If you discover the issue is caused by a conflict with another plugin, we recommend contacting the plugin developer to let them know or we can take a look to see if there's a way the app can work around that conflict. Hope this helps!
Describe the bug If I select more than an image when adding images to a simple product, the uploads fails for the images after the first image (the first image uploads but not the others).
A popin says the application is unable to import my images.
The number of occurences of the popin isn't related to the image number (if I upload 3 or 8 images at the same time, I have the popin twice, for example)
iOS application error logs
Additional information A PHP error occurs in relation of the image upload
Call to a member function get_id() on bool in /home/samyrabih/lululalucette.com/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:656
To Reproduce Steps to reproduce the behavior:
Expected behavior Upload images must work for all the selected images
Isolating the problem (mark completed items with an [x]):
Mobile Environment Please include:
WordPress Environment