Bug #70134
closedDependency Issues
0%
Description
Hey guys,
I don't know if it is a bug in TYPO3 or in several extensions.
I'm cleaning up extensions in EM, which are no longer needed or where updates are needed.
So I tried to update cal and get an error message. Seems to me, that version dependency is not proved correctly.
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /html/typo3conf/ext/cal/ext_localconf.php on line 861
Mario told me, that he proves the dependency in the exstension, but I was not able to debug it, because I just installed the old version.
Next thing is an extension called sg_div. I thought I don't need this one so i set it to inactive. Than I wanted to updaate sg_glossary, which needs sg_div. And this causes an exception.
So I needed to set both to inactive, cleared typo3temp went to the installtool...
Problem solved.
So do you think that we have problems with dependency in core or in the extensions?
I hope this
Updated by Wouter Wolters about 9 years ago
- Tracker changed from Story to Bug
- Category deleted (
1594) - Assignee deleted (
Helmut Hummel) - Target version changed from 6.2.15 to 6.2.16
- Is Regression set to No
Updated by Wouter Wolters about 9 years ago
- Status changed from New to Needs Feedback
Can you give us some information what is on line 861?
What exception is thrown?
Updated by Mario Matzulla about 9 years ago
860 if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= '7001000') {
861 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
So the code is executed even though the TYPO3 version is 6.2.x :(
Updated by Wouter Wolters about 9 years ago
- Status changed from Needs Feedback to Closed
Problem 1: PHP version related and the core can't do anything about it.
Problem 2: sg_glossary doesn't define any depedencies. The code uses other extensions to make this extension work. This is not a problem of the core but the extension.
I checked both problems as you can read above and my conclusion is that both are not core related and I therefor close this ticket.
Updated by Andrea Herzog-Kienast about 9 years ago
Hey Wouter,
thanks a lot.
Problem 1: Do you know which php version can solve the problem? Is it a general problem or only a problem with cal?
Best,
Andrea
Updated by Mario Matzulla about 9 years ago
Hmmm, of course the exception is related to the php version which is below 5.5 obviously. But this is not the point! Andrea did an update on cal and line 860 of cal's ext_localconf.php returned TRUE even though - as she says - TYPO3 6.2.x was installed.
So the question is: why?
Updated by Wouter Wolters about 9 years ago
The ext_localconf.php are cached and concatenated and then evaluated. My guess is that this is the problem. You cannot use PHP 5.5 features is lower versions without breaking it.
Updated by Daniel Siepmann about 9 years ago
Just in case other developers encounter this, it's a new PHP Feature introduced in PHP 5.5: http://php.net/manual/en/migration55.new-features.php#migration55.new-features.class-name
That's why the parser is complaining about a T_CLASS as it's a reserved keyword before 5.5 where it became a feature.