Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Telly), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/17/12
Posts: 3
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#1372 - 07/18/06 11:43 PM [FIXED in b5] Error at Control Panel
d-talk Offline
journeyman
Registered: 06/06/06
Posts: 95
Loc: Germany
Hi everyone,

when I enter the control Panel I get the following error:

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /var/www/web10/html/libs/ubbthreads.inc.php on line 2997

Warning: file_get_contents(http://www.ubbcentral.com/boards/ContentIslands/1_rss20.xml) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /var/www/web10/html/libs/ubbthreads.inc.php on line 2997

Warning: Invalid argument supplied for foreach() in /var/www/web10/html/admin/login.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web10/html/libs/ubbthreads.inc.php:2997) in /var/www/web10/html/libs/ubbthreads.inc.php on line

What can I do?


Edited by Rick (09/08/06 07:27 PM)
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#1373 - 07/19/06 12:46 AM Re: Error at Control Panel [Re: d-talk]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Yeah, what it's supposed to be doing is grabbing the rss feed from ubbcentral so anytime you go into the control panel you'll see the latest news and announcements. We do this with a remote file_get_contents. This is disabled on some servers like yours in the php.ini file. We'll probably have to do this a bit differently.
Top
#1380 - 07/19/06 09:14 AM Re: Error at Control Panel [Re: Rick]
Peter Offline

newbie
Registered: 06/20/06
Posts: 39
Loc: Sweden
I have the same problem.
Is there a work-around for this that can be used, or do we have to wait for next beta release?
Top
#1388 - 07/19/06 10:32 AM Re: Error at Control Panel [Re: Peter]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
The only way would be if you have access to your php.ini file. You could then set allow_url_fopen to true to enable it. Other than that, this will need to wait until the next beta.
Top
#1446 - 07/19/06 04:35 PM Re: Error at Control Panel [Re: Rick]
Jamin Offline
newbie
Registered: 06/05/06
Posts: 47
Loc: Dallas, TX
Wordpress's dashboard RSS feed works fine on my server, but Threads' feed doesn't - gives the errors d-talk listed above. So however Wordpress is doing it may be a little more forgiving.

Just a thought, if you're in need of ways to accomplish it. smile

---Jamin
_________________________
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
Top
#1484 - 07/20/06 01:40 AM Re: Error at Control Panel [Re: Jamin]
Peter Offline

newbie
Registered: 06/20/06
Posts: 39
Loc: Sweden
I can now see that I don't have the exact same error output, but the first line is the same.

I made a temporary fix to comment line 2997, and then I was able to open up the Control Panel smile

(allow_url_fopen was already set to "On" in php.ini)
Top
#2147 - 08/01/06 10:29 AM Re: Error at Control Panel [Re: Peter]
Peter Offline

newbie
Registered: 06/20/06
Posts: 39
Loc: Sweden
B2. When I try to access the Control Panel I get this error message, i.e. the same as before an only a new line number:

Quote:
Warning: file_get_contents(http://www.ubbcentral.com/boards/ContentIslands/1_rss20.xml): failed to open stream: Bad file descriptor in c:\prg1\apache group\apache\htdocs\ubbt\libs\ubbthreads.inc.php on line 3010

Fatal error: Maximum execution time of 30 seconds exceeded in c:\prg1\apache group\apache\htdocs\ubbt\libs\ubbthreads.inc.php on line 3010


Same code line causing the same problem.
Code:
	$raw_data = file_get_contents(trim($xml_feed));


I'll solved the problem again by removing the specific line.

Top
#2150 - 08/01/06 12:13 PM Re: Error at Control Panel [Re: Peter]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
I'm amazed this hasnt got me,
as i'm normally the one hit with Server if's n but's....

PHP Version 4.4.2
allow_url_fopen = on

But if i wanted to run these forums on PHP Version 5.1.4
which i could do with a HTACESS map.
Looks like i could be in trouble too.
allow_url_fopen = off

Being on a shared Server, i cant change the settings frown
I want to Run These forums on 5 when tesings finished.
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#2152 - 08/01/06 12:34 PM Re: Error at Control Panel [Re: Mark S]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
This is one of the bugs that wasn't able to be fixed for beta 2. I need to rewrite this whole bit which is why it's not marked as fixed yet wink
Top
#2153 - 08/01/06 01:13 PM Re: Error at Control Panel [Re: Rick]
Philipp Offline
journeyman
Registered: 07/30/06
Posts: 82
You could use curl with fallback to file_get_contents:

Code:
function getFeed($xml_feed) {

	global $xml_data, $item_id;
	
	// Open connection to RSS XML file for parsing.
	if (function_exists("curl_init"))
    {
    	$feed = curl_init(trim($xml_feed));
    	curl_setopt($feed, CURLOPT_RETURNTRANSFER, 1);    			
    	$raw_data = curl_exec($feed);
    	curl_close($feed);    			  		
    }
    else
    {    			
		$raw_data = @file_get_contents(trim($xml_feed));
    }
    
    if (isset($raw_data))
    {
    	
		$xmlParser = xml_parser_create();
	
		// Set up element handler
		xml_set_element_handler( $xmlParser, "startElement", "endElement" );
	
		// Set up character handler
		xml_set_character_data_handler( $xmlParser, "charElement" );
	
		// Parse the data
		xml_parse( $xmlParser, $raw_data);
	
		// Free xml parser from memory
		xml_parser_free( $xmlParser );
		
    }
    else 
    {
    	$xml_data = array();
    }
    	
	return $xml_data;

} // end function getFeed
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
Today at 09:03 AM
Island Permissions
by ThreadsUser
Yesterday at 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10488 Members
36 Forums
33835 Topics
181687 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image