Modify

Opened 4 years ago

Last modified 2 years ago

#7600 new defect

TypeError actions[i] is undefined

Reported by: didley@… Owned by: olemis
Priority: normal Component: WhiteboardPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When I save my changes I get the error

Attachments (3)

actions_i.JPG (7.4 KB) - added by anonymous 4 years ago.
typeerror.JPG (9.3 KB) - added by didley@… 4 years ago.
query.zip (23.0 KB) - added by didley@… 4 years ago.

Download all attachments as: .zip

Change History (14)

Changed 4 years ago by anonymous

comment:1 Changed 4 years ago by CuriousCurmudgeon

  • Status changed from new to assigned

What browser are you on? I have tested in Chrome 5, Firefox 3.6, and IE8 and cannot reproduce your error.

comment:2 Changed 4 years ago by didley@…

I'm using Firefox 3.5.11 and when I'm using Internet Explorer 8 . I get this one

Which means this Object doesn't support this property or method

Changed 4 years ago by didley@…

comment:3 Changed 4 years ago by CuriousCurmudgeon

Can you send me details about your Trac environment? I want to see if the problem is with interacting with another plugin.

The code that builds the actions is below. The plugin keeps track of this information every time you drop a ticket into a new column and then uses this it when you try to save your changes. Your error is implying that the parentElement property is undefined for some reason. To get the plugin to work with Trac 0.11 I had to rollback to an older version of jQueryUI that I am not familiar with, so I may be doing something wrong there.

actions.push({
    "ticket": /(board_ticket_)(\d)/.exec(ui.item.attr("id"))[2],
    "from": ui.sender[0],
    "to": ui.item[0].parentElement
});

comment:4 Changed 4 years ago by didley@…

here my system information I attached the html source code also.

System Information

Trac: 	0.11.7
Python: 	2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
setuptools: 	0.6c9
SQLite: 	3.3.4
pysqlite: 	2.3.2
Genshi: 	0.5.1
Pygments: 	1.0
RPC: 	1.0.6
Agilo: 	0.8.3.2-r2138-20091203
Subversion: 	1.5.6 (r36142)
CustomFieldAdmin: 	0.2.2
jQuery:	1.2.6

query.txt

Changed 4 years ago by didley@…

comment:5 Changed 4 years ago by CuriousCurmudgeon

Looking over the scripts on your page I think the culprit is the MindMapMacro. It is loading v1.7.2 of jQueryUI core. The WhiteboardPlugin is then attempting to load jQueryUI 1.6. Can you try disabling this macro and see what happens?

There may also be a problem with the load order of the scripts in the plugin. whiteboard.js is being loaded first when it should be last.

comment:6 Changed 4 years ago by CuriousCurmudgeon

(In [8586]) refs #7600

  • Fixed script load order in 0.12 version.

comment:7 Changed 4 years ago by CuriousCurmudgeon

(In [8587]) refs #7600

  • Merged r8586 into 0.11 version.

comment:8 Changed 4 years ago by didley@…

I disabled MindMapMacro and it's the same error. I took your new revision and it's the same error also.

comment:9 Changed 4 years ago by CuriousCurmudgeon

I would start adding console.log() statements into whiteboard.js then. I'm developing myself on Trac 0.11.7 with the batch modify and XML RPC plugins installed. That leads me to still think that it is a conflict with some other plugin. I know Agilo is pretty heavyweight, but I don't know if it hooks into the query page.

comment:10 Changed 4 years ago by didley@…

I think it's not Agilo. It's the same problem with a project without Agilo.

didley

comment:11 Changed 2 years ago by rjollos

  • Owner changed from CuriousCurmudgeon to olemis
  • Status changed from assigned to new

Add Comment

Modify Ticket

Action
as new The owner will remain olemis.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.