FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
How do I get error messages?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=20327&th=4207#msg_20327
I'm doing some additional features (hacks) to FUD forum. I go about my work like this:
*) I edit the files in the src/ directory (like register.php.t).
*) I go to the forum control panel as admin.
*) I go to theme management -> Rebuild theme
After this procedure I reload the forum. The problem is, if I did some mistake (code wise) in the first step, I don't get any message or compiling error. All I get is a blank screen
Is there any way to see compiling errors?
thnx
/Johan]]>johed8022004-10-08T07:51:13-00:00Re: How do I get error messages?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=20330&th=4207#msg_20330
So if there's an error in your PHP code then PHP should report it - however some setting in your web server's system might prevent them from being shown.
To check that, make a file called phpinfo.php that contains only one line:
<?php phpinfo(); ?>
Save it and execute it from your web browser. Look for the error_reporting and display_error variables. The former should be greater than 0 and the latter should be "on", or "1".
If that's not the case and you can edit the php.ini file, set those values in there and try running your script again. If you can't access the php.ini file you could try setting those values by using .htaccess files: http://martin.f2o.org/php/portable
If PHP is set to report and display errors then it seems to me that you have problems with your HTML code that prevents anything from being shown.
Good luck,
-Soeren]]>Abraxa2004-10-08T12:04:55-00:00Re: How do I get error messages?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=20334&th=4207#msg_20334
After changing the source code, always do php -l script_name.php this will validate the script and tell you if there any parse errors in it.]]>Ilia2004-10-08T13:26:56-00:00