TinyPortal

Development => Support => Topic started by: Jeff on November 11, 2005, 07:15:30 AM

Title: RSS feed "fread()" error
Post by: Jeff on November 11, 2005, 07:15:30 AM
New install of TP v0.75, on SMF 1.0.5.  running helios tp theme.  In TP admin I intended to try out a RSS feed, but did things apparently out of order.  I turned on the block before supplying a valid RSS feed url, and now I receive the following error at my forum:

An Error Has Occurred!
2: fread(): supplied argument is not a valid stream resource
File: /home/xxxxxx/www/cbrlist.com/htdocs/forum/Sources/TPortal.php
Line: 1034

I have searched and found people with similar problems related to a 'r' or "r" tag in the TPortal.php file, but this is not the problem.

Right now, I can't figure out how/where to manually enter the RSS url, or to shut this box off to do it right.

From the forum GUI, I can't do any administration as it errors out to the error shown above.  I will have to edit the file(s) manually, but I don't know which files to modify or where to do it.

Any help would be appreciated.
Title: Re: RSS feed "fread()" error
Post by: bloc on November 11, 2005, 02:09:23 PM
you can open up TportalBlocks.tempalte and simply rename "function TPortal_rss()" to "function TPortal_none()". Then the rss block will not render and you can delete/adjust the block again in TPadmin.

Remember to rename back once you want rss blocks to work again.
Title: Re: RSS feed "fread()" error
Post by: Jeff on November 11, 2005, 02:39:39 PM
Thanks Bloc, I'll try it tonight.

Ultimately, I want the block to use RSS.  I just performed the sequence wrong by turning the block on for RSS without having an URL input.

Not sure if you have this tagged as a bug to fix in future releases, but that's a real GOTCHA because once you do it, you can't change themes, or do any administration through the GUI.

Thanks again.
Title: Re: RSS feed "fread()" error
Post by: bloc on November 11, 2005, 06:07:48 PM
Its on top of my list: display the forum without any blocks, giving you the option to correct any mistakes. Basically just adding "noblocks" to the query, like "index.php?action=forum;noblocks"
Title: Re: RSS feed "fread()" error
Post by: Jeff on November 11, 2005, 06:35:30 PM
Perfect!

You're awesome (as usual)...
Title: Re: RSS feed "fread()" error
Post by: elpvn on November 16, 2005, 02:53:28 AM
How to resize RSS new block ? It's too ....hight  :buck2: !
Title: Re: RSS feed "fread()" error
Post by: IchBin on November 16, 2005, 04:49:31 AM
That feature is not available yet elpvn.
Title: Re: RSS feed "fread()" error
Post by: elpvn on November 16, 2005, 06:26:22 AM
Oh ! What's a pity, I'm need to resize it for my site to run this RSS link:

http://www.pcworld.com.vn/pcworld/rss/

:buck2:

Thanks
Title: Re: RSS feed "fread()" error (RSS blanks screen)
Post by: iowamf on November 21, 2005, 08:13:54 PM
I had RSS working fine for weeks but then something in the feed must have made it go crazy today.

The RSS block was on the left and I couldn't get GUI access to anything.

Was able to go into phpmyAdmin and edit TPortal_Blocks to remove the RSS feed and the GUI came back.

The log was filled with a few pages of these:

2: fread(): supplied argument is not a valid stream resource
File: /home/qaxjlcxx/public_html/portal/Sources/TPortal.php
Line: 1034

Perhaps having RSS blocks on the left is not a good idea at the moment?
Title: Re: RSS feed "fread()" error
Post by: bloc on November 21, 2005, 10:40:20 PM
No. :)

For this reason and many others I have already added a option to show the site without any blocks by simplay adding ;noblocks to the adress. it will only work for admin though, since thats the one that will have any real use for it.
Title: Re: RSS feed "fread()" error
Post by: iowamf on November 21, 2005, 10:58:14 PM
that will be a nice admin/rescue feature - the bad thing about that nice feature is people won't get good at phpmyadmin or mySQL  ;)

Wish I could have provided more info on what was in the feed that made it go gonzo - but the RSS feed was coming from this site (native SMF I believe - most likely out of TP's control).

Your new feature of "collapsable" blocks (you better give that feature a name quick) could make RSS side blocks a much more useable feature as I could see putting in many RSS side blocks if they could be "minimized" ... at present, one RSS side block could monopilize an entire column.