B/W Distribution not rendered correctly

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

B/W Distribution not rendered correctly

Post by hnl_dk »

Firmware: Gargoyle 1.5.2
Browser: Mozilla Firefox 9.0 (Win XP)

As a follow up to http://www.gargoyle-router.com/phpbb/vi ... 482#p10482

When I visit B/W Distribution, I get the following error and warnings (and the content of the website is not rendered correctly):

Code: Select all

Error: a is not a function
Sourcefile: http://192.168.254.1/js/bdist.js?1.5.2
Line: 7

Warning: assignment to undeclared variable windowElement
Sourcefile: http://192.168.254.1/js/bdist.js?1.5.2
Line: 7

Warning: assignment to undeclared variable optionIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable option
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable addIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable currentSelection
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable selectedText
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable oeIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable selectedValue
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable selectedIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7

Warning: assignment to undeclared variable monitorNames
Sourcefile: http://192.168.254.1/bandwidth_distribution.sh
Line: 179

Warning: function getSelectedValue does not always return a value
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7, Column: 15914

Warning: variable c redeclares argument
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7, Column: 15355

Warning: Error in parsing value for 'filter'. Declaration dropped.
Sourcefile: http://192.168.254.1/themes/default/common.css?1.5.2
Line: 79

Warning: Error in parsing value for 'filter'. Declaration dropped.
Sourcefile: http://192.168.254.1/themes/default/common.css?1.5.2
Line: 42

Warning: Unknown property 'MozOpacity'. Declaration dropped.
Sourcefile: http://192.168.254.1/themes/default/common.css?1.5.2
Line: 41
Here is what it is looking like:
B_W_Distribution rendering problem
B_W_Distribution rendering problem
B_W_Distribution.png (35.89 KiB) Viewed 12158 times
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: B/W Distribution not rendered correctly

Post by hnl_dk »

Just a fast look at the easiest parts... will hopefully get some energy to look further later.

Code: Select all

Warning: Unknown property 'MozOpacity'. Declaration dropped.
Sourcefile: http://192.168.254.1/themes/default/common.css?1.5.2
Line: 41
-moz-opacity has not been supported since Firefox 3.5, as Firefox is now using the CSS3 standard opacity.
Line 41 should be ignored by anything else than Firefox <3.5.

Code: Select all

Warning: Error in parsing value for 'filter'. Declaration dropped.
Sourcefile: http://192.168.254.1/themes/default/common.css?1.5.2
Line: 42
" filter:alpha(opacity=75);"
Line 42 should be ignored by anything else than IE.

Code: Select all

Warning: Error in parsing value for 'filter'. Declaration dropped.
Sourcefile: http://192.168.254.1/themes/default/common.css?1.5.2
Line: 79
" filter:mask();"
Line 79 should be ignored by anything else than IE.

Code: Select all

Warning: assignment to undeclared variable monitorNames
Sourcefile: http://192.168.254.1/bandwidth_distribution.sh
Line: 179
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable selectedIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable selectedValue
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable oeIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable selectedText
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable currentSelection
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable addIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable option
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable optionIndex
Sourcefile: http://192.168.254.1/js/common.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.

Code: Select all

Warning: assignment to undeclared variable windowElement
Sourcefile: http://192.168.254.1/js/bdist.js?1.5.2
Line: 7
Needs to get declared, before it gets assigned.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

lceron80
Posts: 113
Joined: Sun Jul 24, 2011 3:42 pm

Re: B/W Distribution not rendered correctly

Post by lceron80 »

i first reported this bug a couple of days ago and have been playing around with the settings to see if it really doesn't work. it seems to work only when it wants to because a couple of times i was able to get some graphs to show accurately. the firefox console is giving errors with the css. this is not a big issue but it would be great if it would be fixed for the rare times when this feature is used.
1x wndr3700v4 exp. 1.9.x
1x wndr3800 exp. 1.9.x
1x wndr4300v1 exp. 1.9.x
1x wndrmacv2 exp. 1.9.x

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: B/W Distribution not rendered correctly

Post by ispyisail »

lceron80 wrote:i first reported this bug a couple of days ago and have been playing around with the settings to see if it really doesn't work. it seems to work only when it wants to because a couple of times i was able to get some graphs to show accurately. the firefox console is giving errors with the css. this is not a big issue but it would be great if it would be fixed for the rare times when this feature is used.
I can also confirm this report

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: B/W Distribution not rendered correctly

Post by Eric »

The warnings don't matter, just the error.

I've now committed a fix that I THINK should address this issue, but since I'm having trouble reproducing it, I can't be sure.

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: B/W Distribution not rendered correctly

Post by hnl_dk »

Eric wrote:The warnings don't matter, just the error.

I've now committed a fix that I THINK should address this issue, but since I'm having trouble reproducing it, I can't be sure.
Confirmed, the problem is solved with this change :mrgreen:
Thank you Eric.

What I did to test it.

Visited B/W Distribution and made sure that it was not working. Tried to refresh a few times and no change.

Through ssh:

Code: Select all

cd /www/js/
rm ./bdist.js
wget http://www.gargoyle-router.com/gargoyle/projects/gargoyle/repository/revisions/master/raw/package/gargoyle/files/www/js/bdist.js
Refreshed the B/W Distribution page again and it was working right away. To make sure, I logged out of the router... logged on again and checked the B/W Distribution page once again.
This time it was working perfectly again.

So thank you very much Eric :mrgreen: (even though I am not using this myself)
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

kipsta
Posts: 18
Joined: Sun Jun 10, 2012 8:25 pm
Location: Australia

Re: B/W Distribution not rendered correctly

Post by kipsta »

Hi,
I am having the same problem. Prior to June everything was fine. Charts/data all good. Since the start of June I am not getting any charts/data.
I have tried the fix above but with no luck. Any ideas?

Thanks
kip
BW1.png
BW1.png (106.89 KiB) Viewed 11611 times
bw2.png
bw2.png (155.75 KiB) Viewed 11611 times
bw3.png
bw3.png (142.44 KiB) Viewed 11611 times
Router TP Link WDR4300 V1.7 Gargoyle 1.13.0 Ispy 20210723

kipsta
Posts: 18
Joined: Sun Jun 10, 2012 8:25 pm
Location: Australia

Re: B/W Distribution not rendered correctly

Post by kipsta »

HI,
I have solved my problem. It seems as though when I played around with this fix I stuffed things up.
http://www.gargoyle-router.com/phpbb/vi ... =20#p12946
I have gone through the whole process again and all is good

Regards
kip
Router TP Link WDR4300 V1.7 Gargoyle 1.13.0 Ispy 20210723

Frog
Posts: 1
Joined: Wed Nov 14, 2012 1:45 am

Re: B/W Distribution not rendered correctly

Post by Frog »

Hi,
I'm having the same problem as the orig. post. Charts for BW usage and quota usage not showing up at all. WNDR3700V2 with 1.5.6 being used.. I can't figure out how you guys fixed this.. please walk me through. I don't know was ssh is, and what role the code:

Through ssh:

Code: Select all
cd /www/js/
rm ./bdist.js
wget http://www.gargoyle-router.com/gargoyle ... s/bdist.js

plays, or where to insert it..
Thanks for any help!

Arjumand
Posts: 1
Joined: Thu Jan 01, 2015 1:16 am

Re: B/W Distribution not rendered correctly

Post by Arjumand »

The other thing I will mention is that 700kbps bandwidth setting you have. Just make sure that that this is sufficient because if for example WoW changed for some reason and now needs 800kbps then you will have lag there.

You might have the the GF play when the torrents are not running and see that is it using well under 700kbps.

Usman

Post Reply