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
#2154 - 08/01/06 01:30 PM Re: Error at Control Panel [Re: Philipp]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
That's a good idea Philipp. Will need to check and see how standard it is to have curl compiled in. If all else fails I'll probably fall back to just including an iframe with the latest posts, but would definitely prefer to stick with the rss contents if it's possible.
Top
#2344 - 08/05/06 12:03 PM Re: Error at Control Panel [Re: Rick]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
I think we'll give curl a shot for the next beta just to see how it works on a variety of servers.
Top
#2486 - 08/10/06 02:42 PM Re: Error at Control Panel [Re: d-talk]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Can anyone that was getting this error in b1 and b2 check to see if this is working for them in b3?
Top
#2487 - 08/10/06 03:35 PM Re: Error at Control Panel [Re: Rick]
Ian Spence Offline
Registered: 06/04/06
Posts: 255
I still insist that

Code:
<script type="text/javascript" src="http://www.ubbcentral.com/threadsfeed.js?time=<?php echo time(); ?>"></script>
Is still the best way to handle this.

No curl needed. No php settings need to be modified at all. Just a simple javascript include, with ?time= added so that it doesn't get cached.
Top
#2490 - 08/10/06 03:57 PM Re: Error at Control Panel [Re: Ian Spence]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
That would work, however I'm trying to only use things to accomplish this that are actually available from within .threads. That way when the questions come in on, how do you get the news to display in the control panel, I don't have to tell them it requires a hack/addmon. If all of this fails and it can't be done then I'll end up going that route.
Top
#2962 - 08/29/06 01:20 AM Re: Error at Control Panel [Re: Rick]
Peter Offline

newbie
Registered: 06/20/06
Posts: 39
Loc: Sweden
I still have this problem in B4.

However, this time I don't get anything in the browser. It works for some time but then stops with an empty screen.

Things does however work if I remove the same line as I mentioned earlier, but now it is line 3037.
Top
#3104 - 09/08/06 11:47 AM Re: Error at Control Panel [Re: Peter]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Ok, it looks like we'll probably need to go with a javascript or iframe solution. No way to get this reliably working on all systems with the current way.
Top
#3350 - 09/15/06 09:06 AM Re: Error at Control Panel [Re: Rick]
Peter Offline

newbie
Registered: 06/20/06
Posts: 39
Loc: Sweden
Was this fixed in beta 5?
Ricks last comment does say "No", but the topic has been marked with "fixed in b5".

Directly after installing beta 5, I saw that this was working, however it took long time (at least 30 sec) before the control panel opened.

Now, or rather since yesterday, I was not able to open the control panel any more. When I tried to open it, the browser works for some time and then stops and leaves an empty white screen.
So I went into the code and removed samt line once more (in beta 5 it is line 3039), and then I was able to open the control panel.

As I can recall I see no difference between how the control panel looks now and before.
What is this "raw" line supposed to do?
Is it supposed to get the UBB Announcements or what? I still see them now, even with this line removed.
Top
#3363 - 09/15/06 10:34 AM Re: Error at Control Panel [Re: Peter]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Woops, I switched the code to load them in an iframe, however I forgot to remove the code that tries to do it the old way.
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