MrBertie / pagequery

An all-in-one, multi-column page listing plugin for Dokuwiki
http://www.dokuwiki.org/plugin:pagequery
16 stars 19 forks source link

Filter 12 months ago #20

Open HMJR opened 10 years ago

HMJR commented 10 years ago

After upgrading to the latest version (2013-10-11) filter=cdate:12 months ago->; results in zero pages.

Someone any idea?

MrBertie commented 10 years ago

I just tried the same query on my own wiki and it works okay. I tried different months also and the result is correct. Do you get any error messages?

HMJR commented 10 years ago

No error message, just a blank page that is no longer editable. For your information the complete script from the page on our website (http://nl.offinews.org/doku.php?id=wiki:maand) NOCACHE {{pagequery>-ns:wiki:sub *; filter=!name:opinie|algemeen|branche|copyright|financieel|jaar|kantoorapparatuur|kantoorinrichting|kantoor_supplies|maand|navigation|overig_nieuws|personalia|start|start_pagina|stationery|aanvraag|stats|formulier; filter=cdate:12 months ago->; sort=cyearmonthday; group;cols=3; display=title;nostart}}

MrBertie commented 10 years ago

Could you make sure that your have the very latest version, there may be another source to the error.

On 4 December 2013 22:39, HMJR notifications@github.com wrote:

No error message, just a blank page that is no longer editable. For your information the complete script from the page on our website ( http://nl.offinews.org/doku.php?id=wiki:maand) NOCACHE {{pagequery>-ns:wiki:sub *;

filter=!name:opinie|algemeen|branche|copyright|financieel|jaar|kantoorapparatuur|kantoorinrichting|kantoor_supplies|maand|navigation|overig_nieuws|personalia|start|start_pagina|stationery|aanvraag|stats|formulier; filter=cdate:12 months ago->; sort=cyearmonthday; group;cols=3; display=title;nostart}}

— Reply to this email directly or view it on GitHubhttps://github.com/MrBertie/pagequery/issues/20#issuecomment-29843040 .

HMJR commented 10 years ago

Plugin: pagequery Bron: https://github.com/MrBertie/pagequery/zipball/master Geïnstalleerd: Tue, 03 Dec 2013 13:05:25 +0100 Laatst bijgewerkt: Mon, 16 Dec 2013 16:58:21 +0100 Naam: PageQuery Plugin Datum: 2013-10-11

Unfortunately, even after the update the same result.

dferch commented 9 years ago

Hi, I've the same issue. But I've got an error message:

"PHP Fatal error: Call to private method PageQuery::_filter_by_date() from context '' in /mypath/lib/plugins/pagequery/inc/pagequery.php on line 947, ..."

Seems the private method call on filters with date ranges is protected and can't be used. My filter looks like this:

filter=cname:01.01.2015->31.12.2015;

We're running DokuWiki 2014-09-29 (Hrun) with Pagequery 2014-11-09. It's running on Apache 2.2 with PHP 5.3.3. Not sure if this matter.

Would be nice to get a solution for this :-)

Greetings, David

MrBertie commented 9 years ago

Yep, sounds like a bug. I'll check once I get time.

On 24 March 2015 at 10:00, dferch notifications@github.com wrote:

Hi, I've the same issue. But I've got an error message:

"PHP Fatal error: Call to private method PageQuery::_filter_by_date() from context '' in /mypath/lib/plugins/pagequery/inc/pagequery.php on line 947, ..."

Seems the private method call on filters with date ranges is protected and can't be used. My filter looks like this:

filter=cname:01.01.2015->31.12.2015;

We're running DokuWiki 2014-09-29 (Hrun) with Pagequery 2014-11-09. It's running on Apache 2.2 with PHP 5.3.3. Not sure if this matter.

Would be nice to get a solution for this :-)

Greetings, David

— Reply to this email directly or view it on GitHub https://github.com/MrBertie/pagequery/issues/20#issuecomment-85388238.