elementor / wp2static-addon-s3

S3 deployment Add-on for WP2Static
The Unlicense
35 stars 23 forks source link

Absolute file paths are passed to WP2Static\DeployCache\fileisCached, but it expects relative paths #12

Closed john-shaffer closed 4 years ago

john-shaffer commented 4 years ago

Since https://github.com/WP2Static/wp2static/commit/72108b7c4dcfcdcab239aabf2896d01096699b65 (and still the case in https://github.com/WP2Static/wp2static/commit/8aedfcc1f6ce6d4382ff7f5e6768bb92ca250bfb), I'm seeing messages like

Warning: file_get_contents(/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/wp2static-processed-site/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/wp2static-processed-site/wp-content/uploads/2020/03/logo-full-primary-400x84-1-150x84.png): failed to open stream: No such file or directory in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp2static/src/DeployCache.php on line 65

due to this, where the file path is doubled.