Umbraco 15.4.4 Media Folder Childred are not showing up?

Hi

We are running Umbraco 15.4.4, and we have the same issue that a media folder is not showing the children just like the issue here : Umbraco 15 children of content picker "media folder" null

I can see that the datatype was not setup correctly, saw this thread : Umbraco 16 Media not showing - #3 by jacob

Does anyone know what is the correct thing to fix this ?

The quick fix is to remove the views in the “List View - Media” data type and then re-add them. They should then have the correct properties set.

As stated in the other thread, if you are willing to share a database from the old state, we might try to reproduce the migration issue. Please go ahead and create an issue on the issue tracker so we can look into it.

Thanks Jacob for the fast reply, we added the layouts to the data type, and it looks okay, but we have an issue that we can’t drag and drop new images to the folder, it just keep saying that it’s uploading.

Great to hear. Umbraco 15.4.4 is somewhat outdated compared to version 16.x range saw some improvements to drag & drop and other Media Library-related issues. I would honestly try to upgrade to the latest v16 (16.4.0 as I’m writing this) and see where that takes you.

this is the error we get when uploading :

```
An unhandled exception has occurred while executing the request.

System.ArgumentNullException: Value cannot be null. (Parameter ‘source’)
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.Contains[TSource](IEnumerable1 source, TSource value, IEqualityComparer1 comparer)
at Umbraco.Cms.Core.Services.ContentTypeEditing.MediaTypeEditingService.<>c__DisplayClass9_0.b__2(KeyValuePair2 kvp) at System.Linq.Enumerable.IEnumerableWhereSelectIterator2.MoveNext()
at System.Collections.Generic.List1.AddRange(IEnumerable1 collection)
at Umbraco.Cms.Core.Services.ContentTypeEditing.MediaTypeEditingService.GetMediaTypesForFileExtensionAsync(String fileExtension, Int32 skip, Int32 take)
at Umbraco.Cms.Api.Management.Controllers.MediaType.Item.AllowedMediaTypeItemController.Item(CancellationToken cancellationToken, String fileExtension, Int32 skip, Int32 take)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
```

That error means one of your Media Types has a null value in the fileExtensions field. It may not have migrated properly.

Looking at the source code, we added a fallback to an empty array in versions 16.4 and 17.0: Media types: Handle null configured file extensions when populating allowed media types (closes #20620) by AndyButland · Pull Request #20635 · umbraco/Umbraco-CMS · GitHub

You may be able to fix it locally by resaving all your Media Types, but otherwise, version 16.4 has a fix for it.

1 Like