From: zodiak <zo...@pc...> - 2002-02-17 18:50:53
|
First of all I would like to thank you for supplying this tarball! For those of you, like me, running your php-dev machine with warnings turned on you will get a lot of warnings. Most warnings seems to be generated in the calendar module, to reduce the amount of warnings to a more manageable number here a few hints. The other warnings seems to come mostly from using variables (indexes) that have not been defined. (It is of course easier to just change the display warnings/errors setting in php.ini. But if you, like me, persist in using a more sensitive setting this is one way to go.). /z # Calendar module /mod/calendar/language.php you get warnings for all tran[text] => tran['text'] fix: replace $tran[ -> $tran[', replace ] -> '] (this is easily done with any texteditors search and replace) /mod/calendar/calendar_display.php row1130-36: warnings undefined constant: date(G) -> date("G") etc. row1441: $stuff .= -> $stuff = row1874: $repeat_days not set /mod/calendar/cal_block.php row56: date(Ymd) -> date("Ymd") row77: warning undefined constant: block_week -> 'block_week'; row193: date(Ymd) -> date("Ymd") row242: warning undefined constant: block_week -> 'block_day'; # Others /index.php row9: $source_dir not set (should probably be $_SERVER {'DOCUMENT_ROOT'}.'/fallout/') row15: !empty($mod) && empty($module) /mod/calendar/menu.php row30: $menu_bullet is not set fix: set it to '' ------------------------------------------------- FREE E-MAIL IN 1 MINUTE! - you...@pc... - http://www.pc.nu |