Page 1 of 1

B/W Distribution not rendered correctly

Posted: Sun Jan 22, 2012 1:36 pm
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 12184 times

Re: B/W Distribution not rendered correctly

Posted: Sun Jan 22, 2012 2:09 pm
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.

Re: B/W Distribution not rendered correctly

Posted: Mon Jan 30, 2012 12:53 am
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.

Re: B/W Distribution not rendered correctly

Posted: Mon Jan 30, 2012 2:14 am
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

Re: B/W Distribution not rendered correctly

Posted: Sat Feb 04, 2012 2:17 pm
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.

Re: B/W Distribution not rendered correctly

Posted: Sat Feb 04, 2012 3:33 pm
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)

Re: B/W Distribution not rendered correctly

Posted: Sun Jun 10, 2012 8:55 pm
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 11637 times
bw2.png
bw2.png (155.75 KiB) Viewed 11637 times
bw3.png
bw3.png (142.44 KiB) Viewed 11637 times

Re: B/W Distribution not rendered correctly

Posted: Wed Jun 13, 2012 2:25 am
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

Re: B/W Distribution not rendered correctly

Posted: Wed Nov 14, 2012 1:49 am
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!

Re: B/W Distribution not rendered correctly

Posted: Thu Jan 01, 2015 1:21 am
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