From Soft Crane, 5 Years ago, written in Plain Text.
">

A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 24

Backtrace:

File: /opt/Stikked/htdocs/themes/stikkedizr/views/view/view.php
Line: 24
Function: _error_handler

File: /opt/Stikked/htdocs/application/core/MY_Loader.php
Line: 173
Function: include

File: /opt/Stikked/htdocs/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /opt/Stikked/htdocs/application/controllers/Main.php
Line: 705
Function: view

File: /opt/Stikked/htdocs/index.php
Line: 315
Function: require_once

from

A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 24

Backtrace:

File: /opt/Stikked/htdocs/themes/stikkedizr/views/view/view.php
Line: 24
Function: _error_handler

File: /opt/Stikked/htdocs/application/core/MY_Loader.php
Line: 173
Function: include

File: /opt/Stikked/htdocs/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /opt/Stikked/htdocs/application/controllers/Main.php
Line: 705
Function: view

File: /opt/Stikked/htdocs/index.php
Line: 315
Function: require_once

- view diff
Embed
  1. librenms@host:~$ ./scripts/test-template.php  -d
  2.  
  3. Usage:
  4.     -t Is the template ID.
  5.     -h Is the device ID or hostname
  6.     -r Is the rule ID
  7.     -p Is the transport name (optional)
  8.     -s Is the alert state <0> (optional - defaults to current state.)
  9.        0 = ok, 1 = alert, 2 = acknowledged, 3 = got worse, 4 = got better
  10.     -d Debug
  11.    
  12. Example:
  13. ./scripts/test-template.php -t 10 -d -h localhost -r 2 -p mail
  14.  
  15. librenms@host:~$ ./scripts/test-template.php  -t 6 -r 14 -h 37 -d
  16. SQL[SELECT alert_log.id,alert_log.rule_id,alert_log.device_id,alert_log.state,alert_log.details,alert_log.time_logged,alert_rules.rule,alert_rules.severity,alert_rules.extra,alert_rules.name FROM alert_log,alert_rules WHERE alert_log.rule_id = alert_rules.id && alert_log.device_id = '37' && alert_log.rule_id = '14' && alert_rules.disabled = 0 ORDER BY alert_log.id DESC LIMIT 1]
  17. SQL[SELECT hostname, sysName, sysDescr, sysContact, os, type, ip, hardware, version, location, purpose, notes, uptime FROM devices WHERE device_id = '37']
  18. SQL[SELECT * FROM devices_attribs WHERE `device_id` = '37']
  19.  
  20. Fatal error: Uncaught Error: Call to a member function connection() on null in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1058
  21. Stack trace:
  22. #0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1024): Illuminate\Database\Eloquent\Model::resolveConnection(NULL)
  23. #1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(859): Illuminate\Database\Eloquent\Model->getConnection()
  24. #2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(818): Illuminate\Database\Eloquent\Model->newBaseQueryBuilder()
  25. #3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(802): Illuminate\Database\Eloquent\Model->newQueryWithoutScopes()
  26. #4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1374): Illuminate\Database\Eloquent\Model->newQuery()
  27. #5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1386): Illuminate\Database\Eloquent\Mod in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 1058