Static Resources URL is wrong for S3 Media Sources

I am getting the following error when using an S3 media source for static resources:

[2022-02-08 09:26:04] (ERROR @ /www/core/model/modx/modstaticresource.class.php : 145) modStaticResource->getFileContent() for resource 7164: Could not load content from file /www/https:/mplawebbucket.s3.amazonaws.com/newsletter.pdf

The URL should be:

https://mplawebbucket.s3.amazonaws.com/newsletter.pdf

What is causing the URL to be written incorrectly, it is showing up correctly in the static resource field when I edit the resource.

System setting for resource_static_path is set to {base_path}

I have installed the latest S3 plugin from: https://github.com/modxcms/aws-s3-media-source

Solution identified. Static Resources can only be on the local host. Darn!

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.