Bug in admin.php line 30 (incl. bugfix), all admin pages blank
-
This post describes a bug in WP 3.1.2. I’m not sure where to report bugs, so I just post this here.
When I instal a fresh copy of WordPress, the site seems to work fine, but all admin pages are blank except for the login page. The login succeeds (which is apparent because of the “logout” link appearing on the site), but all admin pages are blank (e.g. when I click on an “edit” link, or when I go to the “wp-admin” folder.)
I traced the error to wp-admin/admin.php, line 30, where it says:
require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
This cannot possibly work since the admin.php file is being included from a file in the wp-admin directory, and wp-load is placed one level up.
I changed it to:
require_once('../wp-load.php');
and now it works fine.
The server is running Apache 2.0 on Solaris, with PHP 5.3.5.
- The topic ‘Bug in admin.php line 30 (incl. bugfix), all admin pages blank’ is closed to new replies.