[ phpweather-Bugs-724856 ] Can't resolve path
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2003-04-22 20:51:42
|
Bugs item #724856, was opened at 2003-04-21 06:14 Message generated for change (Comment added) made by gimpster You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=724856&group_id=23245 Category: PHP code Group: phpweather-2.x >Status: Closed Priority: 5 Submitted By: Andrew Simpson (andrewsimpson) >Assigned to: Martin Geisler (gimpster) Summary: Can't resolve path Initial Comment: Using phpweather-2.1.1. Building databases with Database Builder, I get a warning error with Red Hat 8.0, then later program aborts... Line 49 make_db.php - can't resolve path /var/www/html/phpweather/config/../db_layer.php Path is correct, but it appears that '..' is causing the problem. I fixed it by changing line 48 to: define( 'PHP_BASE_DIR' , realpath(dirname(__FILE__) .'/..') ); All working fine now. Just to be complete: Also getting notices about unintialised '0' on line 68, but these appear harmless. (I use this machine to debug my own PHP work, so I set E_ALL for all error reporting). Thanks for replying so promptly to my earlier bug report. I'll have to download 2.1.2 now. ---------------------------------------------------------------------- >Comment By: Martin Geisler (gimpster) Date: 2003-04-22 22:51 Message: Logged In: YES user_id=104098 Thanks a lot for the report, I've fixed things in CVS. I'll put out a 2.1.3 when some bigger bugs have been fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=724856&group_id=23245 |