This project is read-only.


Many empty folders under blogs\files\-1


May be an issue (?)

On my DNN blog installation I've a lot (more than 30,000!) of empty folders (with a progressive number) under the path\files-1

I attach a screenshot

file attachments

Closed Dec 3, 2015 at 5:10 PM by gigocabrera
We moved to GitHub

Please follow this link to post issues or to find the latest releases:


gigocabrera wrote Mar 24, 2015 at 4:33 AM

skiank, the folders under\files-1 should match the BlogID from your database. In my case, I have 2 Blogs with BlogID 3 and 5, so I only have 2 folders.

Please run the following statement to determine how many BlogIDs you have. Then you'll be able to delete ALL folders except for the BlogIDs found in your DB
SELECT BlogID, Title FROM [your_db_name_here].[dbo].[Blog_Blogs];

skiank wrote Mar 24, 2015 at 3:26 PM

I've 5 blogs. The query return correctly 5 BlogID (12,17,20,22 and 23)

But under\files I've more folders (29 directory) other than the 5 correct.

I try to delete the folder with a number different from the 5 blogID

skiank wrote Mar 25, 2015 at 9:25 AM

After deleting yesterday the empty folders (\files-1 first of all) today I've the some problem.

The blog\files-1 (and a lot of other folders) folders with many empty subfolders is yet present!

Something in the module recreate this folder!?

gigocabrera wrote Mar 25, 2015 at 1:00 PM

I'm flagging this issue as Active again.

gigocabrera wrote Mar 25, 2015 at 1:06 PM

Are the folders back immediately after you deleted them? Or Are they back overnight (maybe after a scheduled process kicks in)?

Please try the following early in the morning if possible, and DO NOT add, edit or delete posts while performing this test:
1) Delete the empty folders (all of them except for the 5 correct ones)
2) In Host Settings, clear DNN cache and restart application
3) Check the physical location to see if the folders are back
a) If they are back immediately, let me know
b) if they are not back immediately, check your site again in a few hours
I'm trying to determine when are the folders created and if this is related to a scheduled task or something. In the meantime I will be checking code to get familiar with that functionality and I'll keep you posted on my finding.

gigocabrera wrote Mar 25, 2015 at 1:08 PM


Did you upgrade from an earlier version of the DNN Blog Module? Maybe version 5?

skiank wrote Mar 25, 2015 at 2:59 PM

Yes! From 5

skiank wrote Mar 25, 2015 at 3:23 PM

:olders are back after few hours
Folders deleted this morning at 09:35am my local time. The "-1" folder came back after 2 miuntes at 09:37am...
Under -1 folder 7 more empty folders appear between 09:37am and 11:37am (two hours)

Under a folder of a right blog ID many empty subfolders (about 40) appear from 09:37am and now. And are increasing