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

pagequery breaks data plugin #46

Open
tmo26 opened this issue Dec 9, 2016 · 4 comments
Open

pagequery breaks data plugin #46

tmo26 opened this issue Dec 9, 2016 · 4 comments

Comments

@tmo26
Copy link

tmo26 commented Dec 9, 2016

Dokuwiki: 2016-06-26a "Elenor of Tsort" and prior releases
pagequery plugin: 2014-11-09 (6cae014 )
data plugin: 2016-03-11 and prior versions

Related issue: splitbrain/dokuwiki-plugin-data#187 (Double pid for same dataentry)

Symptoms: Double datasets are created in the data plugin database, although no dataentry has been edited.

Root cause: pagequery plugin (possibly cache related)

Solution: Deactivate pagequery plugin (of course, this is no real solution, since the pagequery plugin is a very useful plugin that must be available)

  • With deactivated pagequery plugin, no doubles occur (at least not within 12h)
  • With activated pagequery plugin and calling a pagequery that runs over all dataentries (https://wiki.openwrt.org/toh/hwdata/index_complete), the doubles occur immediately. This is repeatable.

Request: Fix the pagequery plugin, so that it is compatible with the data plugin.

Remark: https://www.dokuwiki.org/plugin:pagequery shows 2015-03-19 18:40 as last update of the plugin, but when you install the plugin via dokuwikis extension manager, you will end up with version 2014-11-09.

@tmo26
Copy link
Author

tmo26 commented Dec 14, 2016

New information to further encircle the issue:

  • using pagequery with the fulltext option doesn't produce any doubles
  • using pagequery with namespace search with * as the query instantly produces doubles

Looking at the source code of the pagequery plugin I see that fulltext and non-fulltext searches are handled differently. Maybe this is the key?

@tmo26
Copy link
Author

tmo26 commented Mar 30, 2018

This error is getting annoying...
We moved the OpenWrt wiki to a new server, starting fresh from scratch.
Only recently we implemented >200 pages which make use of the pagequery plugin, and it still breaks the dataplugin.

The workaround with adding "fulltext" search does work, but adds complexity to the usage, and oh so easily one forgets about the need for this workaround (I forgot and had to rework all >200 pages.. sigh).

Is this plugin still maintained?
Will there be a fix in the near future?
If not, I would need to switch to nspages or catlist plugins, but I would hate to lose pagequerys functionality, which can not be found in other plugins.

Your help would really be appreciated!

@MrBertie
Copy link
Owner

MrBertie commented Mar 30, 2018 via email

@tmo26
Copy link
Author

tmo26 commented Mar 30, 2018 via email

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

2 participants