I get this strange problem....
All the page has this code only. global $currentPage; is null and i dont know why...