Hi Markus,
> * There is a new RSS-Feed feature that allows you to subscribe to query
> results. Besides the associated performance issues with thousands of users
> re-issuing queries regularly, this should be an extremely cool thing. It
> simply works by creating an inline query with the new format "rss", which
> creates a link to an RSS feed. The parameters "rsstitle" and "rssdescription"
> can be used to describe the feed, "searchlabel" is available to customise the
> link text. Print requests are largely ignored right now, unless they use the
> label "creator" or "date" in which case they are used for specifying the
> according fields in RSS. Otherwise the last wiki editor and modification date
> is used. An example is to be found at the top of [1]. Configuration
> parameters are available for enabling/disabling this feature, and to choose
> between complete embedding of articles and plain result lists.
I've tried to use the following wiki-code to enable RSS feed:
{{#ask: [[Category:News]] [[Date::+]]|
?Date|
sort=Date|
order=descending|
limit=20|
format=rss|
rsstitle=Our news|
rssdescription=News|
default=Unfortunately there's no news|
searchlabel=RSS|
}}
(translated from Russian)
however, it gives me
Fatal error: Call to a member function getFullURL() on a non-object in
extensions/SemanticMediaWiki/includes/SMW_QP_RSSlink.php> on line 59
The ask query is copy/paste converted from perfectly working ask query
where the format=template.
One note - my site default language ($wgLanguageCode) is "ru".
Variables dump from SMWRSSResultPrinter::getRSSURL is attached.
It seems that link text, returned by $this->getRSSTitle($res) doesn't pass
sanity check in Title::secureAndSplit(), thus NULL is being returned
by Title::newFromText, then getFullURL gives an error.
Dmitriy
object(SMWQueryResult)#133 (6) {
["m_content:protected"]=>
array(0) {
}
["m_printrequests:protected"]=>
array(2) {
["2::"]=>
object(SMWPrintRequest)#245 (5) {
["m_mode:protected"]=>
int(2)
["m_label:protected"]=>
string(0) ""
["m_title:protected"]=>
NULL
["m_typeid:protected"]=>
bool(false)
["m_outputformat:protected"]=>
string(0) ""
}
["1:СвойÑÑво:ÐаÑа::"]=>
object(SMWPrintRequest)#244 (5) {
["m_mode:protected"]=>
int(1)
["m_label:protected"]=>
string(8) "ÐаÑа"
["m_title:protected"]=>
object(Title)#241 (19) {
["mTextform"]=>
string(8) "ÐаÑа"
["mUrlform"]=>
string(24) "%D0%94%D0%B0%D1%82%D0%B0"
["mDbkeyform"]=>
string(8) "ÐаÑа"
["mUserCaseDBKey"]=>
string(8) "ÐаÑа"
["mNamespace"]=>
int(102)
["mInterwiki"]=>
string(0) ""
["mFragment"]=>
string(0) ""
["mArticleID"]=>
int(-1)
["mLatestID"]=>
bool(false)
["mRestrictions"]=>
array(0) {
}
["mCascadeRestriction"]=>
NULL
["mRestrictionsExpiry"]=>
NULL
["mHasCascadingRestrictions"]=>
NULL
["mCascadeRestrictionSources"]=>
NULL
["mRestrictionsLoaded"]=>
bool(false)
["mPrefixedText"]=>
string(25) "СвойÑÑво:ÐаÑа"
["mDefaultNamespace"]=>
int(102)
["mWatched"]=>
NULL
["mOldRestrictions"]=>
bool(false)
}
["m_typeid:protected"]=>
bool(false)
["m_outputformat:protected"]=>
string(0) ""
}
}
["m_furtherres:protected"]=>
bool(false)
["m_query:protected"]=>
object(SMWQuery)#175 (11) {
["sort"]=>
bool(true)
["ascending"]=>
bool(false)
["sortkey"]=>
string(8) "ÐаÑа"
["querymode"]=>
int(4)
["m_limit:protected"]=>
int(20)
["m_offset:protected"]=>
int(0)
["m_description:protected"]=>
object(SMWConjunction)#237 (2) {
["m_descriptions:protected"]=>
array(2) {
[0]=>
object(SMWClassDescription)#240 (2) {
["m_titles:protected"]=>
array(1) {
[0]=>
object(Title)#136 (19) {
["mTextform"]=>
string(14) "ÐовоÑÑи"
["mUrlform"]=>
string(42) "%D0%9D%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8"
["mDbkeyform"]=>
string(14) "ÐовоÑÑи"
["mUserCaseDBKey"]=>
string(14) "ÐовоÑÑи"
["mNamespace"]=>
int(14)
["mInterwiki"]=>
string(0) ""
["mFragment"]=>
string(0) ""
["mArticleID"]=>
int(-1)
["mLatestID"]=>
bool(false)
["mRestrictions"]=>
array(0) {
}
["mCascadeRestriction"]=>
NULL
["mRestrictionsExpiry"]=>
NULL
["mHasCascadingRestrictions"]=>
NULL
["mCascadeRestrictionSources"]=>
NULL
["mRestrictionsLoaded"]=>
bool(false)
["mPrefixedText"]=>
NULL
["mDefaultNamespace"]=>
int(14)
["mWatched"]=>
NULL
["mOldRestrictions"]=>
bool(false)
}
}
["m_printreqs:protected"]=>
array(0) {
}
}
[1]=>
object(SMWSomeProperty)#231 (3) {
["m_description:protected"]=>
object(SMWThingDescription)#232 (1) {
["m_printreqs:protected"]=>
array(0) {
}
}
["m_property:protected"]=>
object(Title)#137 (19) {
["mTextform"]=>
string(8) "ÐаÑа"
["mUrlform"]=>
string(24) "%D0%94%D0%B0%D1%82%D0%B0"
["mDbkeyform"]=>
string(8) "ÐаÑа"
["mUserCaseDBKey"]=>
string(8) "ÐаÑа"
["mNamespace"]=>
int(102)
["mInterwiki"]=>
string(0) ""
["mFragment"]=>
string(0) ""
["mArticleID"]=>
int(-1)
["mLatestID"]=>
bool(false)
["mRestrictions"]=>
array(0) {
}
["mCascadeRestriction"]=>
NULL
["mRestrictionsExpiry"]=>
NULL
["mHasCascadingRestrictions"]=>
NULL
["mCascadeRestrictionSources"]=>
NULL
["mRestrictionsLoaded"]=>
bool(false)
["mPrefixedText"]=>
NULL
["mDefaultNamespace"]=>
int(102)
["mWatched"]=>
NULL
["mOldRestrictions"]=>
bool(false)
}
["m_printreqs:protected"]=>
array(0) {
}
}
}
["m_printreqs:protected"]=>
array(2) {
["2::"]=>
object(SMWPrintRequest)#245 (5) {
["m_mode:protected"]=>
int(2)
["m_label:protected"]=>
string(0) ""
["m_title:protected"]=>
NULL
["m_typeid:protected"]=>
bool(false)
["m_outputformat:protected"]=>
string(0) ""
}
["1:СвойÑÑво:ÐаÑа::"]=>
object(SMWPrintRequest)#244 (5) {
["m_mode:protected"]=>
int(1)
["m_label:protected"]=>
string(8) "ÐаÑа"
["m_title:protected"]=>
object(Title)#241 (19) {
["mTextform"]=>
string(8) "ÐаÑа"
["mUrlform"]=>
string(24) "%D0%94%D0%B0%D1%82%D0%B0"
["mDbkeyform"]=>
string(8) "ÐаÑа"
["mUserCaseDBKey"]=>
string(8) "ÐаÑа"
["mNamespace"]=>
int(102)
["mInterwiki"]=>
string(0) ""
["mFragment"]=>
string(0) ""
["mArticleID"]=>
int(-1)
["mLatestID"]=>
bool(false)
["mRestrictions"]=>
array(0) {
}
["mCascadeRestriction"]=>
NULL
["mRestrictionsExpiry"]=>
NULL
["mHasCascadingRestrictions"]=>
NULL
["mCascadeRestrictionSources"]=>
NULL
["mRestrictionsLoaded"]=>
bool(false)
["mPrefixedText"]=>
string(25) "СвойÑÑво:ÐаÑа"
["mDefaultNamespace"]=>
int(102)
["mWatched"]=>
NULL
["mOldRestrictions"]=>
bool(false)
}
["m_typeid:protected"]=>
bool(false)
["m_outputformat:protected"]=>
string(0) ""
}
}
}
["m_errors:protected"]=>
array(0) {
}
["m_querystring:protected"]=>
string(53) "[[ÐаÑегоÑиÑ:ÐовоÑÑи]] [[ÐаÑа::+]]"
["m_inline:protected"]=>
bool(true)
["m_extraprintouts:protected"]=>
array(1) {
[0]=>
object(SMWPrintRequest)#244 (5) {
["m_mode:protected"]=>
int(1)
["m_label:protected"]=>
string(8) "ÐаÑа"
["m_title:protected"]=>
object(Title)#241 (19) {
["mTextform"]=>
string(8) "ÐаÑа"
["mUrlform"]=>
string(24) "%D0%94%D0%B0%D1%82%D0%B0"
["mDbkeyform"]=>
string(8) "ÐаÑа"
["mUserCaseDBKey"]=>
string(8) "ÐаÑа"
["mNamespace"]=>
int(102)
["mInterwiki"]=>
string(0) ""
["mFragment"]=>
string(0) ""
["mArticleID"]=>
int(-1)
["mLatestID"]=>
bool(false)
["mRestrictions"]=>
array(0) {
}
["mCascadeRestriction"]=>
NULL
["mRestrictionsExpiry"]=>
NULL
["mHasCascadingRestrictions"]=>
NULL
["mCascadeRestrictionSources"]=>
NULL
["mRestrictionsLoaded"]=>
bool(false)
["mPrefixedText"]=>
string(25) "СвойÑÑво:ÐаÑа"
["mDefaultNamespace"]=>
int(102)
["mWatched"]=>
NULL
["mOldRestrictions"]=>
bool(false)
}
["m_typeid:protected"]=>
bool(false)
["m_outputformat:protected"]=>
string(0) ""
}
}
}
["m_querystring:protected"]=>
string(53) "[[ÐаÑегоÑиÑ:ÐовоÑÑи]] [[ÐаÑа::+]]"
["m_extraprintouts:protected"]=>
array(1) {
[0]=>
object(SMWPrintRequest)#244 (5) {
["m_mode:protected"]=>
int(1)
["m_label:protected"]=>
string(8) "ÐаÑа"
["m_title:protected"]=>
object(Title)#241 (19) {
["mTextform"]=>
string(8) "ÐаÑа"
["mUrlform"]=>
string(24) "%D0%94%D0%B0%D1%82%D0%B0"
["mDbkeyform"]=>
string(8) "ÐаÑа"
["mUserCaseDBKey"]=>
string(8) "ÐаÑа"
["mNamespace"]=>
int(102)
["mInterwiki"]=>
string(0) ""
["mFragment"]=>
string(0) ""
["mArticleID"]=>
int(-1)
["mLatestID"]=>
bool(false)
["mRestrictions"]=>
array(0) {
}
["mCascadeRestriction"]=>
NULL
["mRestrictionsExpiry"]=>
NULL
["mHasCascadingRestrictions"]=>
NULL
["mCascadeRestrictionSources"]=>
NULL
["mRestrictionsLoaded"]=>
bool(false)
["mPrefixedText"]=>
string(25) "СвойÑÑво:ÐаÑа"
["mDefaultNamespace"]=>
int(102)
["mWatched"]=>
NULL
["mOldRestrictions"]=>
bool(false)
}
["m_typeid:protected"]=>
bool(false)
["m_outputformat:protected"]=>
string(0) ""
}
}
}
object(SMWRSSResultPrinter)#140 (12) {
["title:protected"]=>
string(126) "ÐовоÑÑи ЯÑоÑлавÑкого
ÐоÑÑдаÑÑÑвенного УнивеÑÑиÑеÑа им.
Ð.Ð.Ðемидова"
["description:protected"]=>
string(23) "ÐовоÑÑи ЯÑÐУ"
["m_params:protected"]=>
array(8) {
["sort"]=>
string(8) "ÐаÑа"
["order"]=>
string(10) "descending"
["limit"]=>
string(2) "20"
["format"]=>
string(3) "rss"
["rsstitle"]=>
string(126) "ÐовоÑÑи ЯÑоÑлавÑкого
ÐоÑÑдаÑÑÑвенного УнивеÑÑиÑеÑа им.
Ð.Ð.Ðемидова"
["rssdescription"]=>
string(23) "ÐовоÑÑи ЯÑÐУ"
["default"]=>
string(84) "Ð ÑожалениÑ, в ÑеÑение меÑÑÑа не
бÑло новоÑÑей"
["searchlabel"]=>
string(3) "RSS"
}
["mFormat:protected"]=>
string(3) "rss"
["mIntro:protected"]=>
string(0) ""
["mSearchlabel:protected"]=>
string(3) "RSS"
["mLinkFirst:protected"]=>
bool(true)
["mLinkOthers:protected"]=>
bool(true)
["mDefault:protected"]=>
string(84) "Ð ÑожалениÑ, в ÑеÑение меÑÑÑа не
бÑло новоÑÑей"
["mShowHeaders:protected"]=>
bool(true)
["mInline:protected"]=>
bool(true)
["mLinker:protected"]=>
object(Linker)#235 (0) {
}
}
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel