WordPress.org

Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#51241 closed defect (bug) (duplicate)

PHP errors on 5.5.1 running on PHP 7.4.2

Reported by: sky1tech Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.5.1
Component: Administration Keywords:
Focuses: Cc:

Description

With following settings in wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

Getting the following PHP error in admin area:

When editing a post:
Deprecated: contextual_help is <strong>deprecated</strong> since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in /wp-includes/functions.php on line 5148

Also appears on dashboard:
Deprecated: contextual_help is <strong>deprecated</strong> since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in /Applications/MAMP/htdocs/touchstone/wp-includes/functions.php on line 5148

Basically appearing everywhere in admin area.

Change History (2)

#1 @dd32
17 months ago

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

Hi @sky1tech,

This means that one of your plugins, or theme, is calling a deprecated WordPress function.

You'll need to figure out what plugin or theme is triggering it.

You can use plugins such as Query Monitor or Log Deprecated Notices to determine what's calling it.

I'm marking this as invalid, as it's plugin/theme related, but re-open if the error turns out to be in error.

#2 @SergeyBiryukov
17 months ago

  • Resolution changed from invalid to duplicate

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #49593.

The deprecated hook message is only displayed if you have any functions in your plugins or theme specifically hooked to the deprecated contextual_help_list filter. As noted in the message, those instances should be updated to use get_current_screen()->add_help_tab() or get_current_screen()->remove_help_tab() instead.

Does the issue still happen with all plugins disabled and a default theme (Twenty Twenty) activated?

Please note that this Trac is used for enhancements and bug reporting for the WordPress core software, not for individual support questions.

Please try the support forums to get help with your site: https://wordpress.org/support/forums/.

Note: See TracTickets for help on using tickets.