Project

General

Profile

Bug #8656

PHP Error - Firewall Scheduler

Added by B C over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Web Interface
Target version:
Start date:
07/16/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.x
Affected Architecture:

Description

Hello folks, first try posting a bug report here, didn't find it on a search so giving it a whirl. On Jul-15-2018 2.4.4 Development Release, no firewall rules are being shown on the web interface when I access it - PHP errors are logged when accessing these pages:

amd64
11.2-RELEASE
FreeBSD 11.2-RELEASE #10 af4526707ed(RELENG_2_4_4): Sun Jul 15 03:36:48 EDT 2018
root@buildbot3:/builder/crossbuild-ce-master/obj/amd64/FWJoMRHc/builder/crossbuild-ce-master/pfSense/tmp/FreeBSD-src/sys/pfSense
[15-Jul-2018 10:34:35 America/St_Johns] PHP Warning: Illegal string offset 'schedule' in /usr/local/www/firewall_rules.php on line 495
[15-Jul-2018 10:34:35 America/St_Johns] PHP Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_rules.php:495
Stack trace:
#0 {main}
thrown in /usr/local/www/firewall_rules.php on line 495
[15-Jul-2018 10:34:55 America/St_Johns] PHP Warning: Illegal string offset 'schedule' in /usr/local/www/firewall_schedule.php on line 45
[15-Jul-2018 10:34:55 America/St_Johns] PHP Warning: Illegal string offset 'schedule' in /usr/local/www/firewall_schedule.php on line 48
[15-Jul-2018 10:34:55 America/St_Johns] PHP Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule.php:48

The firewall schedule page is inaccessible from the web interface. Clicking here provides just this text:

Warning: Illegal string offset 'schedule' in /usr/local/www/firewall_schedule.php on line 45 
Warning: Illegal string offset 'schedule' in /usr/local/www/firewall_schedule.php on line 48
Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule.php:48
Stack trace: #0 {main} thrown in /usr/local/www/firewall_schedule.php on line 48
PHP ERROR: Type: 1, File: /usr/local/www/firewall_schedule.php, Line: 48,
Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule.php:48
Stack trace: #0 {main} thrown

Lines 494-496 of /usr/local/wwww/firewall_schedule.php:

//build Schedule popup box
$a_schedules = &$config['schedules']['schedule'];
$schedule_span_begin = "";

Based on other bug reports, I suspect it's related to this blank setting line in my config:

<schedules></schedules>

but I'm not versed in PHP!

Thanks folks

Associated revisions

Revision 4114a6ae (diff)
Added by Stephen Jones over 1 year ago

Fixed #8656 PHP7 fixed illegal string offsets

History

#1 Updated by Steve Beaver over 1 year ago

  • Assignee set to Anonymous

#2 Updated by Anonymous over 1 year ago

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

#3 Updated by B C over 1 year ago

Stephen Jones wrote:

Applied in changeset 4114a6aec4a5e8d1428df33a3f966b786c328d73.

Have updated and can verify everything works as expected now. Thanks!! :)

#4 Updated by Anonymous over 1 year ago

  • Status changed from Feedback to Resolved

#5 Updated by Constantine Kormashev over 1 year ago

Do not observe the issue on latest with creating, editing and deleting schedules and FW rules that use these schedules.

Also available in: Atom PDF