ElkArte Community

Elk Development => Bug Reports => Topic started by: ahrasis on February 14, 2017, 11:38:46 pm

Title: Directory name must not be empty
Post by: ahrasis on February 14, 2017, 11:38:46 pm
Exception: Directory name must not be empty.
https://elkarte11.sch.my/index.php?board=10.0
File: /var/www/clients/client2/web14/web/sources/subs/ScheduledTask/RemoveTempAttachments.php
Line: 49
Title: Re: Directory name must not be empty
Post by: emanuele on February 15, 2017, 02:54:20 am
The only way for that to happen it seems to be attachmentUploadDir contains an empty entry.
Now the question is: how the heck an empty entry ended up there?
I'm not sure...
What settings do you have for attachments?
Title: Re: Directory name must not be empty
Post by: ahrasis on February 15, 2017, 04:36:59 am
Yes. The directory is empty except for default .htaccess and index.php files. The settings is to enable all the attachments though.
Title: Re: Directory name must not be empty
Post by: emanuele on February 15, 2017, 07:37:26 am
No, I meant an empty "entry" in the attachmentUploadDir settings. It's an array of directories and one of them is not a string pointing to a directory, but an empty string.
Title: Re: Directory name must not be empty
Post by: ahrasis on February 15, 2017, 08:26:10 am
I am not sure. But there is one directory and one path in attachment in its settings and directory page.
Title: Re: Directory name must not be empty
Post by: Spuds on February 15, 2017, 10:01:13 am
Could you get the value for attachmentUploadDir directly from the db an post it here?  It should be in your settings table.
Title: Re: Directory name must not be empty
Post by: ahrasis on February 15, 2017, 05:50:50 pm
a:1:{i:1;s:46:"/var/www/clients/client2/web14/web/attachments";}
Title: Re: Directory name must not be empty
Post by: emanuele on February 16, 2017, 09:07:32 am
Would you mind having a look at currentAttachmentUploadDir as well in the database?
Title: Re: Directory name must not be empty
Post by: ahrasis on February 16, 2017, 05:39:10 pm
The value is 1.