woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.42k stars 10.77k forks source link

Import products ERROR > "File path provided for import is invalid" #52860

Open pauloventurab opened 5 hours ago

pauloventurab commented 5 hours ago

Prerequisites

Describe the bug

Describe the bug

Hi, I just move to another hosting and I have issues using the Import products feature. Tried to import the sample products from a csv file and after the mapping option (all columns match) it's saying "File path provided for import is invalid".

The error started when I tested WooCommerce version 9.4.0 and Wordpress 6.7.

I've upgraded to 9.5.0-beta.1, I've downgraded to 9.3.3 and also 9.3.2, and in the end, I've downgraded Wordpress to 6.6.2, where my stack is and woocomerce on 9.3.3 (same as my old hosting wordpress/woocomerce configuration). But I still have the issue.

Image Image

If I did any mistake I would love to take any kind of feedback from you.

Thank you

Expected behavior

The csv will import properly.

Actual behavior

It's saying "File path provided for import is invalid".

Steps to reproduce

Go to Products menu from WordPress admin menu Click on Import option Select the a csv file. Click on the Continue button.

WordPress Environment

System Status Report ``` ### WordPress Environment ### WordPress address (URL): [Redacted] Site address (URL): [Redacted] WC Version: 9.3.3 Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site. Action Scheduler Version: ✔ 3.8.1 Log Directory Writable: ✔ WP Version: ❌ 6.6.2 . Há uma nova versão do WordPress disponível (6.7) WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: ✔ Language: pt_PT External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.33 PHP Post Max Size: 2 GB PHP Time Limit: 360 PHP Max Input Vars: 5000 cURL Version: 7.76.1 OpenSSL/3.0.7 SUHOSIN Installed: – MySQL Version: 5.5.5-10.11.9-MariaDB Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### [REDACTED] ### Post Type Counts ### attachment: 310 bwp_footer: 5 bwp_megamenu: 4 customize_changeset: 7 elementor_library: 4 nav_menu_item: 8 ourteam: 4 page: 31 post: 10 product: 6 revision: 129 shop_coupon: 1 shop_order: 21 testimonial: 7 wp_font_face: 33 wp_font_family: 12 wp_global_styles: 4 wp_navigation: 1 wpcf7_contact_form: 9 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (21) ### Redux Framework: por Team Redux – 4.5.0 Akismet Anti-spam: Spam Protection: por Automattic - Anti-spam Team – 5.3.3 All-in-One WP Migration: por ServMask – 7.87 Backuply: por Softaculous – 1.3.8 Contact Form 7: por Takayuki Miyoshi – 6.0 Elementor: por Elementor.com – 3.25.6 FileOrganizer: por Softaculous Team – 1.1.3 GoSMTP: por Softaculous Team – 1.1.0 Hello Dolly: por Matt Mullenweg – 1.7.2 LiteSpeed Cache: por LiteSpeed Technologies – 6.5.2 Loco Translate: por Tim Whitlock – 2.6.11 Loginizer: por Softaculous – 1.9.3 MC4WP: Mailchimp for WordPress: por ibericode – 4.9.19 Slider Revolution: por ThemePunch – 6.7.18 Variation Swatches for WooCommerce: por AovUp – 2.2.2 WPC Smart Compare for WooCommerce: por WPClever – 6.3.0 WPC Smart Wishlist for WooCommerce: por WPClever – 4.9.4 WooPayments: por WooCommerce – 8.5.0 WooCommerce: por Automattic – 9.3.3 (update to version 9.4.1 is available) WP Downgrade | Specific Core Version: por Reisetiger – 1.2.6 Núcleo do Wpbingo: por TungHV – 1.0 ### Inactive Plugins (0) ### ### Must Use Plugins (1) ### Elementor Safe Mode: por Elementor.com – 1.0.0 ### Settings ### Legacy API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ✔ HPOS feature enabled: ✔ Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 dias Level threshold: – Log directory size: 611 KB ### WC Pages ### Página da Loja: #10 - /shop/ Carrinho: #11 - /cart/ - Contains the woocommerce/cart block Finalizar compras: ❌ A visibilidade da página deve ser pública A minha conta: ❌ A visibilidade da página deve ser pública Termos e condições: ❌ Página não definida ### Theme ### Name: Darion Version: 1.0.5 Author URL: http://wpbingosite.com/ Child Theme: ❌ – Se estiver a modificar o tema do WooCommerce ou um tema principal que não construiu pessoalmente recomendamos o uso de um tema dependente. Veja: Como criar um tema dependente WooCommerce Support: ✔ ### Templates ### Overrides: darion/woocommerce/archive-product.php darion/woocommerce/cart/cart-shipping.php darion/woocommerce/cart/cart-totals.php darion/woocommerce/cart/cart.php darion/woocommerce/cart/cross-sells.php darion/woocommerce/cart/mini-cart.php darion/woocommerce/checkout/form-checkout.php darion/woocommerce/checkout/review-order.php darion/woocommerce/content-product.php darion/woocommerce/content-single-product.php darion/woocommerce/loop/add-to-cart.php darion/woocommerce/loop/loop-end.php darion/woocommerce/loop/loop-start.php darion/woocommerce/loop/no-products-found.php darion/woocommerce/loop/orderby.php darion/woocommerce/loop/pagination.php darion/woocommerce/loop/rating.php darion/woocommerce/loop/result-count.php darion/woocommerce/loop/sale-flash.php darion/woocommerce/myaccount/form-login.php darion/woocommerce/order/form-tracking.php darion/woocommerce/single-product/add-to-cart/external.php darion/woocommerce/single-product/add-to-cart/grouped.php darion/woocommerce/single-product/add-to-cart/simple.php darion/woocommerce/single-product/add-to-cart/variable.php darion/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php darion/woocommerce/single-product/price.php darion/woocommerce/single-product/product-image.php darion/woocommerce/single-product/product-thumbnails.php darion/woocommerce/single-product/related.php darion/woocommerce/single-product/review.php darion/woocommerce/single-product/sale-flash.php darion/woocommerce/single-product/short-description.php darion/woocommerce/single-product/tabs/additional-information.php darion/woocommerce/single-product/tabs/description.php darion/woocommerce/single-product/tabs/tabs.php darion/woocommerce/single-product/title.php darion/woocommerce/single-product/up-sells.php darion/woocommerce/single-product-reviews.php darion/woocommerce/single-product.php darion/woocommerce/content-product_cat.php ### WooPayments ### Version: 8.5.0 Connected to WPCOM: ❌ No Logging: Disabled ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks pattern-toolkit-full-composability product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions printful shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store Disabled Features: experimental-blocks minified-js product-pre-publish-modal settings async-product-editor-category-field product-editor-template-system blueprint reactify-classic-payments-settings Daily Cron: ✔ Next scheduled: 2024-10-03 20:00:44 +01:00 Options: ✔ Notes: 62 Onboarding: completed ### Action Scheduler ### Concluída: 390 Oldest: 2024-10-14 17:19:39 +0000 Newest: 2024-11-14 11:38:42 +0000 Pendente: 169 Oldest: 2024-11-14 11:39:42 +0000 Newest: 2024-11-15 10:34:20 +0000 Falhada: 3 Oldest: 2024-09-25 20:03:27 +0000 Newest: 2024-10-14 17:26:18 +0000 ### Status report information ### Generated at: 2024-11-15 07:47:50 +01:00 ```

Isolating the problem

Konamiman commented 4 hours ago

I'm unable to reproduce this using WordPress 6.7 and WooCommerce 9.5 beta, tried both locally and on a Jurassic Ninja site. I see from your screenshots that your site is in Portuguese, I switched my test site to that language just in case but that didn't help, the issue still doesn't appear.

Would you be able to provide me the credentials of a testing/staging site where the issue appears, so I can try and debug? You can send the details to nestor.soriano@automattic.com. Thank you!

pauloventurab commented 1 hour ago

I've send to your email the credentials!

Thanks