Join GitHub today
Assets tag 'path' parameter throwing error when used in Statamic 2.5 #1206
When using the assets tag to retrieve assets from the Main Assets container, I am specifying a path parameter like so:
I receive the following error:
Whoops, looks like something went wrong.
I did some digging into the Statamic source and found that Statamic\Addons\Assets\AssetsTag.php makes a call in the index() method to AssetContainer::wherePath($path) on line 58.
Upon looking at Statamic\API\AssetContainer.php the wherePath($path) method appears like so:
It also appears to trigger the same error with the if or container parameter.
If I get more time, I'll take a look and see if I can do some further research and possibly do a PR.
Steps to reproduce
Operating system: macOS Sierra
Web server: Laravel Valet
PHP version: 7.1
Statamic version: 2.5.1
Updated from an older Statamic or fresh install: Minty fresh
List of installed addons: None