Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Warning: failed to open dir...


Go to End


2 Posts   2162 Views

Avatar
Sophie

Community Member, 33 Posts

10 May 2009 at 12:09pm

I've recently created a site with Silver Stripe. When I first load the site in my browser, I receive the following warning:

Warning: scandir(/home/content/o/n/l/onlygoodnews/html/themes/Page.ss) [function.scandir]: failed to open dir: Not a directory in /home/content/o/n/l/onlygoodnews/html/sapphire/core/ManifestBuilder.php on line 272

Warning: scandir() [function.scandir]: (errno 20): Not a directory in /home/content/o/n/l/onlygoodnews/html/sapphire/core/ManifestBuilder.php on line 272

I have no idea what this means! I've worked with SS a number of times and have never run into this. I've looked at the ManifestBuilder.php and this is line 272 referenced above.

$items = scandir("$baseDir/$folder");

If you refresh the page, the error message goes away and site works fine. The link to the site is [url=http://www.thegoodnews-paper.com]http://www.thegoodnews-paper.com

I would really appreciate some guidance here. Thank you!

Sophie

Avatar
Sophie

Community Member, 33 Posts

10 May 2009 at 12:25pm

I figured this out. When FTPing files over I ended up dumping a file where it shouldn't be. Deleted that file and all is well.