[ phpweather-Bugs-701449 ] defaults.php has no effect
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2003-09-02 17:53:42
|
Bugs item #701449, was opened at 2003-03-11 11:40 Message generated for change (Comment added) made by gimpster You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=701449&group_id=23245 Category: Installation Group: phpweather-2.x >Status: Pending Priority: 7 Submitted By: Loic RIOUAL (rioual) Assigned to: Nobody/Anonymous (nobody) Summary: defaults.php has no effect Initial Comment: Hi, I just discovered php weather, this is great ! And I am really admirative using this tool, it is such well developped ! I am using the latest version 2.1.1 downloaded today. Anyway, when creating my defaults.php via your interface, and puting it in the root dir, this has no effect, my page doesn't take this in consideration. I just made a test to see if the include was done but that's it. Voila ! Merci. Loïc ---------------------------------------------------------------------- >Comment By: Martin Geisler (gimpster) Date: 2003-09-02 19:53 Message: Logged In: YES user_id=104098 So can I conclude that this works correctly in PhpWeather? Or are people still having problems? ---------------------------------------------------------------------- Comment By: Guillaume (stereo) Date: 2003-09-02 19:26 Message: Logged In: YES user_id=277619 Please ignore my previous comment, I am an idiot who can't even type "defaults" correctly :). ---------------------------------------------------------------------- Comment By: Max Hammond (iridium) Date: 2003-08-16 20:40 Message: Logged In: YES user_id=81516 A couple of things to try: i) replace PHPWEATHER_BASE_DIR with the full path. I had some trouble with that on solaris but haven't had time recently to work out what was happening. I know it sees the file, but you it's perhaps not including it :-P ii) get rid of the conditional if{}, and change the include() for require(). That'll at least make it tell you why it can't get hold of a file. You could also turn up your error reporting level - that should help work out what's up. ---------------------------------------------------------------------- Comment By: Martin Geisler (gimpster) Date: 2003-08-16 13:35 Message: Logged In: YES user_id=104098 This is very weird for your setup looks fine. I've just downloaded phpweather-2.1.2.tar.bz2, unpacked it and made a defaults.php file with <?php $this->properties['pref_units'] = 'only_metric'; /* locale_common.php */ ?> This works as expected which means that the weather report on the index.php page now only contains metric units. I'm using PHP 4.3.3RC3 on a Debian GNU/Linux system with Apache 1.3.27. What versions are you using? (Use the phpinfo() function in PHP to find out if you're unsure.) ---------------------------------------------------------------------- Comment By: Guillaume (stereo) Date: 2003-08-16 09:29 Message: Logged In: YES user_id=277619 I have the same problem here.. stereo@Hertz:~/public_html/phpweather-2.1.2/ > ls -l defaults.php -rw-r--r-- 1 stereo stereo 176 Aug 16 09:16 defaults.php The file doesn't even seem to be read by base_object.php. I added echo "foo"; to defaults.php and didn't find anything in the output. PHPWEATHER_BASE_DIR seems to be correct (/home/stereo/ public_html/phpweather-2.1.2). base.object.php sees the file; I added another echo foo; after "if(file_exists(PHPWEATHER_BASE_DIR . '/defaults.php')) {" and it is printed twice. This is my defaults.php: <?php /* This is a local configuration file for PHP Weather. /* icao */ $this->properties['icao']='ELLX'; /* pref_units */ $this->properties['pref_units']='only_metric'; ?> ---------------------------------------------------------------------- Comment By: Martin Geisler (gimpster) Date: 2003-04-20 15:07 Message: Logged In: YES user_id=104098 Hmm, it works here. Have you uploaded defaults.php to the same directory as PHP Weather? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=701449&group_id=23245 |