• maivanco

    (@maivanco)


    Hi everyone,

    My website is built on the Altis platform. This platform prevents writing to system files and uses AWS S3 for uploads. When I use WooCommerce Product Import, the system shows this error. I’m wondering if there is a solution to fix this issue.

    Any help would be appreciated!

    Image online link: https://postimg.cc/mPCBg6nC

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mahfuzur Rahman(woo-hc)

    (@mahfuzurwp)

    Hi @maivanco,

    Thank you for reaching out! The error you’re seeing typically occurs when the WordPress filesystem can’t access the server’s file system, which might be caused by Altis’ restrictions on writing to system files.

    Since your website is hosted on AWS S3, one potential solution is to configure WordPress to use the S3 bucket as the filesystem for uploads. You can achieve this by using a plugin like WP Offload Media to manage media uploads directly to S3.

    Additionally, you may want to check with the Altis platform’s support for any specific configuration settings that need to be adjusted to allow WooCommerce to function properly with AWS S3.

    I hope this helps, and feel free to reach out if you have any more questions!

    Thread Starter maivanco

    (@maivanco)

    Hi @mahfuzurwp ,
    I’ve had a deep dive into this as I was able to reproduce the problem locally. There appears to be a bug in WooCommerce in that it doesn’t recognise a legitimate s3:// file path.
    In the function?\WC_Product_CSV_Importer_Controller::file_is_in_directory?the code calls?new URL( $filepath)?with the uploaded csv.
    This breaks a valid S3 path like?s3://s3-altis-dev/uploads/2025/02/product-sample_products-cug03qahbw.csv?by changing it to?file://s3/s3-altis-dev/uploads/2025/02/product-sample_products-cug03qahbw.csv

    Can the team consider fixing this error in Product Import to support S3?

    Thank you & regards,
    Michael

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for investigating the issue in detail. To ensure this gets looked into, I would recommend creating a ticket on our GitHub repository so our developers can review and provide further assistance. You can submit the issue here: WooCommerce GitHub Issues.

    This will allow the team to investigate and work on a fix for this issue.
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.