After Installing executing make_config.php just shows blank
Brought to you by:
iridium
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
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 ...
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
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.
Logged In: YES
user_id=81516
Is this still a problem?
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).