craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
287 stars 139 forks source link

Support Craft/Yii Alias in Feed URL #325

Closed craftedsystems closed 6 years ago

craftedsystems commented 6 years ago

Description

I would like to use Craft/Yii aliases like @storage as part of the Feed URL. For instance @storage/imports/data.json does not seem to work as expected.

engram-design commented 6 years ago

@craftedsystems What version are you on? It currently does support aliases - for instance @web/file.json

craftedsystems commented 6 years ago

I am using 3.0.0-beta.14 and I get this error when using the @storage alias.

Unable to reach @storage/imports/press.json. Message: sha1_file(/assets/cp/cp.js): failed to open stream: No such file or directory
engram-design commented 6 years ago

I've just tested this on my install and works a treat. That error message doesn't seem to be related to Feed Me - what is /assets/cp/cp.js? Not sure where sha1_file(/assets/cp/cp.js) is coming from?

craftedsystems commented 6 years ago

Problem solved. When deactivating these two plugins, Feed Me has no issues.

Maybe you find some time to look into it because these plugins are quite useful.

engram-design commented 6 years ago

Hmmm, can't seem to reproduce this I'm afraid...

craftedsystems commented 6 years ago

Thx for trying

engram-design commented 6 years ago

Closing as I couldn't replicate. Happy to rope in @lindseydiloreto if its an issue, but chalking this up to environment issues.

lindseydiloreto commented 6 years ago

@engram-design Thanks for the ping.

@craftedsystems Interesting... sha1_file is definitely something that both CP CSS & CP JS use. I'm happy to take a look into the issue, would you mind opening a ticket on the craft-cpjs repo?