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

    Email Reports WebGUI crashes when trying to edit the reports

    pfSense Packages
    4
    12
    465
    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.
    • D
      Darkk
      last edited by

      Right now I'm on beta of 24.11.r.20241112.1813 with latest email reports package installed. I didn't post this in beta forums as this seems to be a package problem not a pfsense problem.

      I've tried reinstalling the package. It gives me an error when trying to open the email reports that I've created. Any ideas?

      Only way to fix it is do a configuration restore from backup. But can't edit anything since it always give me the error below.

      I am wondering is there a way to really clear out the configuration info on pfsense? So I can try reinstalling the package.

      Crash report begins. Anonymous machine information:

      15.0-CURRENT
      24.11.r.20241112.1813

      Crash report details:

      PHP Errors:
      [14-Nov-2024 16:41:25 America/Los_Angeles] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_mail_report_edit.php:44
      Stack trace:
      #0 {main}
      thrown in /usr/local/www/status_mail_report_edit.php on line 44
      [14-Nov-2024 16:41:29 America/Los_Angeles] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_mail_report_edit.php:44

      No FreeBSD crash data found.

      1 Reply Last reply Reply Quote 0
      • M
        marcosm Netgate
        last edited by

        Thanks for the report. For future reference, this can go into the dev category as well (and/or report it on redmine).

        A fix is available here:
        https://redmine.pfsense.org/issues/15872

        D C 2 Replies Last reply Reply Quote 0
        • D
          Darkk @marcosm
          last edited by

          @marcosm

          Ok cool. Thank you for the update. ☺

          1 Reply Last reply Reply Quote 0
          • C
            crisbackshop @marcosm
            last edited by

            @marcosm - Thanks for the link. However, I have a similar issue and I am starting here. I have a 2100 with v23.3. I configured the SMTP settings correctly and then installed the EmailReport package. After the install, I got an error.

            phperror.jpg

            Dec 7 09:00:33 reboot 42058 rebooted by root
            Dec 7 09:00:30 php-fpm 37473 /diag_reboot.php: Stopping all packages.
            Dec 7 08:59:29 php-fpm 601 thrown
            Dec 7 08:59:29 php-fpm 601 #0 {main}
            Dec 7 08:59:29 php-fpm 601 Stack trace:
            Dec 7 08:59:29 php-fpm 601 /status_mail_report.php: New alert found: PHP ERROR: Type: 1, File: /usr/local/www/status_mail_report.php, Line: 60, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_mail_report.php:60
            Dec 7 08:59:29 php-fpm 601 thrown
            Dec 7 08:59:29 php-fpm 601 #0 {main}
            Dec 7 08:59:29 php-fpm 601 Stack trace:
            Dec 7 08:59:29 php-fpm 601 /status_mail_report.php: PHP ERROR: Type: 1, File: /usr/local/www/status_mail_report.php, Line: 60, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_mail_report.php:60
            Dec 7 08:58:46 php-fpm 601 thrown
            Dec 7 08:58:46 php-fpm 601 #0 {main}
            Dec 7 08:58:46 php-fpm 601 Stack trace:
            Dec 7 08:58:46 php-fpm 601 /status_mail_report.php: New alert found: PHP ERROR: Type: 1, File: /usr/local/www/status_mail_report.php, Line: 60, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_mail_report.php:60
            Dec 7 08:58:46 php-fpm 601 thrown
            Dec 7 08:58:46 php-fpm 601 #0 {main}
            Dec 7 08:58:46 php-fpm 601 Stack trace:
            Dec 7 08:58:46 php-fpm 601 /status_mail_report.php: PHP ERROR: Type: 1, File: /usr/local/www/status_mail_report.php, Line: 60, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_mail_report.php:60
            Dec 7 08:58:08 php-fpm 601 thrown
            Dec 7 08:58:08 php-fpm 601 #1 {main}
            Dec 7 08:58:08 php-fpm 601 #0 /usr/local/www/status_mail_report_edit.php(216): configure_cron()
            Dec 7 08:58:08 php-fpm 601 Stack trace:
            Dec 7 08:58:08 php-fpm 601 /status_mail_report_edit.php: New alert found: PHP ERROR: Type: 1, File: /etc/inc/services.inc, Line: 4984, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/services.inc:4984
            Dec 7 08:58:08 php-fpm 601 thrown
            Dec 7 08:58:08 php-fpm 601 #1 {main}
            Dec 7 08:58:08 php-fpm 601 #0 /usr/local/www/status_mail_report_edit.php(216): configure_cron()
            Dec 7 08:58:08 php-fpm 601 Stack trace:
            Dec 7 08:58:08 php-fpm 601 /status_mail_report_edit.php: PHP ERROR: Type: 1, File: /etc/inc/services.inc, Line: 4984, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/services.inc:4984
            Dec 7 08:58:08 check_reload_status 679 Syncing firewall
            Dec 7 08:58:08 php-fpm 601 /status_mail_report_edit.php: Configuration Change: admin@x.x.x.x (Local Database): mailreport: Settings updated
            Dec 7 08:56:59 pkg-static 41056 pfSense-pkg-mailreport-3.6.4_4 installed
            Dec 7 08:56:59 php 41277 //etc/rc.packages: Successfully installed package: mailreport.
            Dec 7 08:56:59 check_reload_status 679 Syncing firewall
            Dec 7 08:56:59 php 41277 //etc/rc.packages: Configuration Change: (system): Installed mailreport package.
            Dec 7 08:56:59 check_reload_status 679 Syncing firewall
            Dec 7 08:56:59 php 41277 //etc/rc.packages: Configuration Change: (system): Intermediate config write during package install for mailreport.
            Dec 7 08:56:59 php 41277 //etc/rc.packages: Beginning package installation for mailreport .

            Then I tried creating a report and it saved 5 reports that were all empty. I then rebooted and it came back online, but in a recovered state.

            I was able to get back in a couple days later, luckily some of the settings were intack. I restored from a backup and then updated to 24.11-Release. I installed the mailreport package and it was successful. I also installed the system patches also and now it will not create a new report. It is blank. Here is the error:

            Dec 10 07:20:32 php-fpm 638 /status_mail_report_edit.php: config warning: invalid path "mailreports/schedule//" at /usr/local/www/status_mail_report_edit.php:210

            I am getting familiar with this process and will look into redmine also.

            Thanks

            M 1 Reply Last reply Reply Quote 0
            • M
              marcosm Netgate @crisbackshop
              last edited by

              @crisbackshop The patch is meant for 24.11.

              Dec 10 07:20:32 php-fpm 638 /status_mail_report_edit.php: config warning: invalid path "mailreports/schedule//" at /usr/local/www/status_mail_report_edit.php:210

              That error indicates the patch hasn't been applied.

              D 1 Reply Last reply Reply Quote 0
              • D
                Darkk @marcosm
                last edited by

                @marcosm I am using the latest version of System Patches of 2.2.19. I've been checking and so far haven't seen any new patches. I am still getting that WebGUI error.

                M 1 Reply Last reply Reply Quote 0
                • M
                  marcosm Netgate @Darkk
                  last edited by

                  @Darkk You'll need to add and apply the diff yourself - it's not included.

                  C D 2 Replies Last reply Reply Quote 0
                  • C
                    crisbackshop @marcosm
                    last edited by

                    @marcosm - Thank you! Worked like a charm and able to configure the reports that are emailed.

                    Thanks again!

                    1 Reply Last reply Reply Quote 0
                    • E
                      ex1580
                      last edited by ex1580

                      I have a similar but slightly different error. Would the same fix work for this? Thanks!

                      10:52:56 PHP ERROR: Type: 1, File: /usr/local/www/status_mail_report_edit.php, Line: 45, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_mail_report_edit.php:45
                      Stack trace:
                      #0 {main}
                      thrown

                      EDIT: pfSense Version: 24.11-RELEASE (arm64)

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        marcosm Netgate @ex1580
                        last edited by

                        @ex1580 Yes.

                        E 1 Reply Last reply Reply Quote 0
                        • E
                          ex1580 @marcosm
                          last edited by

                          @marcosm I applied the patch successfully and everything looks good. Thanks!

                          1 Reply Last reply Reply Quote 0
                          • D
                            Darkk @marcosm
                            last edited by

                            @marcosm said in Email Reports WebGUI crashes when trying to edit the reports:

                            @Darkk You'll need to add and apply the diff yourself - it's not included.

                            I've applied the patch and it's working perfectly now.

                            Thank you!

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