Making composer returns 'Trying to access array offset on value of type null'

Hi all,

I am trying to make a new composer in our Sage theme.
We did install Acorn in our bedrock folder.

We are getting the following error message;

In mime-types.php line 22:
  Trying to access array offset on value of type null

We are using command;

wp acorn make:composer Test

In an other Bedrock + Sage installation it is working.
Does anybody know why we are getting this error?

Thanks!

Where is mime-types.php coming from? We’re going to need more details/a larger error message - but this will more than likely have something to do with your environment.

@Log1x;

Ok so I found the problem, I did remove the plugin below from bedrock composer.json

"wpackagist-plugin/svg-support": "^2.4.2"

After that it started working again.

I’d check out GitHub - 10up/safe-svg: Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website. for SVG support. Has worked well for me in the past.

2 Likes