Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing smart widget #1848

Closed
wants to merge 1 commit into from
Closed

Fixing smart widget #1848

wants to merge 1 commit into from

Conversation

darkain
Copy link

@darkain darkain commented May 24, 2020

Fix for:
Warning: Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/smart_status.widget.php on line 48

For some reason, configd_run('smart detailed list') is returning NULL, this will at least handle that case.

Fix for:
`Warning: Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/smart_status.widget.php on line 48`

For some reason, `configd_run('smart detailed list')` is returning `NULL`, this will at least handle that case.
@fichtner fichtner self-assigned this May 24, 2020
@fichtner
Copy link
Member

Can you find out what this "some reason" is? Squelching a warning is not the best way to approach the underlying issue.

@darkain
Copy link
Author

darkain commented May 25, 2020

Here, have an entire Twitter thread. Honestly, no idea. There is some deep rooted bug in OPNsense core somewhere. But this is the only widget that outright FAILS from whatever the underlying core is doing wrong, and causes error reports.

https://twitter.com/DarkainMX/status/1264594656186101762

@darkain
Copy link
Author

darkain commented May 26, 2020

Apparently the configd service somehow got stopped on the routers, which this causes only the smart widget to break, all other widgets handle it gracefully.

@fichtner fichtner removed their assignment May 27, 2020
@jokay
Copy link
Contributor

jokay commented Jun 3, 2020

You may add the missing ; after endforeach in this PR?

@darkain
Copy link
Author

darkain commented Jun 30, 2022

Hey, just an FYI: this bug STILL exists. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants