What is the reason for the error after adding paging to the Typecho theme?

in the Typecho theme development process, there is no problem with paging after adding paging, but an error will be reported when you click on a link to any article, as shown in figure

.

this line of code is used to add paging: pageNav ();? >
I am puzzled, so I come here to seek answers and hope that the gods will not hesitate to give us advice.

Mar.18,2021

problem solved, I also encountered

Menu