My occasional error
-
English
and name are all plain jane no punctuation -
English
and name are all plain jane no punctuationHmm…the sparse error message may make this hard to find. I have not see the error in my test virtual machines, and I don't know of any other posts here with the same problem (at least not yet). Have you tried removing the Snort widget from the Dashboard and then adding it back? Don't really know if that help, but it can't hurt to test.
If that does not help, post back and we can proceed with more in-depth troubleshooting.
Bill
-
This happens infrequently to a number of people, but we have not found the common factor yet.
Examples:
https://forum.pfsense.org/index.php?topic=105760.0
https://forum.pfsense.org/index.php?topic=109922.0
and threads pointed to in those… -
This happens infrequently to a number of people, but we have not found the common factor yet.
Examples:
https://forum.pfsense.org/index.php?topic=105760.0
https://forum.pfsense.org/index.php?topic=109922.0
and threads pointed to in those…Thanks Phil for the additional information. It appears this is maybe something going on in the overall widget code or perhaps more specifically with one of the system functions rather than being a problem with any single widget individually. Could also be something within PHP itself, I guess.
Bill
-
Its probably a php 'warning', can you check the contents of the /tmp/php_errors.log ? It should have the actual warning included. The 'partial' php error message is caused by a warning-filter https://redmine.pfsense.org/issues/6097
-
/tmp/php_errors.log and /tmp/php_errors.txt are both empty
-
You do still have that 'crashreport' on the dashboard screen? If that is deleted then i think the logs are cleared as well.
-
oh ok my bad didnt think about it that way
-
Its probably a php 'warning', can you check the contents of the /tmp/php_errors.log ? It should have the actual warning included. The 'partial' php error message is caused by a warning-filter https://redmine.pfsense.org/issues/6097
Ah! So that is the reason they are not shown.
Based on your input I think a recommended change would be (in beginning of the command):
/usr/bin/grep -vi warning /tmp/PHP_errors.log
To:
/bin/cat /tmp/PHP_errors.log
On /usr/local/www/index.php and /usr/local/www/crash_reporter.php
-
php_errors.log
[01-May-2016 03:15:01 Etc/UTC] PHP Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 1410
[01-May-2016 03:15:01 Etc/UTC] PHP Stack trace:
[01-May-2016 03:15:01 Etc/UTC] PHP 1. {main}() /usr/local/www/ifstats.php:0
[01-May-2016 03:15:01 Etc/UTC] PHP 2. require_once() /usr/local/www/ifstats.php:63
[01-May-2016 03:15:01 Etc/UTC] PHP 3. get_configured_interface_with_descr() /usr/local/www/guiconfig.inc:254
[01-May-2016 10:15:00 Etc/UTC] PHP Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 1410
[01-May-2016 10:15:00 Etc/UTC] PHP Stack trace:
[01-May-2016 10:15:00 Etc/UTC] PHP 1. {main}() /usr/local/www/widgets/widgets/installed_packages.widget.php:0
[01-May-2016 10:15:00 Etc/UTC] PHP 2. require_once() /usr/local/www/widgets/widgets/installed_packages.widget.php:63
[01-May-2016 10:15:00 Etc/UTC] PHP 3. get_configured_interface_with_descr() /usr/local/www/guiconfig.inc:254 -
That is weird. The code is a foreach over all the interfaces:
foreach ($config['interfaces'] as $if => $ifdetail) {
It could have an "if is_array()" to protect it - that will stop those warning messages - but actually $config['interfaces'] MUST always have at least 1 interface in it. So something is going wrong with the global $config
-
That is weird. The code is a foreach over all the interfaces:
foreach ($config['interfaces'] as $if => $ifdetail) {
It could have an "if is_array()" to protect it - that will stop those warning messages - but actually $config['interfaces'] MUST always have at least 1 interface in it. So something is going wrong with the global $config
Exactly what I was thinking.
IMO, the only way for that to ever happen is config.cache to be corrupted for whatever reason, so I've submitted the following PR:
https://github.com/pfsense/pfsense/pull/2925Additionally, with regards to truncation of crash report, I've submitted another PR:
https://github.com/pfsense/pfsense/pull/2922