Bug #98206
closed
View details link in backend user module broken
Added by Bernhard Eckl about 2 years ago.
Updated over 1 year ago.
Category:
Backend User Interface
Description
If I click on the show details link of a backend user in the backend user module an error message appears:
(1/1) #1351584844 TYPO3Fluid\Fluid\Core\ViewHelper\Exception
An argument "key" or "id" has to be provided
in /var/www/typo3/typo3_src-10.4.31/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php line 148
It seems that there is a translate viewhelper without key or id. I didn’t find it in the core templates.
Files
I assume, you mean the "Display information" (i) button in the list view. I cannot confirm this on a TYPO3 v10.4.31. Maybe it is from an extension? Then deactivate all extensions and try it again. If it works then, enable extension by extension, and try again.
- Status changed from New to Needs Feedback
Can you please provide a screenshot? Thanks in advance!
I deactivated several extensions with no change (especially ig_ldap_sso_auth). If an extension could really be the problem I will try again deactivating all extensions.
I found out with one user (username cli, needed in older versions and still not deleted) the error does not occur. On all other users the error message appears.
Attached you can find some screenshots. It is the button left from the “i” button.
It’s (still) a non composer installation.
Ah, okay, another button. But I cannot confirm this either, the page is displayed correctly. But I have mostly a clean installation, most of the settings are empty. Maybe, one of them has the problem. That's why the cli user may be displayed correctly on your installation. Perhaps add a new user without access assignments and add these one by one, to see which section gives the error.
I also tried it on a production v11.5.13 installation, every section (exception is Category Mounts which is not used) is displayed correctly with information. So, when this is an error in Core, it seems to be only in v10.
I found out the problem. I modified the partial /typo3/sysext/beuser/Resources/Private/Partials/Compare/Information.html and inserted an if condition in line 222 (section nonExcludeFields):
<f:if condition="{label}"><f:then>
{f:translate(key:label)}
</f:then><f:else>
Missing key for field: [{field}]
</f:else></f:if>
And the missing key label is: tx_yoastseo_cornerstone. So a label is missing in the yoast_seo extension. But this of course can happen in third party extension, that’s why I would advise adding an if condition there to not break the view.
Can this condition be implemented in the template for then next patch version?
- Status changed from Needs Feedback to Closed
Hi Bernhard,
if this issue cannot be reproduced in version 11.5, I would like to close the ticket.
Version 10.4 doesn't receive community support anymore.
Also available in: Atom
PDF