Opened 19 years ago
Closed 19 years ago
#5605 closed defect (bug) (fixed)
r6567 breaks wp-admin
| Reported by: | christianthheim | Owned by: | mdawaffe |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | Administration | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
r6567 (probably the change to wp-includes/general-template.php) breaks the wp-admin area.
PHP ends up reviewing this:
PHP Fatal error: Call to undefined function wp_get_current_user() in /var/www/blog/wp-includes/user.php on line 30
Attachments (1)
Change History (13)
#2
in reply to: ↑ description
@
19 years ago
Replying to christianthheim:
r6567 (probably the change to wp-includes/general-template.php) breaks the wp-admin area.
PHP ends up reviewing this:
PHP Fatal error: Call to undefined function wp_get_current_user() in /var/www/blog/wp-includes/user.php on line 30
I've the same error. Downgrading to 6563 solves the problem.
#3
follow-up:
↓ 4
@
19 years ago
Do either of you have any plugins installed? Try disabling them to see if there is a conflict there.
#4
in reply to: ↑ 3
@
19 years ago
Replying to mdawaffe:
Do either of you have any plugins installed? Try disabling them to see if there is a conflict there.
Oh, yes. It's right! It was the "Optimize DB" plugin that produced that error. Disabling it resolved the problem.
Thank you.
#7
@
19 years ago
the bug comes from line 36 in the optimize-db.php file from the plugin
wp_enqueue_script('prototype');
see ticket #5612 for more info
#8
@
19 years ago
wp_default_editor() is being called when WP_Scripts is constructed. This function gets the current user. When a plugin calls one of the script-loader functions, WP_Scripts is constructed before the current user is setup. The error will occur even if a script waits until init to use the script loader. Addressing #4181 would help that, but plugins that were unconditionally registering scripts will still break.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I cannot reproduce this fatal error. Where in the admin is it broken?
Are you sure you have a complete and up to date SVN checkout?