Email Reports WebGUI crashes when trying to edit the reports
-
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.1813Crash 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:44No FreeBSD crash data found.
-
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 -
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.