Joomla-SMF 1.0.2a Config RDF Problem

Discuss the integration of SMF here.
Locked
User avatar
skunk
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Mon Aug 22, 2005 12:51 pm
Location: Cumbria - UK
Contact:

Joomla-SMF 1.0.2a Config RDF Problem

Post by skunk » Mon Nov 28, 2005 1:19 pm

When running the configuration for the first time I get the following error:

Warning: fopen(http://www.joomlahacks.com/news/mh_announcement.rdf) [function.fopen]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in D:\htdocs\\administrator\components\com_smf\rdf.php on line 40

Fatal error: Maximum execution time of 30 seconds exceeded in D:\htdocs\\administrator\components\com_smf\rdf.php on line 40


This seems to be trying to talk back to the joomlahacks server and failing (it would, the server is not allowed to access the internet).  But this is stopping the configuration of the bridge.  There is no save button so I cannot complete the configuration.

Help.

Skunk

User avatar
skunk
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Mon Aug 22, 2005 12:51 pm
Location: Cumbria - UK
Contact:

Re: Joomla-SMF 1.0.2a Config RDF Problem

Post by skunk » Mon Nov 28, 2005 1:34 pm

I commented out the following lines from the rdf.php file

Code: Select all

if($age > $timeToLive) {
  			$ip = gethostbyname(substr($url,strpos($url,'www'),strpos($url,'.com')-3));
  			if ($ip == substr($url,strpos($url,'www'),strpos($url,'.com')-3)) {
  				return false;
  			}
  			$rdfHandle = fopen($url,"r"); // Open the RDF file for reading
  			$rdfData = fread($rdfHandle, 64000) ; // Read in the RDF data. 64K limit on filesize, should be enough.
 			fclose($rdfHandle); // Close the Data feed

  			// OK there is more recent news, so rewrite the cached news file..
  			$localFile = fopen($basename, "w") ; // Open the local file for writing
  			fwrite($localFile, $rdfData ) ; // Pump in all the data into the file.
  			fclose($localFile) ; // Close the local file after writing to it
  		} // end IF
and the page loads correctly with just the following error at the bottom:

Code: Select all

 Error: Cannot reach JoomlaHacks.com feed!
But this does not stop the configuration running.  Is there some way to have the RDF fail to load and not crash the configuration page.  BTW my php is just not up to that task.

Cheers

Skunk

User avatar
chadness
Joomla! Guru
Joomla! Guru
Posts: 768
Joined: Mon Aug 22, 2005 5:43 pm
Location: Minneapolis, MN
Contact:

Re: Joomla-SMF 1.0.2a Config RDF Problem

Post by chadness » Mon Nov 28, 2005 3:00 pm

You might want to ask this in the joomlahacks.com forum.


Locked

Return to “SMF - Simplemachines.org Forum”