Hi everyone,
I’m hoping someone may be able to help me out with this problem. I’ve tackled finding a solution through other avenues, including my server admin and PHP forums, but I have narrowed the problem down to be related to MODx. Here is goes:
I have some PHP code. It is designed NOT TO WORK. It will produce an error. Here it is:
<?php
// file name: test.php
echo "hi";
header("Location:index.php");
?>
OK, obviously I will get the following error:
"Cannot modify header information....blah blah blah" because of the output before the header() function.
Now, I have run this test script on the following:
1) a web site on a server not using MODx. No account on that server runs MODx.
2) a web site on a server not using MODx but other sites on the same server are using MODx, and
3) a web site using MODx.
I get the "Cannot modify header information..." error on the first 2 situations above, but not when testing it on a MODx managed site. Follow? The page actually redirects to "index.php" without any indication that an error occurred and no error is written to the error log.
I am therefore wondering, does MODx suppress these errors? It is obviously very important that these errors be displayed so I can fix them.
Does anybody have any ideas what is causing it????
Glenn
Panorama Internet Publishing
PS. the only pre-packaged snippet I’m using is "DropMenu" if that helps.