doxygen update / chm issues

27 views
Skip to first unread message

David Connet

unread,
May 11, 2026, 11:57:52 AM (3 days ago) May 11
to wx-dev
I just synced to master, updated my doxygen from 1.9.3 to 1.15.0. After
generating the chm file, when I open it I get:

An error has occurred in the script on this page:
Line: 30
Char: 5
Error: Expected ';'
Code: 0
URL: mk:@MSITStore:D:\devtools\wx\docs-chm\wx.chm::/dynsections.js
Do you want to continue running scripts on this page?

The CHM is opening on the 'Index' tab, and it shows nothing in the
search box and " (string)" in the list.

(that's the path to where I copied the chm)

Before the doxygen upgrade, I also got that error for any version of
doxygen after 1.9.3 that I tried.

I tried all the suggestions googleAI had when searching: chm "An error
has occurred in the script on this page" but none worked (I've included
the message when unchecking disable-debugging)

After turning off 'Disable script debugging' (suggested by googling),
the debugger shows:
Line: 33
Error: 'codefold' is undefined

Dave

Vadim Zeitlin

unread,
May 11, 2026, 1:26:45 PM (3 days ago) May 11
to wx-...@googlegroups.com
On Mon, 11 May 2026 08:57:47 -0700 David Connet wrote:

DC> I just synced to master, updated my doxygen from 1.9.3 to 1.15.0. After
DC> generating the chm file, when I open it I get:
DC>
DC> An error has occurred in the script on this page:

Does setting HTML_DYNAMIC_MENUS to "NO" in Doxyfile (and rerunning
Doxygen, of course) help? See https://github.com/doxygen/doxygen/issues/7986

Regards,
VZ

David Connet

unread,
May 11, 2026, 1:30:59 PM (3 days ago) May 11
to wx-...@googlegroups.com
Running now, but probably not since I got:
```
>regen chm
error: When enabling GENERATE_HTMLHELP the HTML_DYNAMIC_MENUS option
should be disabled. I'll adjust it for you.
error: When enabling GENERATE_HTMLHELP the HTML_DYNAMIC_SECTIONS option
should be disabled. I'll adjust it for you.
error: When enabling GENERATE_HTMLHELP the HTML_COPY_CLIPBOARD option
should be disabled. I'll adjust it for you.

```

previously... (I'm assuming that means doxygen auto-set the value to 'NO')

Dave

David Connet

unread,
May 11, 2026, 1:41:04 PM (3 days ago) May 11
to wx-...@googlegroups.com
Confirmed. No change.

Vadim Zeitlin

unread,
May 11, 2026, 1:44:01 PM (3 days ago) May 11
to wx-...@googlegroups.com
On Mon, 11 May 2026 10:40:54 -0700 David Connet wrote:

DC> On 5/11/2026 10:30 AM, David Connet wrote:
DC> > On 5/11/2026 10:26 AM, Vadim Zeitlin wrote:
DC> >> On Mon, 11 May 2026 08:57:47 -0700 David Connet wrote:
DC> >>
DC> >> DC> I just synced to master, updated my doxygen from 1.9.3 to 1.15.0.
DC> >> After
DC> >> DC> generating the chm file, when I open it I get:
DC> >> DC>
DC> >> DC> An error has occurred in the script on this page:
DC> >>
DC> >>   Does setting HTML_DYNAMIC_MENUS to "NO" in Doxyfile (and rerunning
DC> >> Doxygen, of course) help? See
DC> >> https://github.com/doxygen/doxygen/issues/7986
DC> >>
DC> > Running now, but probably not since I got:
[...]
DC> Confirmed. No change.

I have no idea what else could we do :-( We can't stay at 1.9.3 forever...
VZ

Bryan Petty

unread,
May 11, 2026, 3:52:26 PM (3 days ago) May 11
to wx-...@googlegroups.com
The dynsections.js script comes from Doxygen, however, we can exclude it from custom_header_simple.html.

I think it's mostly for code folding, which we have turned on, and which stays on when building CHM format. However, I'm not actually sure if it gets used anywhere in the manual at all. We can just turn this off ourselves for CHM format.

It also appears to be used for dynamically showing/hiding other parts of the manual too though, in parts I don't think I we can turn on/off. The class inheritance diagrams are one example.

If I exclude that dynsections.js file from the simple header, this does avoid the JS error on all the main pages of the manual in CHM. However, I still get "'toggleVisibility' is undefined" errors on all class pages (but not on class pages without any inheritance diagram, for classes that don't inherit/derive). Probably the same on any page that uses an expandable/collapsible section. And I'm not sure how to avoid this.

Regards,
Bryan Petty

Bryan Petty

unread,
May 11, 2026, 7:01:23 PM (3 days ago) May 11
to wx-...@googlegroups.com
On Monday, May 11th, 2026 at 1:52 PM, 'Bryan Petty' via wx-dev <wx-...@googlegroups.com> wrote:
> The dynsections.js script comes from Doxygen, however, we can exclude it from custom_header_simple.html.
>
> I think it's mostly for code folding, which we have turned on, and which stays on when building CHM format. However, I'm not actually sure if it gets used anywhere in the manual at all. We can just turn this off ourselves for CHM format.
>
> It also appears to be used for dynamically showing/hiding other parts of the manual too though, in parts I don't think I we can turn on/off. The class inheritance diagrams are one example.
>
> If I exclude that dynsections.js file from the simple header, this does avoid the JS error on all the main pages of the manual in CHM. However, I still get "'toggleVisibility' is undefined" errors on all class pages (but not on class pages without any inheritance diagram, for classes that don't inherit/derive). Probably the same on any page that uses an expandable/collapsible section. And I'm not sure how to avoid this.

Nevermind, I believe I've resolved all these issues in this commit:
https://github.com/wxWidgets/wxWidgets/commit/4ed05f7b47d3bd3ac01c4b0d867bece20fe083ff

Give that a shot, and let me know if you still have problems.

Regards,
Bryan Petty

David Connet

unread,
May 11, 2026, 7:43:15 PM (3 days ago) May 11
to wx-...@googlegroups.com
Oh yeah! Thank you - no more errors! (I was worried it was actually some
weird IE/Win security issue)

Dave

Reply all
Reply to author
Forward
0 new messages