Project

General

Profile

Actions

Bug #64314

closed

Frontend fails to properly unset labels

Added by Tizian Schmidlin almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2015-01-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

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

Actions #1

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

Actions #2

Updated by Mathias Schreiber about 9 years ago

  • Target version deleted (next-patchlevel)
Actions #3

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

Actions

Also available in: Atom PDF