Version: 7.4.5.1 / LibreOffice Community
Build ID: 40(Build:1)
CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.utf8); UI: en-US
7.4.5-1
One .odt document with several chapters in document.
Page numbering in page footer is enabled on every page.
Page numbering works fine up to certain page where the page number field starts to be blank instead of to display page number value then it continues be this way to document last page. View > Field Names is enabled - every page shows in footer same type of field. Whole document footers include only page number field, no further content in page footers.
All pages footer includes one single page number field.
Four page styles are defined and in use.
Among those 4: two page styles for landscape pages and two for portrait pages.
Within every of those pairs of 2 pages styles one style for chapter 1st page and one style for chapter subsequent pages.
Document starts with one chapter in portrait.
Then it transits to second chapter in landscape.
Subsequently it transits back to certain number of chapters in portrait.
Every chapter starts with paragraph of Heading paragraph style - user defined but rooted at Writer built-in paragraph style Heading 2. Used paragraph heading style has page break enabled but page numbering not set that formatting settings region.
Only document first page has page number set in paragraph direct formatting - paragraph formatting window (direct one???) > Textflow tab > Breaks section > Page number setting.
As of this minute it is chapter X first page where page fields start to be blank.
However 1 hour ago it was last page of some other chapter where this was observed. Some troubleshooting measure moved very first location of problem to current one.
Where to look for problem reason?
UPDATE
If to remove page number field from header of the page of problem very first occur all document pages this page style get that field removed. If to add the field back to page all pages same page style get page number display again but starting certain chapter the field be again blank.
UPDATE
User needed also to use Chapter numbering in order to get desired heading outline it was not possible to achieve such in paragraph style definition > outline & list tab alone (no idea if this matters here). This way Level 2 Chapter numbering is used and apparently effective.
UPDATE
Document seems to have had a dirt mix of Chapter numbering and a list style was in use by paragraph style, both touched once with one single intention. Clean-up was conducted on chapter numbering that way chapter numbering to be disabled at all levels. With clean-up only list style was compiled desired way and made enabled. In end result page numbering works fine right now. No idea how durable this effect is.
UPDATE
Well, chapter numbering and list style clean-up possibly well needed. However achieved fix of page numbering was of short duration. Page numbering was fine only because first chapter had in its head paragraph the page numbering not set (paragraph formatting, not the paragraph style). Document pages need to have page numbering starting at 4, if to set it in first chapter head paragraph formatting the problem is back.
Is it possible to draw any conclusions from this observation? Conclusions which will help to find reason?
UPDATE
As next try I removed all pages from document where page number field rendered blank. As result of this removal two last pages of short document have not working page number fields. What is going on this crazy Writer? What are tools to narrow down the reason area?