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

Superuser: "You are not allowed to add pages" #38

Open
emp302 opened this issue Dec 25, 2014 · 7 comments
Open

Superuser: "You are not allowed to add pages" #38

emp302 opened this issue Dec 25, 2014 · 7 comments
Labels

Comments

@emp302
Copy link

emp302 commented Dec 25, 2014

Environment: Release 2014-09-29b "Hrun"

  • "Add new page" plug-in installed using extension manager
  • Default plug-in configuration
  • ACL is enabled

Symptom

  • After installation of plug-in pages may be created as documented.
  • Once logged out and re-logged in (as superuser) plug-in shows message as in subject.
  • Workaround: Re-install plug-in using extension manager to enable functionality during current session

Reproducibility: Always

Is this a known issue?
How does plug-in evaluate whether user is permitted to create pages in a given namespace (Dokuwiki ACL or file permissions)?

Thanks a lot for this great plug-in, which is a must!

@viemmsakh
Copy link

I recently installed dokuwiki to track county cis documentation. I added this plugin to expedite adding new pages; however, I am consistently running into this bug. I do want to add note, that you don't have to re-install the plugin to enable functionality, simply disabling and re-enabling it will suffice.

Another workaround, which I just stumbled across:

  • Browse to lib/plugins/addnewpage
  • Open syntax.php
  • Search for "$renderer->doc .= $this->getLang('nooption');" (line 92)
  • Comment out this line
  • Add new line and enter "$renderer->doc .= '';"
  • Save and refresh wiki. You may need to log out and log back in.

Unfortunately, by doing this when logged out the Add Page is still present. However, if you ACL is set correctly logged out users will be blocked from creating a new page anyway.

@lucker999
Copy link

Has exactly he same issue as emp302 described (Hrun 2014-09-29d)
The workaround suggested by viemmsakh doesn't work for me, additionally some pages of the wiki don't open with edites syntax.php

The plugin is a must if you expect another random users should create a pages in the wiki.

@Olivier-Axion
Copy link

DokuWiki speeds up browsing through the wiki by caching parsed files. Did you try to prevent the page from being cached by using the NOCACHE tag?

~~NOCACHE~~

@sshafiullah
Copy link

Placing NOCACHE on the page that contains the form solves this issue. I suggest placing this solution prominently on the README as the plugin is unusable without it

@dregad
Copy link
Owner

dregad commented Sep 25, 2023

Closing as I'm not able to reproduce this with latest version of the plugin (tested on DokuWiki Jack Jackrum). Feel free to reopen and provide details if the problem still exists.

@dregad dregad closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2023
@dregad
Copy link
Owner

dregad commented Sep 25, 2023

Nevermind, my test page had ~~NOCACHE~~ 😳

@dregad dregad reopened this Sep 25, 2023
@dregad dregad added the bug label Sep 25, 2023
@dregad
Copy link
Owner

dregad commented Sep 25, 2023

I added a FAQ on the plugin's page to document the workaround.

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

No branches or pull requests

6 participants