Skip to content

Payment logos inaccessible after moving them to pub/media/lyra/images #50

Description

@OLTC-fperrin

Hello,

While updating the module to the latest version 2.16.2 I noticed the logos were showing a 404 error.
After a little inverstigation I realised the folder is not part of the allowed_resources used by pub/get.php.

Lyranetwork_Lyra 2.16+ stores payment logos in pub/media/lyra/images but does not whitelist the folder, so pub/get.php returns 404 whenever nginx cannot serve the file directly.

You would need to add the following section to your etc/config.xml to allow magento to reach these images without changing the HTTP server config or the file permissions.

<system>
	<media_storage_configuration>
		<allowed_resources>
			<lyra_images_folder>lyra</lyra_images_folder>
		</allowed_resources>
	</media_storage_configuration>
</system>

I use Lyra in my case but I've checked and the same is true for the others (PayZen, SystemPay, etc...)

Regards,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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