0

Message: "Failed to process setattr zkoss - ZK."

asked 2019-10-14 23:07:17 +0800

RicardoRivas gravatar image RicardoRivas
31

Hi, I have a problem. When the window is loading we see the following message: "Failed to process setattr zkoss - ZK."

Show the message for a moment and then finish loading the window.

Would there be any way that this message does not come out?

Browser: IE 11 ZK version: 8.0.4

delete flag offensive retag edit

4 Answers

Sort by » oldest newest most voted
0

answered 2019-10-15 17:52:01 +0800

MDuchemin gravatar image MDuchemin
1441 1 5
ZK Team

Hi RicardoRivas, welcome to the forum.

This message indicates that a JavaScript function went wrong and tried to access an undefined value, or a value on an undefined attribute.

When this happen, there should be a trace in your JS console (in browser's developer tools) which should give more info on what went wrong. Please paste it here with the whole stack trace below it so that we can have a more in-depth look :)

if you can also give a short description of what kind of action trigger the issue, would also be helpful.

link publish delete flag offensive edit
0

answered 2019-10-24 14:36:24 +0800

RicardoRivas gravatar image RicardoRivas
31

Hi MDuchemin, thank you for you answer.

The following trace is shown on my JS console.

SCRIPT5007: Unable to get value of the property 'innerHTML': object is null or undefined zk.wpd (23,7705)

This trace is only displayed when it is running in IE. This problem happens when I press a button to change pages. At the moment the page is loading, this message is displayed for a moment and then the page loads normally.

link publish delete flag offensive edit

Comments

Hi, it looks like a JS script tried to access the innerHTML value of a non-existing dom node.

MDuchemin ( 2019-10-24 18:40:36 +0800 )edit

In the JS console, there should be a way to show the full stack trace including the previous function calls leading to the error.

MDuchemin ( 2019-10-24 18:41:13 +0800 )edit

This should give an idea of which workflow caused the issue. can you paste it here?

MDuchemin ( 2019-10-24 18:41:38 +0800 )edit
0

answered 2019-11-12 00:53:55 +0800

RicardoRivas gravatar image RicardoRivas
31

Hi MDuchemin, here i paste the stack trace.

The object return for the function s.$n() is:

th class="z-column z-column-sort" id="sXAPl" style="text-align: left;">

When parentNode is done on this object it fails

STACKTRACE: [Subproceso principal]

zFlex.fixFlex [Line: 24, Col: 3974], zk.wpd zFlex.onSize [Line: 24, Col: 3522], zk.wpd n [Line: 13, Col: 1123], zk.wpd fire [Line: 13, Col: 854], zk.wpd o [Line: 13, Col: 2700], zk.wpd fire [Line: 13, Col: 3549], zk.wpd fire [Line: 16, Col: 6227], zk.wpd h [Line: 21, Col: 6908], zk.wpd

[Llamada asincrónica] d [Line: 21, Col: 9761], zk.wpd bH.event.dispatch [Line: 9, Col: 54118], zk.wpd cb.handle [Line: 9, Col: 50286], zk.wpd

[Llamada asincrónica] bH.event.add [Line: 9, Col: 50915], zk.wpd Anonymous function [Line: 9, Col: 60913], zk.wpd each [Line: 9, Col: 5930], zk.wpd bH.prototype.each [Line: 9, Col: 2184], zk.wpd on [Line: 9, Col: 60885], zk.wpd bH.fn[e] [Line: 9, Col: 83632], zk.wpd Anonymous function [Line: 21, Col: 10098], zk.wpd b2 [Line: 9, Col: 31197], zk.wpd ca.fireWith [Line: 9, Col: 32201], zk.wpd ready [Line: 9, Col: 3623], zk.wpd

[Llamada asincrónica] bH.ready.promise [Línea: 9, Col: 8092], zk.wpd bH.prototype.ready [Línea: 9, Col: 2229], zk.wpd bH.prototype.init [Línea: 9, Col: 1789], zk.wpd bH [Línea: 9, Col: 222], zk.wpd Anonymous function [Línea: 9, Col: 36106], zk.wpd Anonymous function [Línea: 9, Col: 33957], zk.wpd Global code [Línea: 9, Col: 2], zk.wpd

link publish delete flag offensive edit
0

answered 2019-11-12 17:35:27 +0800

MDuchemin gravatar image MDuchemin
1441 1 5
ZK Team

Hi Ricardo, From your description, it looks like the column is no longer attached to the page, but is still trying to resize itself. Stacktrace is somewhat difficult to parse, since it's using minified code.

I'd recommend activating debug-js mode (display non-minified JS in browser) with : <client-config> <debug-js>true</debug-js> </client-config> in zk.xml

Also, could you give me a small overwiew of where this column is located? If you can make a fiddle to reproduce, that'be helpful :) (bumped your karma to enable links in your posts)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2019-10-14 23:07:17 +0800

Seen: 22 times

Last updated: 19 hours ago

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More