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.

Installing SilverStripe /

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

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

Warning: failed to open dir...

Go to End

2 Posts   1723 Views


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/ [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=]

I would really appreciate some guidance here. Thank you!



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.