I am creating a custom theme and decided to place ACF in the “mu-plugins” folder and I ran into a unique issue. When a user removes a file from an field group that is a file type it generates a “404” file not found error for the default image (wp-includes/images/media/default.png). To fix this I was forced to modify the “assets/build/js/acf-input.js” file as seen below (icon path).
attachment = acf.parseArgs(attachment, {
url: '',
alt: '',
title: '',
filename: '',
filesizeHumanReadable: '',
icon: '../wp-includes/images/media/default.png'
}); // return
I know this is not ideal but I don’t want any console errors showing up in my theme. Just wanted to write this up for anyone else who may be having this issue since I could not find any fixes online about it. Maybe the ACF team can update this path to better fit all install situations like mine.