Provided is a patch to resolve the issues as suggested
siemen_hermans → created an issue.
We encountered the exact same issue today on one of our websites that's currently running on Drupal core 10.3.1.
Clearing the cache however did resolve the issue.
Sadly enough this does mean that the changes present in Drupal 10.3.1 do not resolve the issue.
Patch made compatible with hook_event_dispatcher 4.0.2
Patch made compatible with hook_event_dispatcher 4.0.1
Sorry for the late response, but it seems my colleagues forgot to reply in my absence. The issue fork you've provided seemed to have resolved our issues. The plugin now works flawlessly on our multilingual setup.
Providing a patch for version 4.0.x
siemen_hermans → created an issue.
We too experience this issue in one of our multilingual projects. It only happens when editing content in a non-default site language. When editing a node in the default language the plugin works like a charm.
So it isn't just a local environment issue.
Providing an updated patch for the 4.x-dev version
Created a new tag for the view based on the previous patch and the existing administerusersbyrole_edit_access tag logic.
Make patch compatible for version 8.x-1.0
The changes introduced by this fix can lead to a TypeError in the array_diff function.
In our specific situation the user can only have 1 role. As a result $form['account']['roles']['#default_value']
returns a string.
This causes a TypeError in the array_diff function.
A simple check of the value returned by $form['account']['roles']['#default_value']
could resolve the issue.
patch that adds the missing fileUrlGenerator.
siemen_hermans → created an issue.
We had a customer who created node named "Administratie en boekhouden". The auto generated path resulted in "administratie-en-boekhouden" and as such the "/admin*" path was triggered. I can see a similar issue being caused by the "/batch*" path, however that one seems less likely.
siemen_hermans → created an issue.