Project

General

Profile

Bug #8857

PHP error when saving on vpn_ipsec_settings.php

Added by Jim Pingle over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
IPsec
Target version:
Start date:
08/31/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.4
Affected Architecture:
All

Description

From a fresh install with no IPsec configuration, clicking Save on vpn_ipsec_settings.php gives a PHP error:

Warning: Illegal string offset 'logging' in /usr/local/www/vpn_ipsec_settings.php on line 80 Fatal error: Uncaught Error: Cannot use string offset as an array in /usr/local/www/vpn_ipsec_settings.php:80 Stack trace: #0 {main} thrown in /usr/local/www/vpn_ipsec_settings.php on line 80 PHP ERROR: Type: 1, File: /usr/local/www/vpn_ipsec_settings.php, Line: 80, Message: Uncaught Error: Cannot use string offset as an array in /usr/local/www/vpn_ipsec_settings.php:80 Stack trace: #0 {main} thrown

Associated revisions

Revision 463b52b6 (diff)
Added by Jim Pingle over 1 year ago

Initialize IPsec logging array before use. Fixes #8857

History

#1 Updated by Jim Pingle over 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Jim Pingle

#2 Updated by Jim Pingle over 1 year ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100

#3 Updated by Vladimir Lind over 1 year ago

Reset sg2440 Fri Aug 31 20:10:51 EDT 2018 to factory and then opened vpn_ipsec_settings.php, clicked "save" - no errors, saved ok.

#4 Updated by Steve Beaver over 1 year ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF