Einzelnen Beitrag anzeigen
  #6  
Alt 18.09.07, 07:34
Benutzerbild von christiana83
christiana83 christiana83 ist offline
Forum Stammgast
 
Registriert seit: 04.07.06
Ort: Gotha
Alter: 25
Beiträge: 399
christiana83 eine Nachricht über ICQ schicken christiana83 eine Nachricht über Skype™ schicken

Das ist eine Lösung, die jemand anderes gepostet hat (hab ich gefunden:sad:

I have the PRoblem that the original Extension Manager failed with Out of Memory Problem PHP Message. Allocation failed. He also try to allocate few gigs of Ram and it not help. If found also that the implode function was not used correct by this class twice. I fixed the code with the knowledge i have about this class and describle the code changes as follow.

The follow code are alredy changed code. It is not the original code! This changed solved both Problems on my side.

File: typo3/mod/tools/em/class.em_index.php
PHP-Code:
Line 1394:
/* *** Implode Parameter was wrong *** */
$mirrors implode(chr(10), gzfile($mfile));
t3lib_div::unlink_tempfile($mfile);


Line1425
/* *** Implode Parameter was wrong *** */
$mirrors implode(chr(10), gzfile($mfile));
t3lib_div::unlink_tempfile($mfile);


Line2976:
/* *** OUT OF MEMORY BUG START HERE *** */
if(strlen($emConf['PHP_version'])) {
$versionRange $this->splitVersionRange($emConf['PHP_version']);
//if(version_compare($versionRange[0],'3.0.0','<')) $versionRange[0] = '3.0.0';
//if(version_compare($versionRange[1],'3.0.0','<')) $versionRange[1] = '';
$emConf['constraints']['depends']['php'] = implode('-',$versionRange);
}
if(
strlen($emConf['TYPO3_version'])) {
$versionRange $this->splitVersionRange($emConf['TYPO3_version']);
//if(version_compare($versionRange[0],'3.5.0','<')) $versionRange[0] = '3.5.0';
//if(version_compare($versionRange[1],'3.5.0','<')) $versionRange[1] = '';
$emConf['constraints']['depends']['typo3'] = implode('-',$versionRange);
}
/* *** OUT OF MEMORY BUG STOP HERE *** */ 


Dateien mit dem Repository aus der entfernen. Dann klappt das auch mit dem "Lookup".
Die Dateien sind:
- typo3temp/extensions.bin
- typo3temp/extensions.xml.gz


Ich habe erst Erfolg gehabt, nachdem ich den UploadSpeicher in der php.ini raufgesetzt habe.
Ich hatte vorher 10MB und habs auf 20MB hochgesetzt

Im Ordner typo3temp die Datei "extensions.xml.gz" löschen
Mit Zitat antworten