GYAHG!
I finally put this web site into its actual host (well, I did it about a month ago), and I just can't solve this stupid problem!
Take a look at this:
http://test.deltahumanesociety.org/
You'll probably notice it's filled with debug text. This is all to get to the bottom of a problem: PHP simply quits at random intervals after knowingly (and properly!) failing to retrieve values via an overloaded __get method!
This isn't just normal crashing, though. It just disappears. No errors, no nothing! It stops writing, and it returns my file in an unfinished state.
The file in its current state (which I could easily change; I'll get to that later) does not show another weird problem: When the __get function outputs its debug text saying that a variable does not exist, if that happens to be the final, fatal call to __get then that variable name generally comes out completely garbled!
This doesn't look like just a conventional coding glitch on my end, though, since if I comment out the variable that it fails with then the error just happens with the next one (even if that next one is 2 If blocks and 30 lines away).
I've also had instances where merely calling up that variable the line before one of those random crashes will stop the crash altogether and the code will move on to crash somewhere else.
Another weird (and irritating, of course) thing is that my debug text, which has no direct connection to the data returned by Output (the debug text is outputted on the spot, while the return values are outputted later) has a huge effect on the eventual crash. If I pull out some debug text, or if I add debug text, the crash happens at a different point.
I actually can not properly explain this problem or even find a pattern; I can only hint at some components of it and hope that maybe you have seen something similar.
I know I'm not giving you much to work with here, but maybe you have seen this somewhere. Any ideas at all would be great, because I am stumped.
(Maybe a full rewrite wouldn't be too bad at this point...).
Also of interest is that the Admin section (please don't mess too much with it!) does not screw up at all... which tells me that the overloaded __get works fine! (And that retrieving default values for variables also works fine).
Here is the PHPInfo for the web site...
Anyhow, any guesses are hugely appreciated!
I finally put this web site into its actual host (well, I did it about a month ago), and I just can't solve this stupid problem!
Take a look at this:
http://test.deltahumanesociety.org/
You'll probably notice it's filled with debug text. This is all to get to the bottom of a problem: PHP simply quits at random intervals after knowingly (and properly!) failing to retrieve values via an overloaded __get method!
This isn't just normal crashing, though. It just disappears. No errors, no nothing! It stops writing, and it returns my file in an unfinished state.
The file in its current state (which I could easily change; I'll get to that later) does not show another weird problem: When the __get function outputs its debug text saying that a variable does not exist, if that happens to be the final, fatal call to __get then that variable name generally comes out completely garbled!
This doesn't look like just a conventional coding glitch on my end, though, since if I comment out the variable that it fails with then the error just happens with the next one (even if that next one is 2 If blocks and 30 lines away).
I've also had instances where merely calling up that variable the line before one of those random crashes will stop the crash altogether and the code will move on to crash somewhere else.
Another weird (and irritating, of course) thing is that my debug text, which has no direct connection to the data returned by Output (the debug text is outputted on the spot, while the return values are outputted later) has a huge effect on the eventual crash. If I pull out some debug text, or if I add debug text, the crash happens at a different point.
I actually can not properly explain this problem or even find a pattern; I can only hint at some components of it and hope that maybe you have seen something similar.
I know I'm not giving you much to work with here, but maybe you have seen this somewhere. Any ideas at all would be great, because I am stumped.
(Maybe a full rewrite wouldn't be too bad at this point...).
Also of interest is that the Admin section (please don't mess too much with it!) does not screw up at all... which tells me that the overloaded __get works fine! (And that retrieving default values for variables also works fine).
Here is the PHPInfo for the web site...
Anyhow, any guesses are hugely appreciated!