David, there are a lot of different ways in which you could be experiencing this problem. Nearly all relate to workflow and how the template / document are defined, in particular the page styles. I will have a go at reproducing the problem. These are the explicit steps, expanded out for clarity, that I took. When reporting a bug it is very important to use this level of detail so that others can reproduce your problem (I had a bit of difficulty following your bug descriptions):
Create template
- Open Writer (new document).
- Insert 15 paragraphs of filler text. The generated HTML uses a blank line to indicate a paragraph break (thus there are more actual paragraphs), but the general point is made.
- Assign First Page page style to the first page.
- Create a new Body page style, based of the Default Style page style. Ensure this page style has both header and footer turned on (default values are used).
- Modify the First Page page style > Organizer tab > set Next Style to “Body”.
- Click on second page to confirm it is using the Body page style (it is).
- Insert header / footer text, date / page number fields on the second page (Body).
-
File > Save As Temaplte… > Save > “mydoc” > Accept.
- Close Writer (without saving).
Create document based on template
- Open LibreOffice (Start Centre).
-
Templates… > double-click “mydoc” template.
-
File > Save As… > “adoc.odt”.
- Close Writer.
Edit template
- Open LibreOffice (Start Centre).
-
Templates… > select “mydoc” template > click Edit.
-
File > Properties… > Description tab > cut “mydoc” from Title field and paste into Comment field. (This is taken from your comment #2 in the bug report.)
-
File > Save.
- Close Writer.
Test for document problems
- Open “adoc.odt”.
- Click Update Styles button.
- Document displays as before.
- Close Writer (confirm save).
- Re-open “adoc.odt” to re-confirm.
- No warning (as expected) and again header / footer detail is as expected.
Here are the related files (rename from ODT to ZIP). I suspect that any problem you are experiencing stems from the way in which you have defined, applied, or associated the various page styles. If you are using the Default Style page style or you have not explicitly set the relationship between the first and subsequent pages (either as shown or via a hard break), you may experience problems. I think your bug may be able to be RESOLVED as NOTABUG but will leave you to confirm / do this. It could be a PPA-specific issue.