Bug #21853
closedInstall tool doesn´t reconize comments in localconf.php
0%
Description
Install tool doesn´t reconize comments in localconf.php while updating a value.
Example:
If you have a localconf.php like this below and you switch to a new major version (4.2 -> 4.3), Update Wizard suggest you to perform an update. After this you got a message like this:
"changeCompatibilityVersion
Update successful!
The compatibility version has been set to 4.4." but if you run the Update Wizard again, you get same notice to do an upgrade.
This happens because the wizard update first occurence of the variable (reads from bottom to top), doesn´t matter if it inside a comment.
On the other hand the Wizard take care for comments if he compare installed version and new version to detect if an update needed.
So this behavior is inconstistent.
With this patch update wizard ignore lines between /* */ and behind #.
---SNIP---
$TYPO3_CONF_VARS['SYS']['compat_version'] = '4.2'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['SYS']['UTF8filesystem'] = '1';
$TYPO3_CONF_VARS['SYS']['textfile_ext'] = 'txt,html,htm,css,inc,php,php3,tmpl,js,sql,ts,t3s,t3c';
$TYPO3_CONF_VARS['BE']['sessionTimeout'] = '36000'; // Modified or inserted by TYPO3 Install Tool.
$
/*
$TYPO3_CONF_VARS['SYS']['compat_version'] = '4.2'; // Modified or inserted by TYPO3 Install Tool.
other things
*/
---SNIP---
(issue imported from #M13026)
Files
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.2
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.