Bug #64314
closedFrontend fails to properly unset labels
0%
Description
Hello there,
when setting a label to empty (''
) by typoscript, there will be a PHP fatal error for using a string as string offset.
How to reproduce:
plugin.tx_xx._LOCAL_LANG.x =
Now you'll have a fatal error on Line 904 of AbstractPlugin.php.
The reason is that it is checked if the label should be unset and then it isn't tested again...
Here's the fix for this.
File: typo3/sysext/fronted/Classes/Plugin/AbstractPlugin.php
line 903
Copy-paste this on line 903 to fix the issue
if(isset($this->LOCAL_LANG_UNSET[$this->LLkey][$key])) { $word = ''; } else
Best Regards
Tizian
Updated by Daniel Goerz about 9 years ago
- Status changed from New to Needs Feedback
I cant reproduce an error on current 7.5 master. Everything works as expected. Can you please check if the error still occurs? How is your error reporting configured?
I use the fe_login plugin that shipps with the core and then overwrite the welcome message with
plugin.tx_felogin_pi1._LOCAL_LANG.en.ll_welcome_message =
Same goes for 6.2.15
Updated by Mathias Schreiber about 9 years ago
- Target version deleted (
next-patchlevel)
Updated by Riccardo De Contardi almost 9 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
You could also join the #typo3-cms channel in Slack if you still need support.
Thank you