When i tried to open the attachment settings, i get this error.
(Link-5822) 
			 
			
			
				Version of php? 7.2 right?
I remember similar reports for other places, I don't remember if this one was reported yet.
You can replace any instance of:
count($modSettings['attachmentUploadDir']) == 1
with:
(is_array($modSettings['attachmentUploadDir']) && count($modSettings['attachmentUploadDir']) == 1)
in /sources/admin/ManageAttachments.controller.php
			
 
			
			
				@emanuele Thanks it solved the issue :)
			
 
			
			
				Might be a idea to use is_countable from php 7.3 and this polyfill 
if (PHP_VERSION_ID < 70300) {
    if (!function_exists('is_countable')) {
        function is_countable($var) { 
            return is_array($var) || $var instanceof Countable || $var instanceof ResourceBundle || $var instanceof SimpleXmlElement;
        }
    }
}
			 
			
			
				Yes, thank you, that was it. :) 
Is there a new BBC tag for this or do I have to write something in the text like [attach] ?
			
			
			
				I think this is the wrong thread?
			
 
			
			
				Ooops, you're right. I'll post it in the other too.
			
			
			
				Has this been committed in 1.1.4?
			
 
			
			
				https://github.com/elkarte/Elkarte/issues/3190