Zum Inhalt springen

ERROR: Could not create extension directory......

Erstellt am 28. August 2003 · 4 Antworten · letzte Antwort am 27. Januar 2004

Tags: Frage

Unbekannter Benutzer ·

Das dieser Topic schon einmal existiert ist mir bekannt, aber da keiner ein Lösung gefunden hat muss ich euch in der Hoffnung eine Lösung zu finden noch einmal belästigen!

Problem:
ERROR: Could not create extension directory......

Versuche zur Behebung:
Alle möglichen Rechte vergeben. Also an den rechten kann es nicht liegen!

Danke!

magold ·

Hallo, habe das hierzu gefunden und es hat funktioniert...

In fact I had the same problem and leaving the last slashes before creating the dirs fixed it.

So I changed the following in file /typo3/mod/tools/em/index.php

Around line 1800:

// we go create...
@mkdir($extDirPath, 0777);
if (!is_dir($extDirPath))        return "ERROR: Could not create extension directory '".$extDirPath."'";

to

// we go create...
@mkdir(substr($extDirPath,0,(strlen($extDirPath)-1)), 0777);
if (!is_dir($extDirPath))        return "ERROR: Could not create extension directory '".substr($extDirPath,0,(strlen($extDirPath)-1))."'";

AND around line 1676

                                 while(list(,$dirParts)=each($allDirs))        {
                                        $root.=$dirParts."/";
                                        if (!is_dir($extDirPath.$root))        {
                                                @mkdir($extDirPath.$root, 0777);
                                                if (!@is_dir($extDirPath.$root))        {
                                                        return "Error: The directory '".$extDirPath.$root."' could not be created...";
                                                }
                                        }
                                }

to

                                while(list(,$dirParts)=each($allDirs))        {
                                        $root.=$dirParts;
                                        if (!is_dir($extDirPath.$root))        {
                                                @mkdir($extDirPath.$root, 0777);
                                                if (!@is_dir($extDirPath.$root))        {
                                                        return "Error: The directory '".$extDirPath.$root."' could not be created...";
                                                }
                                        }
                                        $root.="/"; 
                                }

So the root extension dir will be created without the slash and subdirectories also.

Hope this will work for every purpose...

Viel Glück
😃