Opened 7 years ago
Closed 6 years ago
#13410 closed defect (invalid)
Kis assistant not working anymore.
Reported by: | Owned by: | Jon Ashley | |
---|---|---|---|
Priority: | normal | Component: | KeepInterfaceSimplePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
Since our upgrade to trac 1.2.2 and KeepInterfaceSimplePlugin 2.3, our kis assistant is not working anymore.
A simple use case is that we try to hide the version field for enhancements. The configuration used to be like this:
[kis_assistant] version.visible.all = type == 'bug'
But the version field is always shown. Is there anything we can do to debug this issue?
Kind regards
Attachments (3)
Change History (21)
comment:2 Changed 7 years ago by
Also, does the Trac admin panel show that the kis plugin is present and all components are enabled?
comment:3 Changed 7 years ago by
I have not been able to reproduce this in Debian Linux, running Trac 1.2.2 from tracd
, using the version of kisplugin under tags/2.3 and using Firefox ESR 52.6.0 as the browser.
comment:4 Changed 7 years ago by
Hi,
the kis plugin is enabled in the admin panel.
I'm running debian 9.4 running trac 1.2.2 from apache and firefox 59.0.2. Is there any logging or debugging I could enable?
comment:5 Changed 7 years ago by
There are no other plugins in use then? Just to be clear, as well as the plugin itself being enabled in the admin panel, are the three components BuiltInConfigFunction, KisAssistant and KisWarden also all enabled?
Check whether the client-side script is being sent to the browser. Open a ticket page, press F12 in the browser, then select the Debugger tab on the developer console. You should see the script 'kis.js' in the "Sources" list. Is it there?
Error messages such as syntax errors in the trac.ini configuration or undefined field names are sent to the developer console. Try putting a deliberate syntax error in the configuration and check this is logged in the console when viewing a ticket. For example,
[kis_assistant] type.visible = true)
should log
unexpected input true) ----^
If you can't find that error message, try
[kis_assistant] type.visible = dummy()
instead, which should throw a very visible error page "Function 'dummy' has no implementation", titled "Missing plugin or error in trac.ini [kis2_assistant]". Does it?
If none of this sheds any light on the issue, could you please post your trac.ini file here?
comment:6 follow-up: 7 Changed 7 years ago by
Hi,
I found the issue. It seems the ticket reference plugin (TracTicketReferencePlugin) is not compatible with the KeepInterfaceClean plugin. I disabled that plugin and it started working again. Sorry for the inconvenience.
Kind regards,
comment:7 Changed 7 years ago by
Replying to dries.decock@…:
I found the issue. It seems the ticket reference plugin (TracTicketReferencePlugin) is not compatible with the KeepInterfaceClean plugin.
TracTicketReferencePlugin has some JavaScript which could be the issue. Any errors in the browser console (trac:TracTroubleshooting#ChecktheBrowserConsole)?
comment:8 Changed 7 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Reproduced and opened issue #9 for TracTicketReferencePlugin. I'll provide a patch for that plugin.
comment:9 follow-up: 11 Changed 7 years ago by
I tried to reproduce the issue by installing TracTicketReferencePlugin, but haven't had any luck so far - both that plugin and KeepInterfaceSimplePlugin are working together fine.
However, I am getting an error in the browser console with TracTicketReferencePlugin enabled. This seems to originate in that plugin's ticket.js
script and causes a later error in jQuery:
jQuery.Deferred exception: $(...).live is not a function @http://127.0.0.1:8080/chrome/ticketref/ticket.js:32:5 resolve/</mightThrow@http://127.0.0.1:8080/chrome/common/js/jquery.js:2:16085 resolve/</process<@http://127.0.0.1:8080/chrome/common/js/jquery.js:2:16754 undefined jquery.js:2:18858 TypeError: $(...).live is not a function[Learn More] ticket.js:32:5
The .live
method was apparently deprecated in jQuery 1.7 and removed in jQuery 1.9. Trac 1.2.2 appears to be using jQuery 3.2.1, so this could be related.
I'll see if I can replace the use of .live
in TracTicketReferencePlugin with .on
. It might resolve your issue - it's very difficult to say, as I can't reproduce it.
comment:11 Changed 7 years ago by
Replying to Jon Ashley:
Good to arrive at same solution!
The
.live
method was apparently deprecated in jQuery 1.7 and removed in jQuery 1.9. Trac 1.2.2 appears to be using jQuery 3.2.1, so this could be related.
Uses 1.11.3, see newly-added table.
comment:12 Changed 7 years ago by
I wonder if the version of Trac in my distribution (Debian 10 'buster') has been modified then? I got the jQuery version by typing
$().jquery
in the browser console. One to watch out for in future and possibly the reason that I couldn't reproduce the error whereas you could; perhaps version 3.2.1 recovers from the missing-function error more robustly?
comment:13 Changed 7 years ago by
Yes, that's it: Trac in Debian is using the distribution's package libjs-jquery at version 3.2.1-1.
comment:14 Changed 7 years ago by
You guys rock! I will apply the patch for ticketreferenceplugin, and will verify everything is working as expected.
Thanks again!
Changed 6 years ago by
Attachment: | kis2_loaded.PNG added |
---|
Changed 6 years ago by
Changed 6 years ago by
Attachment: | plugins.PNG added |
---|
comment:17 Changed 6 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Hi all;
Can't have kis2 working. Ubuntu 18.04, Trac 1.2.3. I see kis2.js loaded, without errors.
Plugins I have are mastertickets enabled. dynfields disabled and uninstalled. some other plugins are also installed but not enabled.
I am testing kis2 with a simple custom field labeled "one" as below, but can't have the field "invisible". attachment:trac.ini
[kis2-assistant] one.visible.all = status==assigned [ticket-custom] blockedby = text blockedby.label = Blocked By blocking = text blocking.label = Blocking one = text one.label = one
Thanx in advance.
comment:18 Changed 6 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Please make a new ticket.
I'll try and reproduce it. Can you please tell me what platform you are using (Linux, Windows, ...), what browser and the browser version, and what other plugins are enabled, if any? If you can think of anything else about the environment that might be relevant, please let me know that too.
Are there any error messages in the browser console window (most browsers show this when F12 is pressed) or in the Trac error log?