Loading...
 
Features / Usability

Features / Usability


tikilib bug not fixed yet

posts: 51 United States

I had posted this fix for RSS on sourceforge some time ago. I made the fix locally.

I noticed someone did a lot of work on RSS recently, so I put the tikilib and rss.lib from 1.8 branch in my directory.

This bug still wasn't fixed, and I wanted to make sure this got on someone's radar biggrin.

In tikilib - sorry for RSSLIST.

Just below this, you will find a loop using j=1 as the initalizer.

This should be j=0;

With j=1, it always "skips" the first item in the RSS feed.

posts: 175 Canada

Hey bobzim, thanks!
I had searched around looking for this problems solution. I found stuff about it but no resolve and this was bugging me. I was not sure if it was what I was doing or a tikiwiki problem.

I tried your fix and it worked like a charm! Hardly any use having a news feeder if it does not say what is new.

So is this going to break something else? I have NO real knowledge about this code stuff but am slowly learning!

Thanks again, James



posts: 2

> ohertel:
> fixed for 1.8.1

New to Tiki.

Wondering if the "bug not fixed yet" is this:

My Tiki installation can read another source's RSS feed - like that of the articles on tikiwiki.org, http://tikiwiki.org/tiki-articles_rss.php?ver=2&css=y, (which I can then include in a user module) and that's great.

My Tiki installation can produce RSS feeds from the various things I add to Tiki installation (Articles, Blogs, Forums, etc.) and that's great.

But when I try to get Tiki to read a feed that it produces, Tiki dies.

For example, I created some articles in my Tiki and then clicked on the "RSS Articles" link in the botton bar of my Tiki. I then copied the URL of that (what I'm calling a) feed . . .

http://my.iti.biti.tiki.wiki.co/tiki-articles_rss.php?ver=2&css=y

. . . into a seperate RSS aggregator (built with Informa). It looks good.

But when I use the same URL in creating an RSS module in my Tiki (and then use the RSS module in a user module and then "assign" the user module, and then let, say, the Anonymous group see it) . . . Tiki crashes.

Is my understanding correct, that Tiki (1.8.1) can't read its own RSS feeds?

Could some one please show me how make RSS modules of the RSS feeds my Tiki produces?

Thanks in advance,

Greg.

posts: 175 Canada

> Gregoreo:

> Is my understanding correct, that Tiki (1.8.1) can't read its own RSS feeds?
>
> Could some one please show me how make RSS modules of the RSS feeds my Tiki produces?
>
> Thanks in advance,
>
> Greg.

Hi, just a follow up to say to Gregoreo, These KINDA work for me at my 181 test site. Did you check out this page? RssModulesDoc

I made a feed with /tiki-admin_rssmodules.php
I copied the feed link from the list at the bottom of the page.
http://www.studiolife.net/tikiwiki18/tiki-articles_rss.php?ver=2&css=y
then I inserted this in my wiki page.
{rss id=1 max=3}
This worked like a charm!

HOWEVER, when I put this into a module it seems it did bring my system down! My server load went up to 40! Is there some kind of loop happening? I will play around again but fear getting my other clients upset at me if I blow up the server!

I also got these errors.
Xml error: junk after document element-4, at the top of the page
Xml error: syntax error-1, in the module

James,

Any one have thoughts on this?

posts: 2

James:

> I made a feed with /tiki-admin_rssmodules.php
> I copied the feed link from the list at the bottom of the page.
> http://www.studiolife.net/tikiwiki18/tiki-articles_rss.php?ver=2&css=y
> then I inserted this in my wiki page.
> {rss id=1 max=3}
> This worked like a charm!

That works for me, too (aside from annoying bullets that appear outside of the frame around the wiki page's content).

> HOWEVER, when I put this into a module it seems it did bring my system down! My server load went up to 40! Is there some kind of loop happening? I will play around again but fear getting my other clients upset at me if I blow up the server!

That's pretty much what happend to me.

> I also got these errors.
> Xml error: junk after document element-4, at the top of the page
> Xml error: syntax error-1, in the module

I didn't get that. The error message was eventually something like "process failed to complete in maximum time of 30 seconds".

I don't enough about PHP to feel confident in finding the problem myself at this point, but I'll be checking this forum from time to time (I'll be trying to learn PHP in a hurry). So if anyone finds a fix . . . do let me know here.

Thanks.


posts: 2

> ohertel:
> fixed for 1.8.1

New to Tiki.

Wondering if the "bug not fixed yet" is this:

My Tiki installation can read another source's RSS feed - like that of the articles on tikiwiki.org, http://tikiwiki.org/tiki-articles_rss.php?ver=2&css=y, (which I can then include in a user module) and that's great.

My Tiki installation can produce RSS feeds from the various things I add to Tiki installation (Articles, Blogs, Forums, etc.) and that's great.

But when I try to get Tiki to read a feed that it produces, Tiki dies.

For example, I created some articles in my Tiki and then clicked on the "RSS Articles" link in the botton bar of my Tiki. I then copied the URL of that (what I'm calling a) feed . . .

http://my.iti.biti.tiki.wiki.co/tiki-articles_rss.php?ver=2&css=y

. . . into a seperate RSS aggregator (built with Informa). It looks good.

But when I use the same URL in creating an RSS module in my Tiki (and then use the RSS module in a user module and then "assign" the user module, and then let, say, the Anonymous group see it) . . . Tiki crashes.

Is my understanding correct, that Tiki (1.8.1) can't read its own RSS feeds?

Could some one please show me how make RSS modules of the RSS feeds my Tiki produces?

Thanks in advance,

Greg.

posts: 175 Canada

> Gregoreo:

> Is my understanding correct, that Tiki (1.8.1) can't read its own RSS feeds?
>
> Could some one please show me how make RSS modules of the RSS feeds my Tiki produces?
>
> Thanks in advance,
>
> Greg.

Hi, just a follow up to say to Gregoreo, These KINDA work for me at my 181 test site. Did you check out this page? RssModulesDoc

I made a feed with /tiki-admin_rssmodules.php
I copied the feed link from the list at the bottom of the page.
http://www.studiolife.net/tikiwiki18/tiki-articles_rss.php?ver=2&css=y
then I inserted this in my wiki page.
{rss id=1 max=3}
This worked like a charm!

HOWEVER, when I put this into a module it seems it did bring my system down! My server load went up to 40! Is there some kind of loop happening? I will play around again but fear getting my other clients upset at me if I blow up the server!

I also got these errors.
Xml error: junk after document element-4, at the top of the page
Xml error: syntax error-1, in the module

James,

Any one have thoughts on this?

posts: 2

James:

> I made a feed with /tiki-admin_rssmodules.php
> I copied the feed link from the list at the bottom of the page.
> http://www.studiolife.net/tikiwiki18/tiki-articles_rss.php?ver=2&css=y
> then I inserted this in my wiki page.
> {rss id=1 max=3}
> This worked like a charm!

That works for me, too (aside from annoying bullets that appear outside of the frame around the wiki page's content).

> HOWEVER, when I put this into a module it seems it did bring my system down! My server load went up to 40! Is there some kind of loop happening? I will play around again but fear getting my other clients upset at me if I blow up the server!

That's pretty much what happend to me.

> I also got these errors.
> Xml error: junk after document element-4, at the top of the page
> Xml error: syntax error-1, in the module

I didn't get that. The error message was eventually something like "process failed to complete in maximum time of 30 seconds".

I don't enough about PHP to feel confident in finding the problem myself at this point, but I'll be checking this forum from time to time (I'll be trying to learn PHP in a hurry). So if anyone finds a fix . . . do let me know here.

Thanks.



posts: 1001 Canada

Gregoreo/james,
The "Xml error: junk after document element-4, at the top of the page
Xml error: syntax error-1, in the module"
and
"process failed to complete in maximum time of 30 seconds".
are just the same thing viewed from different browsers AFAIK (the first would be Internet Explorer).


posts: 175 Canada

Hi.
OK I am posting a new reply here to bring this up frount.

We have a few ideas happening here and most have been resolved. However, the one idea that may still be a problem is in the exchange with myself and Gregoreo, NOTE; this was with a 1.8x site,

jamesoftopiya, HOWEVER, when I put this into a module it seems it did bring my system down! My server load went up to 40! Is there some kind of loop happening? I will play around again but fear getting my other clients upset at me if I blow up the server!
SEE BELOW,


Is this a BUG? I am sorry but I have no time to explore if I am doing something wrong as I do not need this feature (at this time) . But it really seems like this could be a big prob if it happens to others!

James

Side note, re Chealer9's comments

Gregoreo/james,

The "Xml error: junk after document element-4, at the top of the page
Xml error: syntax error-1, in the module"
and
"process failed to complete in maximum time of 30 seconds".

are just the same thing viewed from different browsers AFAIK (the first would be Internet Explorer).


The first and second errors were mine and they came from Mozzilla. I never got a time out message as my server was to busy crashing! I have got the "Xml error: junk after document element" error before (with mozzilla) when using rss but it did not cause as much grief!

Thoughts?
James