Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Error when trying to Create a Firewall Schedule

    Scheduled Pinned Locked Moved Firewalling
    9 Posts 6 Posters 1.8k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tylergl
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • E Offline
        esnesfp
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • S Offline
          Steve_B Netgate
          last edited by

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

          Als ik kan

          1 Reply Last reply Reply Quote 0
          • P Offline
            proger
            last edited by

            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)

            E 1 Reply Last reply Reply Quote 0
            • E Offline
              esnesfp @proger
              last edited by

              @proger

              Fixed, thanks to you all

              https://redmine.pfsense.org/issues/9009#change-38860

              Thanks Jim

              1 Reply Last reply Reply Quote 0
              • emammadovE Offline
                emammadov
                last edited by

                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?

                Elvin

                jimpJ E 2 Replies Last reply Reply Quote 0
                • jimpJ Offline
                  jimp Rebel Alliance Developer Netgate @emammadov
                  last edited by

                  @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.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    esnesfp @emammadov
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • emammadovE Offline
                      emammadov
                      last edited by

                      Thank you.

                      Elvin

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.