Project

General

Profile

Actions

Bug #62348

closed

much text in TypoScript cause "Fatal error: Can not redeclare class ..."

Added by Dieter Porth over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2014-10-20
Due date:
% Done:

0%

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

Description

Recently I got suddenly during development under XAMPP with TYPO6.2.4 on white screen following error message, ich i call my website. (XAMPP, TYPO3 6.2.4)

Fatal error: Can not redeclare class TYPO3 \ CMS \ Core \ Exception in C: \ xampp \ htdocs \ typo3_src-6.2.4 \ typo3 \ sysext \ core \ Classes \ Exception.php on line 23

The Cause was the follgoing TypoScript definition.

lib.config.javascript.init = TEXT
lib.config.javascript.init.value (
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
)
If I delete one charater in the definition above, the website works fine.

The lib is not used for the rendering of the website. It will only be used in a page with a special typeNum-definition.

The fatal error will occur after insertion of constants {$constant}.

Dieter

Actions #1

Updated by Steffen Müller over 9 years ago

  • Project changed from 1865 to TYPO3 Core
  • Is Regression set to No

Moved from Logging Project tracker

Actions #2

Updated by Dieter Porth over 9 years ago

Dieter Porth wrote:
additional remark

The predicted reason for the fatal error seems to be wrong, because the example of typoscript above seems to work sometimes.

If I use the following TypoScript, then I get the fatal error, which I descripted above.

lib.unused = TEXT
lib.unused.value (
if (typeof(mobgerDe) !== 'object') var mobgerDe = new Object();
if (typeof(mobgerDe.ext) !== 'object') mobgerDe.ext = new Object();
if (typeof(mobgerDe.config) !== 'object') mobgerDe.config = new Object();
if (typeof(mobgerDe.config.listener) !== 'object') mobgerDe.config.listener = new Object();
if (typeof(mobgerDe.config.signals) !== 'object') mobgerDe.config.signals = new Object();
)

I dont't find a hint, how I can escape the () in the Value of the TEXT-Object.

Dieter

Actions #3

Updated by Dieter Porth over 9 years ago

I have installed the extension grid-elements.
A few days ago I deactivated that extension. After that everything works fine.
After the update 6.2.4. -> 6.2.6 I activated the gridelements. The typoscript above works fine.

Often I got that fatal error sometimes, if some brackets {} in my typoscript are not correctly set.

Actions #4

Updated by Riccardo De Contardi almost 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Dieter Porth

So... can this be closed? Thank you

Actions #5

Updated by Riccardo De Contardi over 8 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.

Actions

Also available in: Atom PDF