TinyPortal

Development => Support => Topic started by: Ray on September 02, 2005, 05:58:58 PM

Title: Use of undefined constant r - assumed 'r' error
Post by: Ray on September 02, 2005, 05:58:58 PM
Getting a lot of these errors -- any ideas?

http://www.rranderson.com/dvd/index.php 
8: Use of undefined constant r - assumed 'r'
File: D:\RRAnderson\DVD\Sources\TPortal.php
Line: 999
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: bloc on September 02, 2005, 06:15:41 PM
When you used the RSS function/block..did it work alright? or did it show nothing? The error is related to that.
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: Ray on September 02, 2005, 06:31:41 PM
rss is working great ;D
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: bloc on September 02, 2005, 07:38:37 PM
Hm. Strange then. I will have to see it its pops up with me too.

Is it many errors? like..every page view where the rss feed is shown?
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: Ray on September 02, 2005, 07:48:48 PM
Seems just when I click on the rss box to read the news
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: ontap on September 03, 2005, 06:16:07 AM
i tried to mess around with the rss block and when i activated the block it messed up the forums totally, count not see any posts/topics or even the admin section, i had to go into phpmyadmin and disable the block.

the error on the page:
2: fopen(-no content-): failed to open stream: No such file or directory
File: smf\forums\Sources\TPortal.php
Line: 999

could you explain how the rss block, what url  must go into RSS feed for it to work?.
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: bloc on September 03, 2005, 08:24:39 AM
It needs a xml file or a physical file that can be read. So if the file don't exist, you get that error. This block type is unfinshed, I need to add checks and cache options too. But make sure the path points to a really working feed.
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: Ray on September 04, 2005, 04:56:19 PM
I am using http://rss.cnn.com/rss/cnn_topstories.rss as the feed -- just put this link in and the block will do the rest
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: bloc on September 05, 2005, 11:15:47 AM
Hm, it exists, thats for sure.
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: Ray on September 06, 2005, 10:28:14 PM
Getting this error on every thing I or guest does on the site -- anything I can change??
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: bloc on September 06, 2005, 11:31:11 PM
Open up Tportal.php..find this line:
// Open the actual datafile:

$fp = fopen($backend, r);

replace with:
// Open the actual datafile:

$fp = fopen($backend, "r");


Does that change anything?
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: Ray on September 06, 2005, 11:43:56 PM
Will try it when I get home BLoc -- Thanks
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: Ray on September 07, 2005, 02:13:51 AM
Bloc you are good

"r" seem to fix it thanks again
Title: Re: Use of undefined constant r - assumed 'r' error
Post by: bloc on September 07, 2005, 12:20:59 PM
Good to hear. This goes into the files as well.