[Typo3] Can't import extensions with Ext manager

Carles Codina carles at gmail.com
Thu Apr 28 12:02:48 CEST 2005


When I tried to import the extension : 

Library for Frontend plugins sg_zfelib , 
or the Ts language, Spanish ts_language_es , 

 I only get this 2 warnings and nothing more.
WARNING____________________________________________________________
Warning: fopen(): URL file-access is disabled in the server
configuration in
/var/www/vhost/ellector.com/home/html/quickstart-3.7.0/typo3/t3lib/class.t3lib_div.php
on line 2002

Warning: fopen(http://ter.typo3.com/?id=t3_extrep&tx_extrep[T3instID]=N%2FA&tx_extrep[TYPO3_ver]=3.7.0&tx_extrep[PHP_ver]=4.3.4&tx_extrep[returnUrl]=http%3A%2F%2Fwww.ellector.com%2Fquickstart-3.7.0%2Ftypo3%2Fmod%2Ftools%2Fem%2Findex.php%3Fter_connect%3D1%26ter_search%3Dsg_zfelib&tx_extrep[gzcompress]=1&tx_extrep[user][fe_u]=carlescc&tx_extrep[user][fe_p]=rocatell3&tx_extrep[cmd]=currentListing&tx_extrep[search]=sg_zfelib):
failed to open stream: no suitable wrapper could be found in
/var/www/vhost/ellector.com/home/html/quickstart-3.7.0/typo3/t3lib/class.t3lib_div.php
on line 2002

CODE_________________________________________________________________
The place where brokes (class.t3lib_div.php)

	function getURL($url)	{
		$content = '';

			// (Proxy support implemented by Arco <arco at appeltaart.mine.nu>)
		if((substr($url,0,7)=='http://') &&
($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse']=='1'))	{
			//external URL without error checking.
			$ch = curl_init();
			curl_setopt ($ch,CURLOPT_URL, $url);
			curl_setopt ($ch,CURLOPT_HEADER, 0);
			curl_setopt ($ch,CURLOPT_RETURNTRANSFER, 1);

			if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {
				curl_setopt ($ch, CURLOPT_PROXY,
$GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);

				// I don't know if it will be needed
				if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {
					curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL,
$GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel'] );
				}
				if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {
					curl_setopt ($ch, CURLOPT_PROXYUSERPWD,
$GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass'] );
				}
			}
			$content=curl_exec ($ch);
			curl_close ($ch);
			return $content;
		} elseif($fd = fopen($url,'rb'))   
{<---------------------------LINE  2002----------->
			while (!feof($fd))	{
				$content.=fread($fd, 5000);
			}
			fclose($fd);
			return $content;
		}
	}
INFORMATION  _____________________________________________________
Seems that this people have a similar problem :
http://tinyurl.com/8pn9f  ,  but on a different line.
And reading the answers seems  that the problem goes arounds this subject :

http://de3.php.net/manual/en/function.fopen.php:
"If PHP has decided that filename specifies a registered protocol, and 
that protocol is registered as a network URL, PHP will check to make 
sure that allow_url_fopen is enabled. If it is switched off, PHP will 
emit a warning and the fopen call will fail." 

This was all the information that I collected, but now the question is
: What I must to do to solve the Impasse situation?

I'm a newbie on TYPO3 and PHP, my experience are on
Natural/Adabas/Host/Unix. be patient with my ignorance. :-)

Greetings, and Thanks!!!!!

Carles Codina

--



More information about the TYPO3-english mailing list