Traffic graph widget not working anymore after 21.1.2 update

Started by muchacha_grande, February 23, 2021, 05:17:23 PM

Previous topic - Next topic
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  ;)
OPNsense 23.1.2-amd64
FreeBSD 13.1-RELEASE-p7
OpenSSL 1.1.1t 7 Feb 2023

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

March 08, 2021, 01:21:42 PM #7 Last Edit: March 08, 2021, 01:25:29 PM by TheLighthouse
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!)


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?