Project

General

Profile

Wt internal error; code: undefined, description: Wt3_3_7.WPopupWidget is not a constructor

Added by Harm ​ almost 7 years ago

Hello,

I've upgraded Wt from 3.3.6 to 3.3.7, and now our project doesn't work anymore.

We're using WPopupWidget's to show WTexts which will, when clicked, insert the widget with all the contents for that page.

What it should look like.

However, after upgrading to Wt v3.3.7, this happened:

What it shouldn't look like.

Upon clicking a WPopupWidget, three dots is all it's showing. (I've clicked all three WPopupWidgets here btw)

And when clicking any WPushButton which opens a WDialog, I'm getting this errormessage, and my session crashes.

The errormessage.

There's a few ways that makes the problem not appear.

- Not adding anything to the WPopupWidget's WContainerWidget seems to make the rest work fine.

- Disabling a WSound elsewhere in code also seems to "fix" my problem.

  • Circumventing my login widget seems to work fine too.

I've tried to make a testcase with WPopupWidgets, a WPushButton that shows

a WDialog and a WSound together, but I can't seem to reproduce the problem there.

Our project works fine on v3.3.5 and v3.3.6.

Someone on the forum has had this problem before, but didn't seem to find the cause:

Wt internal error; code: undefined, description: Wt3_3_5.WPopupWidget is not a constructor

Good.png (13.1 KB) Good.png What it should look like.
Bad.png (5.44 KB) Bad.png What it shouldn't look like.
WPopupWidget_is_not_a_constructor.png (6.08 KB) WPopupWidget_is_not_a_constructor.png The errormessage.

Replies (3)

RE: Wt internal error; code: undefined, description: Wt3_3_7.WPopupWidget is not a constructor - Added by Harm ​ almost 7 years ago

I've replaced the WPopupWidget with a WPopupMenu, and now:

- It also shows the three dots instead of a menu when clicked.

  • It doesn't show any error when clicking WPushButtons which open dialogs.

RE: Wt internal error; code: undefined, description: Wt3_3_7.WPopupWidget is not a constructor - Added by Roel Standaert almost 7 years ago

Can you also test with the latest master? This may have been fixed. I might look into wrapping up some stuff and get the next release out the door.

Regards,

Roel

RE: Wt internal error; code: undefined, description: Wt3_3_7.WPopupWidget is not a constructor - Added by Harm ​ almost 7 years ago

Roel Standaert wrote:

Can you also test with the latest master? This may have been fixed.

I've tested our project with the second to last commit df11e50. (as I was already building it when the last commit came out)

The problem does not occur there.





Roel Standaert wrote:

I might look into wrapping up some stuff and get the next release out the door.

Well, we know that 3.3.6 works, 3.3.7 doesn't (for us at least) and 3.3.8 should work again.

We'll just stick to 3.3.6 for now.





Thanks!

Harm.

    (1-3/3)