• I enabled the Pantheon Compat plugin on a Pantheon.io-hosted site. It does upload files to /uploads/private/. However, I’ve just confirmed with Pantheon support that the contents every folder named /private/ in their setup will not be accessible to the browser. It will return a 403 error. I discovered this only after I spent several hours setting up the plugin only to create a product and find the product promo images such as book cover art weren’t appearing on the product page. When I accessed the product image URL directly, I got a 403 Forbidden error.

    The problem code is line 142 of edd-pantheon-compat.php

    $upload['subdir'] = '/private/edd' . $upload['subdir'];

    This seems to be the path for ALL files uploaded when creating a new product, including the image of the product (such as an ebook cover representation) as well as the product itself. While that’s good for the permissioned files being sold, it’s bad for any product promo images. The workaround seems to be to upload product promo images via the normal media library, then use the “Download Image” widget in the product post type editor to select it from the media library.

    The solution seems to be to code the main plugin so that the “Download Image” widget targets and sources images from the main Media Library path (/uploads/mm/yyyy/etc.) and not /private/edd/etc.

    Please fix this as soon as possible.

    Thanks.

Viewing 1 replies (of 1 total)
  • Hi @rcwatson

    Thanks for detailed response.

    It looks like that plugin does not have any issue. Pantheon Compat plugin is changing the path of WordPress global upload directory.

    Pantheon Compat plugin is restricting it because of ‘private’ folder.

    When we upload any image to EDD then it goes to /uploads/edd/YYYY/MM/ folder. This folder always have index.php file in it so directoryy listing will be via URL.

Viewing 1 replies (of 1 total)
  • The topic ‘Pantheon helper plugin not working correctly with main plugin’ is closed to new replies.