Blank Screen After Login
![](https://secure.gravatar.com/avatar/afc21bbe813d889ab96631dd577a9a92.jpg?s=120&d=mm&r=g)
Hello,
I’ve made a fresh install of Observium and during the initial setup I was using the mysql authentication type. After adding a few data sources (devices), I’ve switched to Radius authentication.
In my config.php, I’ve added/changed these lines:
$config['auth_mechanism'] = "radius"; $config['auth_radius_server'] = array(‚1.2.3.4'); $config['auth_radius_port'] = 1812; $config['auth_radius_secret'] = 'top_secret'; $config['auth_radius_method'] = 'PAP'; $config['auth_radius_groupmemberattr'] = 'Filter-Id'; $config['auth_radius_groups']['super_admin']['level'] = 10; $config['auth_radius_groups'][’user']['level'] = 7;
The authentication works very well, but after logging in, I’m getting only an empty page an empty page.
Did I miss something with the configuration? What can be the reason for the empty page?
-Ihsan
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
Did you install the PHP radius module?
Check your apache error log, and/or try adding "/debug" to the Observium URL before logging in.
Tom
On 26/08/2017 10:10, İhsan Doğan wrote:
Hello,
I’ve made a fresh install of Observium and during the initial setup I was using the mysql authentication type. After adding a few data sources (devices), I’ve switched to Radius authentication.
In my config.php, I’ve added/changed these lines:
$config['auth_mechanism'] = "radius"; $config['auth_radius_server'] = array(‚1.2.3.4'); $config['auth_radius_port'] = 1812; $config['auth_radius_secret'] = 'top_secret'; $config['auth_radius_method'] = 'PAP'; $config['auth_radius_groupmemberattr'] = 'Filter-Id'; $config['auth_radius_groups']['super_admin']['level'] = 10; $config['auth_radius_groups'][’user']['level'] = 7;
The authentication works very well, but after logging in, I’m getting only an empty page an empty page.
Did I miss something with the configuration? What can be the reason for the empty page?
-Ihsan
![](https://secure.gravatar.com/avatar/43344096ff5c3cc97e6f0321fac5d557.jpg?s=120&d=mm&r=g)
Your array says (,1.2.3.4) when it might want to say ('1.2.3.4'). Not sure if that's a typo.
On Sun, Aug 27, 2017 at 1:56 PM, Tom Laermans tom.laermans@powersource.cx wrote:
Did you install the PHP radius module?
Check your apache error log, and/or try adding "/debug" to the Observium URL before logging in.
Tom
On 26/08/2017 10:10, İhsan Doğan wrote:
Hello,
I’ve made a fresh install of Observium and during the initial setup I was using the mysql authentication type. After adding a few data sources (devices), I’ve switched to Radius authentication.
In my config.php, I’ve added/changed these lines:
$config['auth_mechanism'] = "radius"; $config['auth_radius_server'] = array(‚1.2.3.4'); $config['auth_radius_port'] = 1812; $config['auth_radius_secret'] = 'top_secret'; $config['auth_radius_method'] = 'PAP'; $config['auth_radius_groupmemberattr'] = 'Filter-Id'; $config['auth_radius_groups']['super_admin']['level'] = 10; $config['auth_radius_groups'][’user']['level'] = 7;
The authentication works very well, but after logging in, I’m getting only an empty page an empty page.
Did I miss something with the configuration? What can be the reason for the empty page?
-Ihsan
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
Oh wow, totally didn't catch that - yeah that'll be a php syntax error leading to a blank screen. :-)
Tom
On 27/08/2017 23:23, Cody Cook wrote:
Your array says (,1.2.3.4) when it might want to say ('1.2.3.4'). Not sure if that's a typo.
On Sun, Aug 27, 2017 at 1:56 PM, Tom Laermans <tom.laermans@powersource.cx mailto:tom.laermans@powersource.cx> wrote:
Did you install the PHP radius module? Check your apache error log, and/or try adding "/debug" to the Observium URL before logging in. Tom On 26/08/2017 10:10, İhsan Doğan wrote: Hello, I’ve made a fresh install of Observium and during the initial setup I was using the mysql authentication type. After adding a few data sources (devices), I’ve switched to Radius authentication. In my config.php, I’ve added/changed these lines: $config['auth_mechanism'] = "radius"; $config['auth_radius_server'] = array(‚1.2.3.4'); $config['auth_radius_port'] = 1812; $config['auth_radius_secret'] = 'top_secret'; $config['auth_radius_method'] = 'PAP'; $config['auth_radius_groupmemberattr'] = 'Filter-Id'; $config['auth_radius_groups']['super_admin']['level'] = 10; $config['auth_radius_groups'][’user']['level'] = 7; The authentication works very well, but after logging in, I’m getting only an empty page an empty page. Did I miss something with the configuration? What can be the reason for the empty page? -Ihsan _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium <http://postman.memetic.org/cgi-bin/mailman/listinfo/observium>
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/afc21bbe813d889ab96631dd577a9a92.jpg?s=120&d=mm&r=g)
Hi,
On Sonntag, 27 Aug 2017 14:23 -0700, Cody Cook wrote:
Your array says (,1.2.3.4) when it might want to say ('1.2.3.4'). Not sure if that's a typo.
That was a typo when I've removed the IP address. I've stated ('1.2.3.4') at the config.php. :-)
I have installed PECL-Radius package and "php -i" show that the Radius support is available:
radius support => enabled version => 1.4.0b1
Thanks for the /debug hint. I do see now this in the error.log:
2017/08/28 09:58:52 [error] 27732#100099: *11098 FastCGI sent in stderr: "PHP message: PHP Warning: radius_get_attr() expects parameter 1 to be resource, null given in /usr/local/www/observium/html/includes/authentication/radius.inc.php on line 259 PHP message: PHP Fatal error: Call to undefined function hash() in /usr/local/www/observium/includes/common.inc.php on line 3573" while reading response header from upstream
I do see on the Radius server, that the authentication was succesfull. If I enter a wrong password, Observium returns to the login page again. The blank page only occurs, if the user is typing in a correct password an the authentication was succesfull.
-Ihsan
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Hi,
You seem to have a PHP install without hash(), which suggests you didn't follow the install guide properly and/or did something really bizarre to end up with an install which is missing a module that has been default in PHP for a decade.
Please fix your PHP install to have hash(), and it'll work.
Thanks, adam.
On 2017-08-28 10:18, İhsan Doğan wrote:
Hi,
On Sonntag, 27 Aug 2017 14:23 -0700, Cody Cook wrote:
Your array says (,1.2.3.4) when it might want to say ('1.2.3.4'). Not sure if that's a typo.
That was a typo when I've removed the IP address. I've stated ('1.2.3.4') at the config.php. :-)
I have installed PECL-Radius package and "php -i" show that the Radius support is available:
radius support => enabled version => 1.4.0b1
Thanks for the /debug hint. I do see now this in the error.log:
2017/08/28 09:58:52 [error] 27732#100099: *11098 FastCGI sent in stderr: "PHP message: PHP Warning: radius_get_attr() expects parameter 1 to be resource, null given in /usr/local/www/observium/html/includes/authentication/radius.inc.php on line 259 PHP message: PHP Fatal error: Call to undefined function hash() in /usr/local/www/observium/includes/common.inc.php on line 3573" while reading response header from upstream
I do see on the Radius server, that the authentication was succesfull. If I enter a wrong password, Observium returns to the login page again. The blank page only occurs, if the user is typing in a correct password an the authentication was succesfull.
-Ihsan
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/afc21bbe813d889ab96631dd577a9a92.jpg?s=120&d=mm&r=g)
Hi Adam,
Hmm, for some obscure reason the module wasn't installed. Thanks for the hint. Works now.
-Ihsan
On Montag, 28 Aug 2017 11:32 +0200, Adam Armstrong wrote:
You seem to have a PHP install without hash(), which suggests you didn't follow the install guide properly and/or did something really bizarre to end up with an install which is missing a module that has been default in PHP for a decade.
Please fix your PHP install to have hash(), and it'll work.
Thanks, adam.
On 2017-08-28 10:18, İhsan Doğan wrote:
Hi,
On Sonntag, 27 Aug 2017 14:23 -0700, Cody Cook wrote:
Your array says (,1.2.3.4) when it might want to say ('1.2.3.4'). Not sure if that's a typo.
That was a typo when I've removed the IP address. I've stated ('1.2.3.4') at the config.php. :-)
I have installed PECL-Radius package and "php -i" show that the Radius support is available:
radius support => enabled version => 1.4.0b1
Thanks for the /debug hint. I do see now this in the error.log:
2017/08/28 09:58:52 [error] 27732#100099: *11098 FastCGI sent in stderr: "PHP message: PHP Warning: radius_get_attr() expects parameter 1 to be resource, null given in /usr/local/www/observium/html/includes/authentication/radius.inc.php on line 259 PHP message: PHP Fatal error: Call to undefined function hash() in /usr/local/www/observium/includes/common.inc.php on line 3573" while reading response header from upstream
I do see on the Radius server, that the authentication was succesfull. If I enter a wrong password, Observium returns to the login page again. The blank page only occurs, if the user is typing in a correct password an the authentication was succesfull.
-Ihsan
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (4)
-
Adam Armstrong
-
Cody Cook
-
İhsan Doğan
-
Tom Laermans