Error when entering Maintenance Mode using Firefox

validate.php:

[email protected]:~$ php ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 21.10.2
DB Schema | 2021_10_03_164200_update_hrsystem_table (221)
PHP       | 7.4.18
Python    | 3.5.2
MySQL     | 10.5.10-MariaDB-1:10.5.10+maria~xenial
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3
====================================

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

Firefox Version: 93.0

Steps to Reproduce:

  1. Edit a device
  2. Attempt to put the device in maintenance mode
  3. Get error toast message and NS_BINDING_ABORTED in Firefox network tools

Possible Solution:

  1. Edit “includes/html/modal/device_maintenance.inc.php”
  2. Change the button type on line 80 from “submit” to “button”

This is not a complete fix as the page doesn’t reload to show the changed maintenance status, but it at least submits the ajax request.

Can you submit this fix directly in GitHub please?

I’d be happy to. What’s the best way to do a page reload? Would a simple location.reload() be good enough or would you prefer a different way?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.