I'm doing some maintenance on a WordPress site, and the Media and Library links on the admin menu are generating 'You do not have sufficient permissions to access this page.' messages. Comparing these to links in a clean WordPress install, they appear to be malformed;
Clean Media/Library: http://www.url.com/wp-admin/upload.php
Site Media: http://www.url.com/wp-admin/admin.php?page=upload.php
Site Library: http://www.url.com/wp-admin/upload.php?page=upload.php
The menu.php is identical to the clean install, but there may be a function somewhere else that's rewriting it. I've tried to track the error to its source, but had no luck, so I'm turning to the forums. Any help would be great!