Updated from 21.1.1. Traffic graph widget worked fine on that version.
I'm using a virtual OPNSense box on VMWare ESXi 7u1 with virtual E1000 interfaces.
There must be some problem related to the replacement of traffic graphs in widget using chart.js as I read in the changelog
I am seeing the same thing with Firefox on Windows, but Edge - Chrome is fine.
I started up a Windows Sandbox, and Old MS Edge has the same issue as does Firefox new install. Chrome is fine.
Works fine on Mac OS 10.14.6 on Firefox and Safari ;)
Would be nice if you could open the developer tools and find the JS error and whether the same issue is on the traffic graph page (not the widget).
Thanks,
Franco
I have the same problem. The widget does not work on Firefox but Chrome works fine. Also the traffic graph page works fine.
Firefox Console (two warnings, no errors):
This page uses the non standard property "zoom". Consider using calc() in the relevant property values, or using "transform" along with "transform-origin: 0 0".
(index.php)
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/
(jquery-3.5.1.min.js:2:81766)
Chrome Console warning:
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
(jquery-3.5.1.min.js:2)
On my Linux workstations I am seeing the same behaviour with Firefox and Brave.
REMOVED
I have same problem with the traffic graph as well. Only on Chrome it works properly.
On Firefox it simply does not load at all. When using Edge the graph appears but it is rather glitchy.
@TheLighthouse
https://github.com/opnsense/core/issues/4750
glitch is fixed
https://forum.opnsense.org/index.php?topic=21726.msg102444#msg102444
more global fix for widgets functions double bindings is waiting for review
upd. @AdSchellevis has already reviewed and merged changes
(Thanks again!)
Quote from: Fright on March 08, 2021, 03:46:42 PM
@TheLighthouse
https://github.com/opnsense/core/issues/4750
glitch is fixed
https://forum.opnsense.org/index.php?topic=21726.msg102444#msg102444
Doesn't work for me Firefox 86.0 @ Linux Debian
QuoteDoesn't work for me Firefox 86.0 @ Linux Debia
can you try
# opnsense-patch 4053952
?
@Fright that worked for me I just tested it and now my FFox is fine.
Quote from: Fright on March 09, 2021, 04:52:31 AM
QuoteDoesn't work for me Firefox 86.0 @ Linux Debia
can you try
# opnsense-patch 4053952
?
Quote from: cguilford on March 09, 2021, 01:38:54 PM
@Fright that worked for me I just tested it and now my FFox is fine.
Quote from: Fright on March 09, 2021, 04:52:31 AM
QuoteDoesn't work for me Firefox 86.0 @ Linux Debia
can you try
# opnsense-patch 4053952
?
Now it works randomly every few Dashboard reloads (F5), but in
most many cases widget is empty.
If you set the dash to 3 column it also extends too far beyond its column.
QuoteIf you set the dash to 3 column it also extends too far beyond its column
with patch installed?
QuoteNow it works randomly every few Dashboard reloads (F5), but in most cases widget is empty.
hm. can not reproduce. any errors in browser console?
Quote from: Fright on March 09, 2021, 04:17:16 PM
QuoteNow it works randomly every few Dashboard reloads (F5), but in most cases widget is empty.
hm. can not reproduce. any errors in browser console?
Uncaught TypeError: data is undefined
<anonymous> https://192.168.10.1/index.php:2898
complete https://192.168.10.1/ui/js/opnsense.js?v=a8833cf67460c892:242
jQuery 6
ajaxGet https://192.168.10.1/ui/js/opnsense.js?v=a8833cf67460c892:234
<anonymous> https://192.168.10.1/index.php:2895
jQuery 8
<anonymous> https://192.168.10.1/index.php:1426
index.php:2898:17
QuoteUncaught TypeError: data is undefined
this error can occur immediately after the page refresh (executed API requests are aborted and the firefox has time to throw an error. especially if you refresh the page again before it is fully loaded).
but all should work fine after this errors.
looks like an unpatched version for me
please can you swith to Inspector tab in the console and search for "widget.find" in "Search HTML" string? there should be 1 result
Quote from: Fright on March 09, 2021, 06:07:02 PM
QuoteUncaught TypeError: data is undefined
this error can occur immediately after the page refresh (executed API requests are aborted and the firefox has time to throw an error. especially if you refresh the page again before it is fully loaded).
but all should work fine after this errors.
looks like an unpatched version for me
please can you swith to Inspector tab in the console and search for "widget.find" in "Search HTML" string? there should be 1 result
This error show up no matter what is the refresh interval. In this case widget remains empty "forever".
There's no "widget.find" in inspector tab -> "Search HTML" -> result
QuoteThere's no "widget.find"
if there's no "widget.find" in HTML then 4053952 not applied
Quote from: Fright on March 09, 2021, 08:50:32 PM
QuoteThere's no "widget.find"
if there's no "widget.find" in HTML then 4053952 not applied
I'm pretty sure it was...
root@OPNsense:/home/qba # opnsense-patch 4053952
Found local copy of 4053952, skipping fetch.
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From 405395264ffb4f77e298a3bfa5d670b9a53eeda6 Mon Sep 17 00:00:00 2001
|From: kulikov-a <36099472+kulikov-a@users.noreply.github.com>
|Date: Mon, 8 Mar 2021 21:45:00 +0300
|Subject: [PATCH] index.php: strip scripts from widgets before move (#4752)
|
|---
| src/www/index.php | 3 +++
| 1 file changed, 3 insertions(+)
|
|diff --git a/src/www/index.php b/src/www/index.php
|index 6663799e70..dd6abb0241 100644
|--- a/src/www/index.php
|+++ b/src/www/index.php
--------------------------
Patching file www/index.php using Plan A...
Reversed (or previously applied) patch detected! Assuming -R.Hunk #1 succeeded at 263.
done
All patches have been applied successfully. Have a nice day.
Whis is what i got after running opnsense-patch 4053952 again...
QuoteReversed (or previously applied) patch detected!
yes, looks like it was applied. but then definitely there should have been a "widget.find" when searching in html.
I'm trying very hard to reproduce this behavior on the patched version and nothing works for me.
so it looks like on this ticket? https://github.com/opnsense/core/issues/4750
Quote from: Fright on March 10, 2021, 07:17:52 AM
QuoteReversed (or previously applied) patch detected!
yes, looks like it was applied. but then definitely there should have been a "widget.find" when searching in html.
I'm trying very hard to reproduce this behavior on the patched version and nothing works for me.
so it looks like on this ticket? https://github.com/opnsense/core/issues/4750
Yes, same issue.
(https://dom.sobczyk.in/~qba/widget.png)
(https://dom.sobczyk.in/~qba/widget2.png)
ah. i see. autocomplete will not show this. you need to type it and press enter )
can you apply this patch again please?
and i will try to reproduce the bug again
Quote from: Fright on March 10, 2021, 09:17:58 AM
ah. i see. autocomplete will not show this. you need to type it and press enter )
can you apply this patch again please?
and i will try to reproduce the bug again
You were right. Here's the output with patch reapplied. For some reason FF doesn't let my copy as text...
(https://dom.sobczyk.in/~qba/find.png)
P.S. Firefox 86.1.1@Android has the same issue.