• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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
464
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.
  • M
    marcosm Netgate
    last edited by Nov 26, 2024, 11:32 PM

    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 Nov 26, 2024, 11:47 PM Reply Quote 0
    • D
      Darkk @marcosm
      last edited by Nov 26, 2024, 11:47 PM

      @marcosm

      Ok cool. Thank you for the update. ☺

      1 Reply Last reply Reply Quote 0
      • C
        crisbackshop @marcosm
        last edited by Dec 10, 2024, 1:11 PM

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

        login-to-view

        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 Dec 11, 2024, 12:14 AM Reply Quote 0
        • M
          marcosm Netgate @crisbackshop
          last edited by Dec 11, 2024, 12:14 AM

          @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 Dec 11, 2024, 12:25 AM Reply Quote 0
          • D
            Darkk @marcosm
            last edited by Dec 11, 2024, 12:25 AM

            @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 Dec 11, 2024, 12:30 AM Reply Quote 0
            • M
              marcosm Netgate @Darkk
              last edited by Dec 11, 2024, 12:30 AM

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

              C D 2 Replies Last reply Dec 12, 2024, 4:58 AM Reply Quote 0
              • C
                crisbackshop @marcosm
                last edited by Dec 12, 2024, 4:58 AM

                @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 Dec 14, 2024, 4:19 PM Dec 14, 2024, 4:16 PM

                  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 Dec 14, 2024, 4:43 PM Reply Quote 0
                  • M
                    marcosm Netgate @ex1580
                    last edited by Dec 14, 2024, 4:43 PM

                    @ex1580 Yes.

                    E 1 Reply Last reply Dec 14, 2024, 6:09 PM Reply Quote 0
                    • E
                      ex1580 @marcosm
                      last edited by Dec 14, 2024, 6:09 PM

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

                      1 Reply Last reply Reply Quote 0
                      • D
                        Darkk @marcosm
                        last edited by Dec 14, 2024, 7:00 PM

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