($code) must be of type int, array given

Created on 31 January 2024, 10 months ago

Hello all,

I have been using this module from Drupal 10.1.7 and I have to say it is amazing. However I found an issue while importing terms using Countries images into a media field. The error I am returned is the following.

TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, array given in Exception->__construct() (line 175 of /var/www/html/un-sdg-d10/web/modules/contrib/countries_import/src/Services/FileUtils.php).

After debugging I see the $dir variable is setted to ":", it implies apache/nginx is trying to create that directory into projects root "./web/:", not into files directory.

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain pgrandeg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024