Can't save page 0
Started by Pete, Jun 01 2012 01:52 PM
3 replies to this topic
#1
Posted 01 June 2012 - 01:52 PM
I've been noticing this message come up recently at random - sometimes several at a time and sometimes spread out a lot.
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.
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.
#2
Posted 01 June 2012 - 07:08 PM
That's a IHNI error. (I Have No Idea)
Just guessing. You'r doing some ajax on the page? Comments saving for guests, Poll, ... ?
I always wondered where the questionmark comes from "?".
Just guessing. You'r doing some ajax on the page? Comments saving for guests, Poll, ... ?
@somartist | modules created | support me, flattr my work flattr.com
#3
Posted 02 June 2012 - 07:44 AM
I found it. Well, the troublesome script at least.
I changed this line in wire/core/ProcessWire.php:
to this:
@ ryan, looking again at the error code in that file, wouldn't it be better if this:
was actually this:
to potentially give a bit more info, or is there a reason why the fallback is set to /?/?
I changed this line in wire/core/ProcessWire.php:
$logMessage = "Page: $path\nUser: $userName\n\n" . str_replace(" ", "\n", $message);to this:
$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












