[snip]
This used to work before I upgraded my PHP.

[/snip]

Let me guess, you upgraded without actually reading the README or update
notes. I am going to guess that register_globals = off in php.ini. You
can either fix the variables $_GET['pagename'] or turn RG back on.