Images not syncing across to WooCommerce
-
We have created dozens of new products via the Square system however we sync across to WooCommerce, all the details come across with the exception of images. Out of all the uploads, only a couple of images have come across.
Looking in the WOOCOMMERCE > SETTINGS > SQUARE > UPDATE section, I can see this message numerous times.
Image not updated from Square for product #5358. File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini file or by post_max_size being defined as smaller than upload_max_filesize in php.ini..
What does this mean and do you have some advice on fixing the issue?
-
Hey @rblazer74 ,
There are 2 typically causes here.
- The image file for the product in Square might not be correctly uploaded or is corrupted, resulting in no actual image data being transferred to WooCommerce, OR
- There may be configuration settings in your PHP settings (
php.ini
) that are limiting file uploads:
upload_max_filesize
: This setting controls the maximum file size that can be uploaded. If your images exceed this limit, they won’t be uploaded.post_max_size
: This setting controls the maximum size of post data that can be sent. It should be larger thanupload_max_filesize
to accommodate additional data being sent with the file uploads.
Can you please share a copy of your sites System Status report so that we can take a closer look at your sites current environment.
You can find this via?WooCommerce?→?Status. Select?
Get system report
?and then?Copy for Support
. Once you’ve got this, please paste it in your response here.Cheers!
Thanks for looking at this:
WordPress Environment<br><br>WordPress address (URL): https://mammamiatully.com.au<br>Site address (URL): https://mammamiatully.com.au<br>WC Version: 9.3.3<br>Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.<br>Action Scheduler Version: ? 3.8.1<br>Log Directory Writable: ?<br>WP Version: 6.6.2<br>WP Multisite: –<br>WP Memory Limit: 1 GB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_AU<br>External object cache: – Server Environment<br><br>Server Info: LiteSpeed<br>PHP Version: 8.0.30<br>PHP Post Max Size: 512 MB<br>PHP Time Limit: 30<br>PHP Max Input Vars: 1000<br>cURL Version: 7.87.0<br>OpenSSL/1.1.1w<br><br>SUHOSIN Installed: –<br>MySQL Version: 10.5.24-MariaDB-cll-lve<br>Max Upload Size: 512 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 9.3.3<br>WC Database Prefix: wpyh_<br>Total Database Size: 48.26MB<br>Database Data Size: 27.01MB<br>Database Index Size: 21.25MB<br>wpyh_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wpyh_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wpyh_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_actionscheduler_actions: Data: 2.52MB + Index: 3.11MB + Engine InnoDB<br>wpyh_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_actionscheduler_logs: Data: 2.52MB + Index: 1.98MB + Engine InnoDB<br>wpyh_aws_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_aws_index: Data: 3.30MB + Index: 2.53MB + Engine InnoDB<br>wpyh_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>wpyh_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_litespeed_avatar: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_litespeed_img_optm: Data: 0.09MB + Index: 0.03MB + Engine InnoDB<br>wpyh_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpyh_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_litespeed_url_file: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>wpyh_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_nextend2_section_storage: Data: 0.06MB + Index: 0.06MB + Engine InnoDB<br>wpyh_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_nextend2_smartslider3_sliders: Data: 0.06MB + Index: 0.03MB + Engine InnoDB<br>wpyh_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_nextend2_smartslider3_slides: Data: 0.09MB + Index: 0.11MB + Engine InnoDB<br>wpyh_options: Data: 4.31MB + Index: 0.25MB + Engine InnoDB<br>wpyh_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_postmeta: Data: 8.52MB + Index: 9.03MB + Engine InnoDB<br>wpyh_posts: Data: 3.52MB + Index: 1.05MB + Engine InnoDB<br>wpyh_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB<br>wpyh_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_term_relationships: Data: 0.16MB + Index: 0.09MB + Engine InnoDB<br>wpyh_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpyh_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB<br>wpyh_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wpyh_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wpyh_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wpyh_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpyh_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wpyh_wc_product_attributes_lookup: Data: 0.09MB + Index: 0.08MB + Engine InnoDB<br>wpyh_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_wc_product_meta_lookup: Data: 0.52MB + Index: 1.13MB + Engine InnoDB<br>wpyh_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wpyh_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_wpforms_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>wpyh_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wpyh_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wpyh_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts<br><br>attachment: 610<br>nav_menu_item: 136<br>page: 18<br>post: 3<br>product: 506<br>product_variation: 3936<br>revision: 162<br>wpcf7_contact_form: 2<br>wp_navigation: 1 Security<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (14)<br><br>Advanced Woo Search: by ILLID – 3.17<br>Afterpay Gateway for WooCommerce: by Afterpay – 3.8.6<br>Australia Post WooCommerce Extension: by WPRuby – 1.10.8<br>Contact Form 7: by Takayuki Miyoshi – 5.9.8<br>Disable Bloat for WordPress & WooCommerce: by Disable Bloat – 3.4.9<br>Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 3.3.1<br>LiteSpeed Cache: by LiteSpeed Technologies – 6.4.1<br>Maintenance: by WebFactory Ltd – 4.13<br>PW WooCommerce Gift Cards: by Pimwick<br>LLC – 2.3<br><br>Smart Slider 3: by Nextend – 3.5.1.23<br>Quantity Plus Minus Button for WooCommerce by CodeAstrology: by CodeAstrology Team – 1.2.2<br>WooCommerce Square: by WooCommerce – 4.8.1<br>WooCommerce: by Automattic – 9.3.3<br>WP Mail SMTP: by WP Mail SMTP – 4.1.1 Inactive Plugins (4)<br><br>Additional Variation Images Gallery for WooCommerce: by Emran Ahmed – 1.3.25<br>Discount Rules Core: by Flycart – 2.6.6<br>WPForms Lite: by WPForms – 1.9.1.3<br>XT Floating Cart for WooCommerce: by XplodedThemes – 2.8.1 Settings<br><br>Legacy API Enabled: –<br>Force SSL: –<br>Currency: AUD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>pw gift card (pw-gift-card)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature enabled: ?<br>Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore<br>HPOS data sync enabled: – Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 149 KB WC Pages<br><br>Shop base: #10 - /shop-all/<br>Cart: #117 - /cart/ - Contains the woocommerce/cart block<br>Checkout: #118 - /checkout/ - Contains the woocommerce/checkout block<br>My account: #119 - /my-account/<br>Terms and conditions: ? Page not set Theme<br><br>Name: TCWD Framework 2024<br>Version: 1.0<br>Author URL: https://www.tropicalcoastwebdesign.com.au<br>Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build<br>personally we recommend using a child theme. See: How to create a child theme<br><br>WooCommerce Support: ? Templates<br><br>Archive Template: Your theme has a woocommerce.php file. You will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.<br>Overrides: – Square<br><br>Environment: Production<br>Tokenization Enabled: –<br>Debug Mode: Off Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>pattern-toolkit-full-composability<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>printful<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br><br>Disabled Features: experimental-blocks<br>minified-js<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br>blueprint<br>reactify-classic-payments-settings<br><br>Daily Cron: ? Next scheduled: 2024-10-15 05:59:06 +10:00<br>Options: ?<br>Notes: 55<br>Onboarding: - Action Scheduler<br><br>Complete: 9,856<br>Oldest: 2024-09-15 06:19:16 +1000<br>Newest: 2024-10-15 09:34:08 +1000<br><br>Failed: 117<br>Oldest: 2024-06-24 09:55:05 +1000<br>Newest: 2024-10-02 22:57:38 +1000<br><br>Pending: 5<br>Oldest: 2024-10-15 09:48:23 +1000<br>Newest: 2024-10-17 12:23:44 +1000 Status report information<br><br>Generated at: 2024-10-15 09:37:20 +10:00<br>
Hi @rblazer74 ,
Thanks for sending over your System Status Report!
Based on what I see, your settings for ‘PHP Max Upload Size’ and ‘PHP Post Max Size’ are both 512 MB. This is generally okay but we would suggest setting
post_max_size
larger thanupload_max_filesize
. Since your images aren’t consistently syncing, it’s possible that the problem lies with the image files in Square or an issue with the sync process.Image not updated from Square for product #5358. File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini file or by post_max_size being defined as smaller than upload_max_filesize in php.ini..
Just going back to the error message you provided, it suggests that the image file associated with product #5358 in Square might not have any data (empty file), or the image might be smaller than what’s expected.
To address this, verify the image for product #5358 in your Square account. Make sure the image is not empty or damaged. If necessary, re-upload a good-quality image that is not too small.
I’d also wanted to confirm if this issue happening for all products or only for product #5358?
Looking forward to getting this sorted out.
Thanks Reynier.
The problem isn’t limited to one product. We have synced over 100 products and the product data comes across however only one or two images have come across with their relevant product.
Also, is adjusting the
post_max_size
something I can do via WordPress or is it a cPanel adjustment?- This reply was modified 1 month ago by rblazer74.
I have adjusted the post_max_size so it is larger however sync is now failing completely. Help!
Hello rblazer74,
Thank you for your reply.
Do you have any logs (WooCommerce > System Status > Logs) related to the WooCommerce Square plugin? If so, please share them with me so I can take a closer look.
Also, could you provide a screenshot of your WooCommerce Square settings page?
|I want to ensure there are no misconfigurations that could be causing the sync to fail.Looking forward to your response. ??
- You must be logged in to reply to this topic.