- Issue created by @_michel_
- Status changed to Postponed: needs info
11 months ago 11:56pm 17 December 2023 - 🇮🇹Italy _michel_
More info about this issue.
IMCE was working perfectly with drupal 10.1.7
Once updated drupal to 10.2, I get a php error when trying to upload a file.
Creating a subdirectory with IMCE works well.This is the php error when trying to upload a file
Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "Drupal\imce\Plugin\ImcePlugin\Upload::validateFileName" plugin does not exist.
- Status changed to Active
11 months ago 12:52am 20 December 2023 - 🇺🇸United States mlncn Minneapolis, MN, USA
Confirming the same error, and that we can reproduce it at /admin/imce/browser — the module is definitely installed and present!
As was reported in the duplicate 🐛 Uploading with IMCE shows AJAX error Closed: duplicate the problem manifests to an editor uploading a file through IMCE as a pop-up box with an AJAX error:
An AJAX HTTP error occurred.
Path: /imce
HTTP Result Code: 500
StatusText: 500 Service unavailable (with message)
ResponseText: The website encountered an unexpected error. Try again later.- Drupal 10.2.0
- PHP 8.1.26
- Apache/2.4.57 (Debian)
Maybe switching to PHP Attribute based plugins would fix it: https://www.drupal.org/docs/drupal-apis/plugin-api/attribute-based-plugins →
But they are not supposed to have broken old plugins in 10.2! But it seems IMCE might not be alone in this regard: 🐛 Drupal\Component\Plugin\Exception\PluginNotFoundException: The "webform_file_validate_extensions" plugin does not exist Active
- Status changed to Fixed
11 months ago 11:59am 20 December 2023 Fixed the static method not working as an upload validator.
Thanks for reporting.
- 🇺🇸United States mlncn Minneapolis, MN, USA
Awesome, thank you! Works wonderfully.
- 🇺🇸United States darisb
3.0.10 fixed the issue for me. It failed to install when I used the Drupal module updater. It installed successfully using Composer. Thank you.
- Status changed to Fixed
11 months ago 10:14am 6 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.