Can't save page 0
Posted 01 June 2012 - 01:52 PM
I updated the wire directory and it still happens, however I was wondering if anyone could shed some light on what it actually means, or suggest a way to determine where the problem is?
2012-05-31 03:36:51 guest http://www.mysite.co.uk/?/ Error Exception: Can't save page 0: : Pages of type NullPage are not saveable (in /home/strategy/public_html/wire/core/Pages.php line 463)
It's almost certainly an issue with something I've coded, but for the life of me I can't think where to look and I can't reproduce it myself whether I'm logged in or not.
Posted 01 June 2012 - 07:08 PM
Just guessing. You'r doing some ajax on the page? Comments saving for guests, Poll, ... ? I always wondered where the questionmark comes from "?".
Posted 02 June 2012 - 07:44 AM
I changed this line in wire/core/ProcessWire.php:
$logMessage = "Page: $path\nUser: $userName\n\n" . str_replace(" ", "\n", $message);
$logMessage = "Request: " . $_SERVER['REQUEST_URI'] . "\nPage: $path\nUser: $userName\n\n" . str_replace(" ", "\n", $message);
@ ryan, looking again at the error code in that file, wouldn't it be better if this:
$path = ($config ? $config->httpHost : '') . ($page ? $page->url : '/?/');
was actually this:
$path = ($config ? $config->httpHost : '') . ($page ? $page->url : $_SERVER['REQUEST_URI']);
to potentially give a bit more info, or is there a reason why the fallback is set to /?/?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users