Error when trying to Create a Firewall Schedule



  • I get this error when I try and create a firewall schedule. Also I just upgraded to 2.4.4. I have never used the firewall schedules and wanted to try a few thing with it. The error happens immediately after clicking the Add button on the schedules. Anyone have any fixes for this?

    0_1537935812472_6ffa9b16-6fdd-4423-9b2e-e671ff656be0-image.png

    Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64 Stack trace: #0 {main} thrown in /usr/local/www/firewall_schedule_edit.php on line 64 PHP ERROR: Type: 1, File: /usr/local/www/firewall_schedule_edit.php, Line: 64, Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64 Stack trace: #0 {main} thrown

    Here is the Crash Report
    Crash report begins. Anonymous machine information:

    amd64
    11.2-RELEASE-p3
    FreeBSD 11.2-RELEASE-p3 #17 e6b497fa0a3(RELENG_2_4_4): Thu Sep 20 09:04:45 EDT 2018 root@buildbot3:/crossbuild/ce-244/obj/amd64/WvDslnYb/crossbuild/ce-244/pfSense/tmp/FreeBSD-src/sys/pfSense

    Crash report details:

    PHP Errors:
    [25-Sep-2018 20:56:18 America] PHP Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64
    Stack trace:
    #0 {main}
    thrown in /usr/local/www/firewall_schedule_edit.php on line 64

    No FreeBSD crash data found.



  • Hello, same error here when trying to write a schedule for my kids.

    Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64 Stack trace: #0 {main} thrown in /usr/local/www/firewall_schedule_edit.php on line 64 PHP ERROR: Type: 1, File: /usr/local/www/firewall_schedule_edit.php, Line: 64, Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64 Stack trace: #0 {main} thrown

    Crash report begins. Anonymous machine information:

    amd64
    11.2-RELEASE-p3
    FreeBSD 11.2-RELEASE-p3 #17 e6b497fa0a3(RELENG_2_4_4): Thu Sep 20 09:04:45 EDT 2018 root@buildbot3:/crossbuild/ce-244/obj/amd64/WvDslnYb/crossbuild/ce-244/pfSense/tmp/FreeBSD-src/sys/pfSense

    Crash report details:

    PHP Errors:
    [04-Oct-2018 04:30:12 EST5EDT] PHP Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64
    Stack trace:
    #0 {main}
    thrown in /usr/local/www/firewall_schedule_edit.php on line 64

    No FreeBSD crash data found.


  • Developer Netgate

    Please submit a bug report here: https://redmine.pfsense.org/



  • I received too a similar error when I experimented with firewall schedules.
    It arises if after setup of parameters (time range) not to save data, but refresh the page in the browser and/or go into other section.
    Reboot doesn't help.
    How to correct it:
    I downloaded a configuration backup, however in it about schedules didn't find any mentioning. Then I on other pfSense VM created one schedule, downloaded a configuration from this pfSense (backup config), found appropriate section, copied it in the backup config from my pfSense by notepad++ and uploaded a configuration back into my pfSense.
    After that the corresponding records appeared in the section Firewall/Schedules, and the Add button also stops causing a error.
    Possibly, matter in some temp file which remains in system and a script incorrectly processes it...
    As the config backup section looks (it is possible to take directly from here):

    <schedules>
    	<schedule>
    		<name>night_time</name>
    		<descr></descr>
    		<timerange>
    			<position>1,2,3,4,5,6,7</position>
    			<hour>0:00-6:59</hour>
    			<rangedescr></rangedescr>
    		</timerange>
    		<schedlabel>5bb68c32295d8</schedlabel>
    	</schedule>
    </schedules>
    

    Good luck)





  • Hello,

    Today, I tried to create a schedule. I created and deleted, wanted to create a new one, it gives an en error:

    Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64 Stack trace: #0 {main} thrown in /usr/local/www/firewall_schedule_edit.php on line 64 PHP ERROR: Type: 1, File: /usr/local/www/firewall_schedule_edit.php, Line: 64, Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64 Stack trace: #0 {main} thrown

    [24-Oct-2018 22:56:33 Asia/Baku] PHP Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_schedule_edit.php:64
    Stack trace:
    #0 {main}
    thrown in /usr/local/www/firewall_schedule_edit.php on line 64

    It has been fixed in 2.4.3p1 version?


  • Rebel Alliance Developer Netgate

    @emammadov said in Error when trying to Create a Firewall Schedule:

    Today, I tried to create a schedule. I created and deleted, wanted to create a new one, it gives an en error:

    It's the exact same error that others in the thread posted, and if you look at the link in the post just above yours, you'll see that it has been fixed.



  • @emammadov Hello, you have to modify the php code, in firewall_schedule.php and firewall_schedule_edit.php, see the link https://redmine.pfsense.org/issues/9009#change-38860
    In Pfsense, go to Diagnostic ---> Edit Files ---> Browse ---> /src/usr/local/www/firewall_schedule.php and modify the appropriate lines of codes, do the same for the firewall_schedule_edit.php, save and re-check.



  • Thank you.