[ phpweather-Bugs-1082695 ] After Installing executing make_config.php just shows blank
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2006-09-25 02:20:20
|
Bugs item #1082695, was opened at 2004-12-09 21:18 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=1082695&group_id=23245 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: phpweather-2.x >Status: Closed Priority: 5 Submitted By: Craig Drummond (cyborg90) Assigned to: Kevin Cornwell (kcornwell) Summary: After Installing executing make_config.php just shows blank Initial Comment: I downloaded and installed the code into the /Weather directory. I am able to open the index.php file and have the weather displayed. However when I try to follow the directions in the manual it says the first step is to create a new default.php by using the make_config.php page. When I attempt to open the page I get a blank screen. PHP4 MySQL 4.1 Apache 2.0.48 ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2006-09-24 19:20 Message: Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Max Hammond (iridium) Date: 2006-09-10 02:41 Message: Logged In: YES user_id=81516 Is this still a problem? ---------------------------------------------------------------------- Comment By: John Palkovic (drjohnny) Date: 2005-01-19 14:14 Message: Logged In: YES user_id=985118 Here is a patch which seems to fix the problem for me: --- make_config.php 2005-01-19 15:45:19.000000000 -0600 +++ make_config.php-new 2005-01-19 15:45:06.000000000 -0600 @@ -411,6 +411,7 @@ options in $HTTP_SESSION_VARS and not on a copy. */ $keys = array_keys($HTTP_SESSION_VARS); foreach ($keys as $option) { + $option = str_replace("\&","&", $option); $HTTP_SESSION_VARS[$option]->update_value($HTTP_POST_VARS); } I can now visit make_config.php with safari (OS X version 10.3.7) and it works. ---------------------------------------------------------------------- Comment By: John Palkovic (drjohnny) Date: 2005-01-19 13:26 Message: Logged In: YES user_id=985118 Try a different browser. I was getting an error with safari on Mac OS X when I tried to load config/make_config.php. Safari puts an item in the http environment that looks something like this: HTTP_COOKIE=prefs=show_changed&on&show_diff&&select_diff&&user_name&JohnDoe I guess the loop over the $HTTP_SESSION_VARS chokes on the &'s in this variable. I see that php4 uses '&' for references. I visited the page with firefox and it loaded with no problems. php4 apache 1.3.33-2 on debian kernel 2.6.9 ---------------------------------------------------------------------- Comment By: farzad (farzad) Date: 2004-12-28 16:15 Message: Logged In: YES user_id=70097 I have the same problem. The error is thrown when trying to access $HTTP_SESSION_VARS[$option] as an object. In make_config.php there is a line liek this in a for loop: $HTTP_SESSION_VARS[$option]->update_value ($HTTP_POST_VARS); And the error given is: PHP Fatal error: Call to a member function on a non-object in ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=1082695&group_id=23245 |