Inserting page numbers in document with footnotes

In my document there’s footnotes on some pages so if I use the standard way to insert page numbers via a footer it says that the content will be deleted. How do I get my page numbers in a footer plus my footnotes?

Please upload a sample file. As far as I can see, footnotes can’t be inserted in footers (Writer).

In my document footnotes is in document body and page number in Footer.