Closed artmem closed 7 years ago
Confirmed, looking into it.
This is because the target folder doesn't physically exist. Actually, this is a Craft bug - IOHelper::getFolderContents
returns false
, but this function assumes its always an array
. @takobell @brandonkelly.
+1 I'm experiencing the exact same error as OP.
Can you confirm this is because the target folder doesn't physically exist?
Can confirm.
The selected Asset Source did not point to a valid folder. Creating the folder resolved the issue.
Would you agree this is a Craft issue?
Dunno... I didn't dig deep enough to see the root of the problem.
Hah ok. To me the stacktrace makes this clear ;-) I will inform the Craft team. Dunno if @takobell or @brandonkelly likes me tagging them here...
Lol, sounds good to me. Thanks!
In my case, the there was a typo in my asset folder path setting, and since it was a fresh install, I didn't check it before running import. Fixing the path resolved the issue. Seems like Craft should throw an error rather than fail.
Yeah, Craft issue. Should have this one sorted by the next release.
Fixed in 2.6.2940
I'm getting a php error after setting up my import and clicking next. It doesn't matter what type I choose, I get the same error: