• Resolved Jérémy PETERSEN

    (@jerempetersen)


    Hi !

    First thanks for your plugin, it’s great and it works well on my websites !

    BUT, I’m facing a new issue since I’m now using Scaleway bucket to store my medias (“upload” folder) with S3 Uploads plugin (https://github.com/humanmade/S3-Uploads). The invoice is not generated and if I activate debug infos I get the following error message :

    Warning: require(): s3:// wrapper is disabled in the server configuration by allow_url_include=0 in /srv/app/wordpress/vino-store/web/app/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FontMetrics.php on line 140

    Warning: require(s3://wp-vino-store/uploads/wpo_wcpdf/fonts/dompdf_font_family_cache.php): failed to open stream: no suitable wrapper could be found in /srv/app/wordpress/vino-store/web/app/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FontMetrics.php on line 140

    Fatal error: require(): Failed opening required ‘s3://wp-vino-store/uploads/wpo_wcpdf/fonts/dompdf_font_family_cache.php’ (include_path=’.:/usr/share/php’) in /srv/app/wordpress/vino-store/web/app/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FontMetrics.php on line 140

    Une erreur critique est survenue sur votre site.

    En apprendre plus sur le débogage de WordPress.

    How can I solve it ?

    Thanks in advance !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Jeremy,
    Our plugin uses the uploads folder (the only folder that is universally writable by plugins) as a temporary folder for font files and PDF attachments. You will either need to exclude the wpo_wcpdf/ folder from the S3 Uploads plugin (contact the developers if they allow exclusion of specific folders) or set the PDF Invoice plugin to use a different (writeable) folder for the temporary files, using the wpo_wcpdf_tmp_path filter.
    As a first step, could you try this? https://www.ads-software.com/support/topic/cdn-s3-conflict/#post-11516844

    If that doesn’t work you could also use the following code snippet (make sure the /path/to/writable/folder is the absolute path (so not relative to your site root but to the server path).

    
    add_filter( 'wpo_wcpdf_tmp_path', function( $tmp_base ) {
    	$tmp_base = '/path/to/writable/folder';
    	return $tmp_base;
    } );
    

    Let us know what works for you!

    Thread Starter Jérémy PETERSEN

    (@jerempetersen)

    Hi Ewout,

    Wonderful, the link you gave me solved the issue, it’s perfect !

    Thanks for your help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with S3 Uploads (Scaleway bucket)’ is closed to new replies.