Project

General

Profile

Actions

Bug #24151

closed

conf.php files aren't corrected when installing extensions

Added by Rob Vonk about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I installed the dummy package on a clean typo3 created database with the src tgz file.

When i install an extension the conf.php files aren't correctly created. The mod1/conf.php file from templavoila looks like this:

define('TYPO3_MOD_PATH', 'templavoila/mod1/');
$BACK_PATH='';

and it should be:

define('TYPO3_MOD_PATH', '../typo3conf/ext/templavoila/mod1/');
$BACK_PATH='../../../../typo3/';

Tried it twice with a clean installl

Typo3 is installed in this folder:

/var/www/public_html/typo3

Basic configuration shows all paths correct

Apache/2.2.14 (Ubuntu)
php 5.3.2-1ubuntu4.5 with Suhosin Patch 0.9.9.1
(issue imported from #M16495)


Files

16495.patch (2.87 KB) 16495.patch Administrator Admin, 2010-11-21 15:39

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #24187: Udpdated Templavoila to 1.5.2 and can't load pages in the back end.ClosedBenni Mack2010-11-23

Actions
Actions #1

Updated by Rob Vonk about 14 years ago

Found out why this happens.

In refactoring the extension manager some classes are splitted.

Now in the file typo3/sysext/em/classes/tools/class.tx_em_tools.php on line 895 and 901 this array is used:

$this->typeRelPaths[$type]

But the array is not in the class tx_em_Tools. It's defined in the class SC_mod_tools_em_index.

It works when you add a global $SOBE in function writeTYPO3_MOD_PATH and replace the $this->typeRelPaths[$type] with $SOBE->typeRelPaths[$type] and $this->typeBackPaths[$type] with $SOBE->typeBackPaths[$type] but i'm not sure if thats the best solution.

Actions #2

Updated by Jigal van Hemert about 14 years ago

Because tx_em_Tools is meant to be called statically there can't be a reference to $SOBE, so I added two parameters.

The Extension Manager is in progress of being refactored/rewritten, so I consider this to be a temporary fix until the new EM is ready.

Actions #3

Updated by Rob Vonk almost 14 years ago

Patch tested. Works like a charm.

Actions #4

Updated by Jigal van Hemert almost 14 years ago

Committed v2 to trunk in rev 9502 (will appear in version 4.5.0)

Actions #5

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF