Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter 12 months ago #20

Open
HMJR opened this issue Dec 3, 2013 · 6 comments
Open

Filter 12 months ago #20

HMJR opened this issue Dec 3, 2013 · 6 comments

Comments

@HMJR
Copy link

HMJR commented Dec 3, 2013

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

Someone any idea?

@MrBertie
Copy link
Owner

MrBertie commented Dec 4, 2013

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
Copy link
Author

HMJR commented Dec 4, 2013

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
Copy link
Owner

MrBertie commented Dec 5, 2013

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 [email protected] 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//issues/20#issuecomment-29843040
.

@HMJR
Copy link
Author

HMJR commented Dec 16, 2013

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
Copy link

dferch commented Mar 24, 2015

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
Copy link
Owner

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

On 24 March 2015 at 10:00, dferch [email protected] 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
#20 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants