r2 - 25 Apr 2008 - 05:16:15 - VincentNewsumYou are here: TWiki >  Support Web > DBCachePluginWebDBexpandPath
Tags:
, create new tag

Question

Hi, I discovered a problem when using BlogUp/BlogPlugin replies.

The comments are rendered with negative dates.

I tried hard to find the cause and I believe it is because the 'BaseRef' field is set to a wrong topic name.
This BaseRef topicName is set in ....BlogWeb/RenderAddComment using:

'%DBQUERY{web="Support" topic="DBCachePluginWebDBexpandPath" format="$expand(BaseRef or name)"}%'

This in turn calls DBCachePlugin::WebDB::expandPath($theRoot, $thePath):
With $theRoot set to a DBCacheContrib::Map reference and $thePath set to 'BaseRef or name'.
When getting the name parameter, it first checks if the topic contains a form and then gets the name parameter of the form instead of returning the name parameter of the topic itself.

This results in problems, because I think RenderAddComments wants to have the name of the topic and not the name of the form that is used to create the topic.

I wonder what I have done wrong, because I don't see this behaviour in other TWiki/Blogs.

Could this be a version compatibility issue? What can I do to resolve this issue?

Thanks for any help.

Regards,

Vincent.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: GluePlugin? SpreadSheetPlugin? IfDefinedPlugin? AliasPlugin? BlogPlugin? BreadCrumbsPlugin? CommentPlugin? DBCachePlugin? EditTablePlugin? FilterPlugin? FlexWebListPlugin? HeadlinesPlugin? ImagePlugin? InterwikiPlugin? JQueryPlugin? NatSkinPlugin? PreferencesPlugin? RedDotPlugin? SlideShowPlugin? SmiliesPlugin? TablePlugin? TagCloudPlugin? TimeSincePlugin? TwistyPlugin? UserInfoPlugin?
Server OS: OpenSuSE? 10.3
Web server: Apache/2.2.4 (Linux/SUSE) mod_perl/2.0.3 Perl/v5.8.8
Perl version: 5.8.8
Client OS: OpenSuSE? 10.3
Web Browser: Firefox 2.0.0.13
Categories: Plugins
-- VincentNewsum - 31 Mar 2008

Answer

Closing this question unanswered, thanks.

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

 
Change status to:

Topic attachments
I Attachment Action Size Date Who Comment
htmlhtml configure.html manage 182.6 K 31 Mar 2008 - 22:27 VincentNewsum My configure output in case it's needed....
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo