Email Reports WebGUI crashes when trying to edit the reports
-
Ok cool. Thank you for the update.
-
@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.
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
-
@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.
-
@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.
-
@Darkk You'll need to add and apply the diff yourself - it's not included.
-
@marcosm - Thank you! Worked like a charm and able to configure the reports that are emailed.
Thanks again!
-
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}
thrownEDIT: pfSense Version: 24.11-RELEASE (arm64)
-
@ex1580 Yes.
-
@marcosm I applied the patch successfully and everything looks good. Thanks!
-
@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!