πŸ‡ΊπŸ‡ΈUnited States @mr_scumbag

Chattanooga TN USA
Account created on 13 July 2009, over 15 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States mr_scumbag Chattanooga TN USA

The description from #7 skips over the values you have to put in your config at /admin/config/media/media-bulk-config

I called mine "bulk upload image" (label)
For the media types picked "Image"
Form mode "none"
upload location "public://media-bulk-upload"

When I go to /media/bulk-upload/bulk_upload_image and drag and drop onto the "chosen files"
I see the files uploaded and also the error "No media files have been provided."

This is Drupal 10.3.2
This still won't upload into /admin/content/media, but I do see them in /admin/content/files

So something is still very broken.

πŸ‡ΊπŸ‡ΈUnited States mr_scumbag Chattanooga TN USA

This is because a static method is using $this
In fact it's using $this->t(..something here...)
When it should just be using t() without $this.
You get an error of with the current code because you shouldn't call $this in a static context.
Maybe newer version of PHP are more strict on that?

So the fix is changing

      '#title' => $this->t('Link to the entity'),

to

      '#title' => t('Link to the entity'),

For all usages of $this->t()

Seems there is confusion of what t() to use.
https://drupal.stackexchange.com/questions/155960/using-the-right-t

πŸ‡ΊπŸ‡ΈUnited States mr_scumbag Chattanooga TN USA

I have the same problem.
D9.5 php 8.1 - clean install, I just wanted to test the streaming out.
Tried dropping back a version of "drupal/streaming" to 1.1 and it still gives me the same error.
I'll poke about and see what I can find, maybe produce a patch.

Production build 0.71.5 2024