Project

General

Profile

Bug #9540

PHP Uncaught Error in Status/System Logs/Firewall/Dynamic View

Added by Jay Simons 27 days ago. Updated 27 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Start date:
05/20/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
Affected Architecture:

Description

I clicked the wrench in the upper-right corner to change the display to reverse order (newest first) and I got this fatal PHP error:

Fatal error: Uncaught Error: Cannot use string offset as an array in /usr/local/www/status_logs_common.inc:664 Stack trace: #0 /usr/local/www/status_logs_filter_dynamic.php(75): manage_log_code() #1 {main} thrown in /usr/local/www/status_logs_common.inc on line 664 PHP ERROR: Type: 1, File: /usr/local/www/status_logs_common.inc, Line: 664, Message: Uncaught Error: Cannot use string offset as an array in /usr/local/www/status_logs_common.inc:664 Stack trace: #0 /usr/local/www/status_logs_filter_dynamic.php(75): manage_log_code() #1 {main} thrown

Associated revisions

Revision 303641f8 (diff)
Added by Jim Pingle 27 days ago

Fix a potential source of PHP errors when saving per-log settings. Fixes #9540

While here, fix save descriptions.

Revision 057d15dc (diff)
Added by Jim Pingle 27 days ago

Fix a potential source of PHP errors when saving per-log settings. Fixes #9540

While here, fix save descriptions.

(cherry picked from commit 303641f8283016a88f53c7743c962e16ba683579)

History

#1 Updated by Jim Pingle 27 days ago

  • Category set to Web Interface
  • Assignee set to Jim Pingle
  • Priority changed from High to Normal
  • Target version set to 2.5.0

I can't reproduce this on 2.5.0 or 2.4.4-p3. I can change the setting every which way, no errors. That said, I can sort of see how it could happen, and I will commit a change which may help in case it still happens in an edge case I can't reproduce here.

#2 Updated by Jim Pingle 27 days ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Also available in: Atom PDF