Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#44217 closed defect (bug) (invalid)

An error maybe related to some deprecated function.

Reported by: pcnador's profile pcnador Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description (last modified by birgire)

it looks like WordPress Core may still be using a deprecated function. See line 224 [here]https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-locale.php

The error in my apache error log

[Sun May 20 13:35:20.221828 2018] [proxy_fcgi:error] [pid 10537] [client 127.0.0.1:47010] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_bloginfo() in /public_html/wp-includes/class-wp-locale.php:231\n
Stack trace:\n
#0 /public_html/wp-includes/class-wp-locale.php(112): WP_Locale->init()\n
#1 /public_html/wp-includes/load.php(927): WP_Locale->__construct()\n
#2 /public_html/wp-includes/wp-db.php(1569): wp_load_translations_early()\n
#3 /public_html/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(145): wpdb->db_connect(true)\n
#4 /public_html/wp-includes/wp-db.php(592): W3TC\\DbCache_Wpdb->db_connect()\n
#5 /public_html/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(252): wpdb->__construct('db', 'pass', 'user', 'localhost')\n
#6 /pu...\n

my server keeps generate this error until my server disk space was 0.

Change History (6)

#1 @birgire
7 years ago

  • Description modified (diff)

Welcome to WordPress core trac

Please be careful what information you post online, you should change it on your end asap if needed!

Last edited 7 years ago by birgire (previous) (diff)

#2 follow-up: @birgire
7 years ago

  • Description modified (diff)

#3 in reply to: ↑ 2 @pcnador
7 years ago

Replying to birgire: yes it's already done thank you

#4 follow-up: @birgire
7 years ago

  • Keywords needs-patch removed

@pcnador great, glad to hear it

The get_bloginfo() function is not deprecated.

This issue seems to be plugin related, where the function might be used in some unexpected way?

One way would be to see what happens without that plugin.

You might also consider contacting the plugin support?

#5 in reply to: ↑ 4 @pcnador
7 years ago

yes you're right I'll try it and see
Replying to birgire:

@pcnador great, glad to hear it

The get_bloginfo() function is not deprecated.

This issue seems to be plugin related, where the function might be used in some unexpected way?

One way would be to see what happens without that plugin.

You might also consider contacting the plugin support?

#6 @soulseekah
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Welcome to Trac!

As noted above, get_bloginfo is not a deprecated function. It appears that in your case W3TC is calling it early (not loaded yet). Please contact the W3TC dev team.

Note: See TracTickets for help on using tickets.