[TYPO3-ect] TODO: PEAR installer/ uploaded

Fabien Udriot fudriot at omic.ch
Wed Jul 11 23:14:22 CEST 2007


[french translation sent to Daniel]

I have 2 bugs to report. I do it here, in the mailing, since there are 
no pear section in the bug tracker.



1) *Fatal error if wget is not installed*

I could read in my Apache error_log :

rm: index.html*: No such file or directory
sh: line 1: wget: command not found
mv: rename index.html to ../go-pear.php: No such file or directory

We can replace lines 170 to 172 in mod1/index.php with this :

if (ini_get('allow_url_fopen') == '1') {
	$handle = @fopen("http://go-pear.org", "r");
	print_r($handle);
	$buffer ='';
	if ($handle) {
	   while (!feof($handle)) {
	      $buffer .= fgets($handle, 4096);
	   }
	   fclose($handle);
	   $fh=fopen("../go-pear.php", "w");
	   fwrite($fh, $buffer);
	   fclose($fh);
	}
}
else {
	system("rm index.html*");
	system("wget http://go-pear.org");
	system("mv index.html ../go-pear.php");
}



2) I always get the open-basedir error before installation.

In php.ini, my basedir variable is empty. However I always get an error.
Check the screenshot :

http://omic.ch/tmp.png


If you look at the code you will see there is no real test about the 
basedir variable. Search in index.php for :
"else if(file_exists($installationFile))"


Fabien
Daniel Brüßler a écrit :
> Hello Elmar and Fabien,
> 
> by the way, it works great and it even has a manual with screenshots :-)
> 
> I talked with Robert today how we can connect it with the Extension Manager.
> 
> The other two (bypear and iwi_pear) can be set to "obsolete".
> 
> @Fabien: If you live in the french part of switzerland: Do you like to
> translate the mod1/locallang.xml to french?
> 
> kind regards
> Daniel
> 
> 
> 
> Elmar Hinz schrieb:
>> Fabien Udriot wrote:
>>
>>> It was maybe ironic and I didn't get it.
>>>
>>> Fabien
>>>
>> Not at all. It's just a perfect ECT extension key, short and clear.
>>
>> cal, lib, div ... pear
>>
>> Regards
>>
>> Elmar
>>
>>
>>
>>
>>
>>


More information about the TYPO3-team-extension-coordination mailing list