WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#21801 closed defect (bug) (invalid)

php error in wp-includes/class-wp-admin-bar.php

Reported by: bimaljr Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.1
Component: Toolbar Keywords:
Focuses: Cc:
PR Number:

Description

Hello,

I see an error on front and admin site today. The error is like this:

Fatal error: Call to undefined function eípty() in /var/www/wordpress/wp-includes/class-wp-admin-bar.php on line 45 Call Stack: 0.0003 371392 1. {main}() /var/www/wordpress/wp-admin/index.php:0 0.0006 451040 2. require_once('/var/www/wordpress/wp-admin/admin.php') /var/www/wordpress/wp-admin/index.php:10 0.0008 468096 3. require_once('/var/www/wordpress/wp-load.php') /var/www/wordpress/wp-admin/admin.php:30 0.0008 480912 4. require_once('/var/www/wordpress/wp-config.php') /var/www/wordpress/wp-load.php:29 0.0012 569708 5. require_once('/var/www/wordpress/wp-settings.php') /var/www/wordpress/wp-config.php:91 0.1053 17242732 6. do_action() /var/www/wordpress/wp-settings.php:302 0.1187 17379696 7. call_user_func_array() /var/www/wordpress/wp-includes/plugin.php:403 0.1187 17379724 8. _wp_admin_bar_init() /var/www/wordpress/wp-includes/plugin.php:0 0.1195 17514628 9. WP_Admin_Bar->initialize() /var/www/wordpress/wp-includes/admin-bar.php:34

I found the solution. There is spelling mistake on line number 45 in /wp-includes/class-wp-admin-bar.php file.

The code is:

if ( eípty($header_callback) )

it should be:

if ( empty($header_callback) )

This is blocking to login my site and also blocking my front website.

Change History (1)

#1 @SergeyBiryukov
7 years ago

  • Component changed from General to Toolbar
  • Keywords has-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.