[Typo3-UG Stuttgart] ERROR: Could not create extension directory

Stephan Sigloch NETFORMIC typo3 at netformic.de
Wed Feb 11 12:54:44 CET 2004


Hallo zusammen,

ich habe folgendes Problem.

- Typo3.6RC1
- PHP "safe_mode enabled"
- beim importieren vom Online Repository gibt es die bekannte Meldung: 
"ERROR: Could not create extension directory"

Jetzt habe ich folgende workarounds gefunden, die aber nicht auf die
Typo3.6RC1 passen ohne dass man den safe_mode disablen muss:

1) 
There is a bug in typo3/mod/tools/em/index.php. At line 1801 it tries to
create the directory with slash ("/") at the end which is not possible
in safe mode. I got rid of the slash and it worked!

2)
To be precise there are two places where it adds the trailing slash -
line 1676 and 1801. I am not an expert in PHP and I didn’t want to dig
into the logic either so my quick fix was following:

1676c1676
< 					$root.=$dirParts."/";
---
> 					$root.=$dirParts;
1682a1683
> 					$root.="/";
1801c1802
< 			(at)mkdir($extDirPath, 0777);
---
> 			(at)mkdir($path.$importedData["extKey"].$suffix,
0777);

evtl. kann mir einer helfen was man wo genau einstellen muss.

Danke
Gruß Stephan Sigloch






More information about the TYPO3-stuttgart mailing list