I can confirm the error on Ubuntu 10.04, Trac 0.11.7, TracTicketStatsPlugin 2.1, and Firefox 3.6.8.
The error I see in the Firefox Error Console is:
Error: YAHOO.widget.LogReader is not a constructor
Source File: http://localhost:8000/tracdev/ticketstats
Line: 164
I patched as you suggested:
-
|
|
|
16 | 16 | <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js"></script> |
17 | 17 | <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/datasource/datasource-beta-min.js"></script> |
18 | 18 | <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/json/json-min.js"></script> |
| 19 | <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/logger/logger-min.js"></script> |
19 | 20 | <!-- OPTIONAL: Connection (enables XHR) --> |
20 | 21 | <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/connection/connection-min.js"></script> |
21 | 22 | <!-- Source files --> |
However, now there is an error console at the bottom of the page:
I know nothing about javascript, so I need some guidance on the best way to fix this issue. Should we:
- Add some sort of debug flag that causes the logger to be included?
- Remove the logger code from the production version?
The logger code is form lines 145:149,
</script>
<div id="myLogger"></div>
<script type="text/javascript">
var myLogReader = new YAHOO.widget.LogReader("myLogger");
</script>