Bug #25110
closedWriting all confiration amendments to localconfig causes error
0%
Description
following output is given and crashes the backend and the site
Parse error: syntax error, unexpected T_VARIABLE in /is/htdocs/wp1029794_9ED36WWMA5/www/t/typo3conf/localconf.php on line 144
The solution is to delete the line and the caches at config folder. Anyhow, that helps not to amend the localconfig.
I tried that several times with identical results. Actually I have no idea how to amend the localconfig.
following appears even when I try to do nothing * $TYPO3_CONF_VARS['BE']['versionNumberInFilename'] = '0' * Configuration written to typo3conf/localconf.php
The result in the file is
$TYPO3_CONF_VARS['BE']['versionNumberInFilename'] = '0'; // Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 20-02-11 11:32:04
(issue imported from #M17679)
Updated by Chris topher almost 14 years ago
Hi Jens,
the line you posted looks correct. I don't think that this causes the PHP error.
When you have this error again, please post the line which is given in the PHP error message and some lines before.
Maybe you have a missing ";" at the end of the line before the one with the error?
Updated by Jens Schroeder-Fuerstenberg almost 14 years ago
Hi Christopher,
The problem persists. These are the lines added when upgraded from 4.4.6 to 4.5
I disabled the DeprecationLog; days before the update with no error message.
Is it likely that the missing ";" was from there? Understanding you correctly it seems to be.
I separated the according lines from the others which are only from the update.
$TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] = '0'
// Updated by TYPO3 Extension Manager 23-01-11 14:13:22
// Updated by TYPO3 Install Tool 01-02-11 19:16:28
// Updated by TYPO3 Extension Manager 01-02-11 19:18:40
//$TYPO3_CONF_VARS['INSTALL']['wizardDone']['tx_coreupdates_installsysexts'] = '1'; // Modified or inserted by TYPO3 Upgrade Wizard.
// Updated by TYPO3 Upgrade Wizard 01-02-11 19:18:41
//$TYPO3_CONF_VARS['BE']['versionNumberInFilename'] = '0'; // //Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 02-02-11 18:19:56
// Updated by TYPO3 Extension Manager 19-02-11 11:54:18
// Updated by TYPO3 Install Tool 19-02-11 18:05:28
// Updated by TYPO3 Extension Manager 19-02-11 18:28:59
$TYPO3_CONF_VARS['BE']['versionNumberInFilename'] = '0'; // Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 20-02-11 11:32:04
?>
Updated by Jens Schroeder-Fuerstenberg almost 14 years ago
I recall that I did the DeprecationLog; stuff manually.
Perhaps simply a copy and paste failure?
Updated by Chris topher almost 14 years ago
Yes, just add a ";" at the end of $TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] = '0'; and the error will be fixed.
But interesting that PHP does not throw an error message, when the ";" at the end of the last line is missing.
Updated by Chris topher almost 14 years ago
However, closed as this is no bug of TYPO3.