Pagenumber disappearing in LibO 24.2

I have problem with page numbering after installing 24.2.5.2.
I can add page numbers, but they will disappear while opening the document next time.

The result is same whatever method I use. This problem is related to relative large documents (over 50.000 words). In small ones page numbers remain.

Please, edit your question (click on below it, then on the “pencil” icon to enter edit mode) to make it more explicit and descriptive. OS name, LO version (full 4 numbers), save format. Explain your procedure to add page numbers (where you click, which menu commands, which shortcuts, … – anything useful to reproduce it).

Attach a sample file for close analysis.

Well,

I am writing a new document (LibO 24.2.5.2), running Writer on Linux Mint 22. Document is not very large, only 6567 words, but the same problem: pagenumers will disappear.
Miksi-Marx-jätti-filosofian-teksti-ext.odt (80.2 KB)

Attach this document for in-depth analysis.

It looks like LibreOffice Document Page Numbers Disappear after Zotero Insert/Edit Citation - Zotero Forums

Also as tdf#160139 which is fixed for 24.2.6, see Release Plan 24.2 - The Document Foundation Wiki

Workaround for the moment appears to be to use a page style that is not Default Page style, or revert to 7.x

Yes, that’s the problem. After adding Zotero-citation pagenumenberings will disappear. After upgrading Zotero to 7.0 the problem remains.

@jussisilvonen
Heading Numbering
You manually numbered your headings which is possible and can easily be transformed into a TOC. If you want to rearrange some parts of the text this could be cumbersome.
For automatic numbering the Heading n headings go via Tools | Heading Numbering…
For not numbering a heading create a heading style of the same level. It will be displayed in the TOC in the right order but without numbering.

There is a much simpler and user-friendly way of inserting an unnumbered heading.

  1. create your Heading n as usual
  2. put the cursor at the very beginning of the heading (after the number which you can’t select)
  3. press Bksp: the number is removed

When you’re accustomed to it, you can remove the number before typing the heading, but don’t press Bksp twice, otherwise this deletes the preceding paragraph mark and you’re back in the previous paragraph.