Skip to content

Unable to read file from location issue #171

@PhilippeGauthier

Description

@PhilippeGauthier

This is probably something on my end but I'm getting an error where if I turn SAVE_CACHED_IMAGES to false I get the following error:

Unable to read file from location: containers/assets/img/...file.jpg.

I ran php please responsive:regenerate previously and can confirm that the file that's throwing the error does exist. I'm wondering if the addon should be referencing img/containers/assets/img/...file.jpg instead? In assets.php I've got 'cache_path' => public_path('img'), so I'd think that would resolve that?

Thanks for your help!

final class UnableToReadFile extends RuntimeException implements FilesystemOperationFailed

{

    /**

     * @var string

     */

    private $location = '';



    /**

     * @var string

     */

    private $reason = '';



    public static function fromLocation(string $location, string $reason = '', Throwable $previous = null): UnableToReadFile

    {

        $e = new static(rtrim("Unable to read file from location: {$location}. {$reason}"), 0, $previous);

        $e->location = $location;

        $e->reason = $reason;



        return $e;

    }



    public function operation(): string

    {

        return FilesystemOperationFailed::OPERATION_READ;

    }



    public function reason(): string

    {

        return $this->reason;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions