Extension talk:WikiArticleFeeds/LQT Archive 1

Rename?
Whoops, didn't realize there was already an Extension called WikiFeeds out on Meta. In good conscious, I should rename this one. But to what? Now accepting suggestions. Thanks in advance. --Jimbojw 13:59, 5 January 2007 (UTC)


 * I haven't looked at the details of your extension, so if you can find a unique name that would be better, but if not we tend to use the username to distinguish, e.g. "WikiFeeds (Jimbojw)". --HappyDog 03:57, 8 January 2007 (UTC)


 * Thanks HappyDog - I'm thinking about renaming it to "ArticleFeeds" since that's essentially what it does: convert articles to feeds. --Jimbojw 18:02, 8 January 2007 (UTC)


 * Sounds good to me. --HappyDog 23:11, 8 January 2007 (UTC)


 * Done deal - just 'moved' it to Extension:WikiArticleFeeds. When the original WikiFeeds gets ported over from Meta, it can just overwrite the #REDIRECT --Jimbojw 19:47, 3 February 2007 (UTC)

getTitle Error when using version 1.8.2
I'm using MediaWiki 1.8.2 and I've installed the WikiFeeds extension. However, when creating a page using a simple example from the usage instructions, I get the following error: Fatal error: Call to a member function getTitle on a non-object in $IP/extensions/WikiFeeds.php on line 110

Has anyone experienced this? --Cmac4011 01:35, 21 January 2007 (UTC)


 * Thanks for trying out my extension. I unfortunately haven't tried this extension on any version other than 1.6.8 (my provider caps me at PHP 4).


 * I'll be happy to look into this as time permits. Are you getting this on page-preview? or after submitting the page?  I'm wondering if $wgArticle is not being populated for previewed pages.


 * --Jimbojw 18:31, 22 January 2007 (UTC)


 * Thanks sir. To answer your question, I'm getting this error when the published page is being rendered.  If you have any hunches or things you'd like me to try, I'd be glad to play around with the code in my PHP5 environment.


 * --Cmac4011 04:46, 24 January 2007 (UTC)


 * Hey Cmac - sorry for the delay, finally got around to fixing that issue. Turns out that in MW 1.8 and above, the $wgArticle global variable had not been initialized by the time the hooked methods were being executed.  The fix was to turn this line: $title = $wgArticle->getTitle; Into this line: $title = $wgTitle;  In any case, I've now tested on 1.6.8, 1.6.9, 1.8.3 and 1.9.1 - but not 1.8.2 explicitly.  I plan to support 1.6.x, 1.8.x and 1.9.x (as indicated on the extension page), so if you find that it's still acting up, please let me know.  Thanks!
 * --Jimbojw 19:47, 3 February 2007 (UTC)

Only shows one feed, the oldest on the list?
Thank you very much for this extension: exactly what I was looking for! Unfortunately I have two problems that completely elude me. I have MW version 1.7.1 and the page I am taling about is here Anyway I created a test page using only your example here I don't want to bother you but I you could point me to my mistake, if any, it would be so great! Thanks in any case! Guy gmalacrida at gmail.com EDIT: Thank you so much!
 * 1) Only the oldest (last on the list) item shows if you subscribe using the rss or atom links in the toolbox?
 * 2) Although my browser shows a feed icon in the address bar, clicking it opens a blank page with this in the address bar feed:http://www.yonis.ch/wiki/index.php?title=Actualit%C3%A9s&action=feed&feed=atom (NB: if you click on the link though, it will looks OK! You need click the rss icon in the address bar instead to replicate the problem. Also, Looking at the SpecialPages:Version the last line indeed indicates "UnknownAction: wfWikiFeedsAction" in the Hook section?).
 * Take all this away!
 * Just downloaded/installed last version 0.4 and my problems disapeared!


 * No worries - glad you like it! If you run into any more issues, I'll be glad to investigate.  Out of curiosity, how did you find my extension?  I'm always interested in hearing how people discover my creations.  Thanks again!
 * --Jimbojw 22:34, 28 February 2007 (UTC)

Object of class Title could not be converted to string
I'm using this extension on Mediawiki 1.9.3 and it appears there is a small bug which can be duplicated by doing the following.

Noopectro 14:47, 19 March 2007 (UTC)
 * 1) Create a template page, e.g. Template:Updates
 * 2) Add a few headers and text to the template and set up them up to work with WikiArticleFeeds
 * 3) Use the template in another page, E.g. on Main_Page.
 * 4) After using the template, the "RSS Atom" option should appear on the toolbox.
 * 5) Click RSS
 * 6) The following error appears: Catchable fatal error: Object of class Title could not be converted to string in /home/path/to/wiki/extensions/WikiArticleFeeds.php on line 266

EDIT: Turns out that somewhere between step 5 and saving this article, the Atom link does the same thing now too.