hitechtoys
I have searched the Forums and elsewhere for an answer... I'll keep researching but hoping that someone has run into this before...
I am using the latest download version of the “Closed” DokuWiki. I am building a Knowledgebase of forms and processes for work. I created a Start page for ALL users to view and a Menu page. Anything beyond that requires a login.
As admin, I can see all images and have access to all links. Click the link, the forms displays perfectly. So no issue with capital letters or spaces.
However, when I login as a User, I can access all the pages, but when I click on a link, a Form as an example, a new page is displayed with the word “Forbidden”.
So, I'm fairly sure it's an ACL issue. For example, I have the page “Office Administration” available to all users. Do I need to somehow create a namespace or page for the link then give permission again? I was hoping that by making the page accessible to all users, this would also allow them the click on all links on that page as well…?? How can I make the links accessible as well to all users?
Appreciate any help you can offer! I have only been using Dokuwiki for a couple of weeks but I am very happy with the results for far!
Thank you!
06/23/2017
Is this part of the problem?
"Sometimes the problem also occurs when certain parameters are passed in the URL, especially when they contain external URLs like when using external images that are loaded from DokuWiki's image cache system in lib/exe/fetch.php".
Image links are displayed to admin only. Not even registered users can view the images... text is fine... images show as broken links.
hitechtoys
Continuing...
Even completely logged out... I can view the Start page and Menu page... the text displays no problem, but the images on the page do not... even when a user is logged in... and has permission to view the page... the images are still shown as a broken link. So I am guessing that my images are in the wrong place. Guessing the images must be stored in a place other than the ROOT directory.
Still working my way through the manual... thanks!
sfitcs
The images must be in a directory (beneath $DokuWiki/data/media) that the viewer has permissions to read.
The simplest way to manage images/media is:-
if the media is only linked from one namespace or page - put it in the media directory that corresponds to the page directory that links to it
IF the media is linked more than once:-
IF it is to be viewed by admin/$someGroup only - put it in a media directory that only admin/$someGroup have viewing rights to
IF it is to be viewed by everyone - put it in a media directory that everyone has viewing rights to
e.g.:-
data/pages/pythons/*.txt is viewable by everyone and links to media in data/media/pythons (which is viewable by everyone)
data/pages/admin/*.txt is viewable only by admin and links to media in data/media/admin (which is viewable only by admin) - I'll also use data/media/admin to hold media linked to from multiple pages that are only viewable by admin.
data/media/everyone can be used to hold media viewable by anyone and that are linked from multiple pages/namespaces (even when there is no corresponding data/pages/everyone)
Note that when you set viewing permission for a namespace it includes both the data/pages and data/media directories for the given namespace.
I try not to just dump media in the root (data/media) unless those media are used on all pages (e.g. logo.png, favicon.ico, etc) or managing media becomes difficult.