Allow_unauth_graphs setting no longer working

I have allow_unauth_graphs enabled in my config - when I am authenticated, my graphs load no problem. When I’m not authenticated however - I get a HTML page instead of a graph saying “Whoops, looks like something went wrong. Check your librenms.log”

Checking said log:

[2019-07-30 13:48:06] production.ERROR: Call to a member function hasGlobalRead() on null {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function hasGlobalRead() on null at /opt/lib
renms/includes/html/functions.inc.php:325)
[stacktrace]
#0 /opt/librenms/includes/html/functions.inc.php(239): device_permitted(76)
#1 /opt/librenms/includes/html/graphs/port/auth.inc.php(6): generate_device_link(Array)
#2 /opt/librenms/includes/html/graphs/graph.inc.php(41): require('/opt/librenms/i...')
#3 /opt/librenms/html/graph.php(29): require('/opt/librenms/i...')
#4 {main}
"}

LibreNMS = 1.54-2-g89fae9b

1 Like

We are recieving the same error

1.54-3-ga912abb18 - Tue Jul 30 2019 16:20:14 GMT-0500](http://www.librenms.org/changelog.html)

./validate.php

Component Version
LibreNMS 1.54-3-ga912abb18
DB Schema 2019_07_03_132417_create_mpls_saps_table (139)
PHP 7.2.17-1+0~20190412071344.20+stretch~1.gbp23a36d
MySQL 10.1.37-MariaDB-0+deb9u1
RRDTool 1.6.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.8.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

We’re seeing the same error on 1.54-8-gc6e719b9b

Component | Version
--------- | -------
LibreNMS  | 1.54-8-gc6e719b9b
DB Schema | 2019_07_03_132417_create_mpls_saps_table (139)
PHP       | 7.2.18-1+0~20190503103213.21+stretch~1.gbp101320
MySQL     | 10.1.38-MariaDB-0+deb9u1
RRDTool   | 1.6.0
SNMP      | NET-SNMP 5.7.3

We have unauth graphs enabled

$ grep graphs config.php
$config['allow_unauth_graphs_cidr'] = array('0.0.0.0/0');
$config['allow_unauth_graphs'] = true;

[1.54-25-g9dfae2ff1 - Wed Aug 07 2019 20:01:58 GMT-0500]

Unauthenticated graphs are now working after the update. Thanks everyone.