Changes between Initial Version and Version 1 of Ticket #415
- Timestamp:
- Sep 20, 2007, 5:18:15 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #415
- Property Owner changed from Rytis to davea
-
Property
Component
changed from
Server - Web - Forums
toServer - Other
-
Ticket #415 – Description
initial v1 1 1 Some php.ini files will cause the following errors to appear when viewing logs from in $PROJECT/html/ops/show_log.php 2 2 3 {{{ 3 4 Notice: Undefined index: f in /home/mweltin/projects/tsp/html/ops/show_log.php on line 11 4 5 5 Notice: Undefined index: s in /home/mweltin/projects/tsp/html/ops/show_log.php on line 12 6 7 6 Notice: Undefined index: l in /home/mweltin/projects/tsp/html/ops/show_log.php on line 13 8 9 7 Notice: Undefined variable: lines in /home/mweltin/projects/tsp/html/ops/show_log.php on line 38 10 8 }}} 11 9 By first testing for the variable with php's isset function the errors on lines 11-13 can be avoided. 12 10 E.g. 13 11 14 12 {{{ 15 13 if( isset($_GET!["f"]) ){ 16 14 $f = $_GET!["f"]; … … 28 26 $l = 0; 29 27 } 30 28 }}} 31 29 Adding that code pushes the error from line 38 to 54, but I'm not sure what $lines is needed for. My perl is not so good, and I was not sure what the grep_logs script would use that parameter for. 32 30