Attachment Directory management error
February 17, 2019, 03:40:19 pm
php7.3, nginx 1.15.8, mariadb 10.3. Fresh 1.1.5 install. When attempting to change Choose the method for the management of the attachment directories to Auto Subdivide by months and years and checking box Create new directories within a base directory, there is an error "in_array() expects parameter 2 to be array, string given". Anyone know a fix? Thanks! Edit: the offending feature seems to be checking the Auto Subdivide. Choosing the option fails to create a subdirectory, and naturally attachment uploads fail.
Re: Attachment Directory management error
Reply #1 – February 18, 2019, 11:36:08 am
Did it indicate which line the error is on?
Re: Attachment Directory management error
Reply #11 – February 21, 2019, 04:52:25 am
emanuele
Global Moderator
I think the most common limit to avoid is the usually 10k files per directory that is enforced for ftp in certain configurations (i.e. the ftp returns only the first 10k files). Though this limit is not always present, so it's a kind of case-by-case. Apart from that, it could be wise to avoid to have more than 10k files in a directory just to remain sane.
Re: Attachment Directory management error
Reply #13 – March 27, 2019, 10:00:39 am
I don't think this one is tracked yet for 1.1.6. Not sure about 2.0.