Project

General

Profile

Actions

Bug #17103

closed

Deleted options from extensions remain in localconf.php when updating extension configuration

Added by Tapio Markula almost 17 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-07-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Typo3 doesn't rewrite extension configuration properly.

It should take off such configurations, which doesn't exist anymore.
If there are unused items, that might cause problems with extension development.
The localconf writer api should comment or delete the
old config line and write a new one.

(issue imported from #M6018)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #20771: Extension Manager only removes directory where extension is installedClosedJigal van Hemert2009-07-20

Actions
Actions #1

Updated by Oliver Hader almost 17 years ago

Are you talking about the kickstarter?
If not, could you please give an example to enable reproduction of this behaviour? Thanks!

Actions #2

Updated by Tapio Markula almost 17 years ago

I'm not talking about kickstarter but saved configuration in localconf.php

I have sometimes met this problem because of old plugin configurations in localconf.php. I have changed configurations but also I have forgotten to change everything. Plugin works because of old configurations but if somebody else install plugin firts time, it would not work.

Clicking 'Update' doesn't remove non-existing configurations.
For example the plugin 'tm_shared_lib' have now just two options.
I moved some features to a new plugin, but there is still.

$TYPO3_CONF_VARS['EXT']['extConf']['tm_shared_lib'] = 'a:4:{s:7:"enable.";a:5:{s:7:"topapps";s:1:"1";s:9:"userSetup";s:1:"1";s:11:"new_topapps";s:1:"1";s:12:"topapps_list";s:74:"menu,old_shortcuts,logout,clock,workspaces,user,cache,shortcuts,submodules";s:21:"dragndrop_for_tinyrte";s:1:"0";}s:16:"xyzcorp_position";s:5:"first";s:12:"companyImage";s:0:"";s:14:"companyAddress";s:0:"";}';

The CORRECT configuration fot this plugin should be today:

$TYPO3_CONF_VARS['EXT']['extConf']['tm_shared_lib'] = 'a:1:{s:7:"enable.";a:2:{s:9:"userSetup";s:1:"1";s:21:"dragndrop_for_tinyrte";s:1:"0";}}';

In order to avoid these kinds of errors, it would be nice, if
installation would have option (using a checkbox) to reset plugin configuration.
Then before new config has been written existing configuration would be first destroyed. This should be optional, if somebody would need older version.

When uninstalling plugin, it would be nice idea to have a checkbox to delete plugin configuration. If plugin would be newer used, why save non-used configurations. Typo3 should not however delete it automatic because plugin might be needed later.

Actions #3

Updated by Chris topher about 14 years ago

Hi Tapio,

is that still a problem? If so, can you provide a patch?

Actions #4

Updated by Chris topher almost 14 years ago

This is covered by #0011560.

Resolved as duplicate of #0011560; please go on there!

Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF