You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just got this exception after an update from 3.7 to 4.0.2, and PHP from 7.4 to 8.2.
The method parameter is an associative array for simple field mappings: ['title' => '<dn>'].
With my hook mapping department = {hookName|department} the param is a flat array: ['{hookName|department}']
This check fails, since $field is an index:
foreach ($mapping as $field => $attribute) {
if (str_ends_with($field, '.')) {
...
I checked the docs reagrding hooks, but looks like nothing has changed.
Same here.
My quick fix was cast the $field variable to a string to ensure compatibility with str_ends_with.
This avoids potential type errors and allows the condition to work as intended.
if (str_ends_with((string)$field, '.')) { // This is a TypoScript configuration continue; }
Hey,
I just got this exception after an update from 3.7 to 4.0.2, and PHP from 7.4 to 8.2.
The method parameter is an associative array for simple field mappings:
['title' => '<dn>']
.With my hook mapping
department = {hookName|department}
the param is a flat array:['{hookName|department}']
This check fails, since $field is an index:
I checked the docs reagrding hooks, but looks like nothing has changed.
A quick fix in my case was changing this call
t3ext-ig_ldap_sso_auth/Classes/Library/Authentication.php
Line 820 in 10429e2
to
$ldapAttributes = Configuration::getLdapAttributes([$field => $value]);
We have quite a simple setup, I didn't really test much further, but seems to work in my case.
The text was updated successfully, but these errors were encountered: