-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By SwimToWin
I have a nested page structure that fails for users without superuser permissions:
Works for superusers / non-superusers:
- foo
-- bar
--- page (status: published)
---- page (status: published)
--- page (status: published)
Fails for non-superusers (Works for superusers):
- foo
-- bar
--- page (status: published)
---- page (status: published)
--- page (status: unpublished <- apparently the template structure fails when there's one unpublished page)
Template:
<?php foreach ($page->children('include=all') as $p): #Fails for non-superusers ?> <?=$p->render()?> <?php endforeach; ?> a) Works for non-superusers when I grant Page Edit permissions (on the template) to their assigned role/s.
b) When I remove 'include=all' or 'include=unpublished' then it also works for non-superusers:
<?php foreach ($page->children() as $p): #Works for non-superusers ?> <?=$p->render()?> <?php endforeach; ?> Error message (non-superusers)
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Error has been logged.
/www/site/assets/logs/errors.txt
/foo/bar/baz/ Error: Exception: Page '/foo/bar/baz/quz/' is not currently viewable.
/www/site/assets/logs/exceptions.txt
/foo/bar/baz/ Page '/foo/bar/baz/quz/' is not currently viewable. (in /wire/modules/PageRender.module line 410)
Debug (non-superusers)
Error: Exception: Page '/foo/bar/baz/quz/' is not currently viewable. (in wire/modules/PageRender.module line 410)
#0 wire/core/Wire.php (397): PageRender->___renderPage(Object(HookEvent))
#1 wire/core/WireHooks.php (823): Wire->_callMethod('___renderPage', Array)
#2 wire/core/Wire.php (465): WireHooks->runHooks(Object(PageRender), 'renderPage', Array)
#3 wire/core/WireHooks.php (924): Wire->__call('renderPage', Array)
#4 wire/core/Wire.php (465): WireHooks->runHooks(Object(Page), 'render', Array)
#5 site/templates/template.php (191): Wire->__call('render', Array)
-
By neonwired
I'm hoping someone has seen this before. There doesn't appear to be an issue with the user info.
-
By EyeDentify
Hello Dear PW Gurus.
Hope you fair well in these Corona Crisis times.
Anyhow, i have a problem with a Cryptic error message that shows up when i am trying to Delete images out of a Images field.
The Error message does say a little but it does not make sense to me why i can´t delete the images because of it.
Is it some permission issue perhaps?
I will attach screenshots of it and what i did prior to it.
I am from sweden so ignore the funny words here and there.
Hope you all can send me on the right track.
i am running PW 3.0.139 on this install.
Step1:
Step 2: Select the images with the trashcan symbol
Step 3: Cryptic Error message
I am scratching my head on this one, have not seen this before.
Thankfull for all help.
/EyeDentify
-
By VeiJari
Hello forum. I'm trying to figure out how to detect if current form has errors after saving it in pw admin page. This is so that our event location isn't added in database if we detect errors. But I can't seem to find a correct way to detect errors? I only found the wire()->errors() and it always triggers even if I don't have any errors.
How can I detect errors in a form?
By error I mean $page->error('this is the red error');
-
By DevCat
Hi,
I'm trying to install ProcessWire on XAMPP localhost. I extracted the zip and put the files from master folder to website directory folder and when I go there with Firefox it says 404 page not found (no site configuration or install.php available). At least install.php surely is there. I'm doing WordPress installations on localhost almost every day and no problems. Does anyone here know what is cause for this error?
-