Upgravo › Guides

WordPress debug.log full of "Deprecated" notices – should you worry?

Last reviewed 8 November 2026 · by Nicolás Alejandro Salinas

A deprecation notice means "this still works, and a future PHP version will remove it". The site is not broken. Worry about three things: notices that leak into page output, a log that grows without limit, and the plugin behind the notices being unmaintained.

Reading the notice

PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string
is deprecated in /wp-content/plugins/some-plugin/inc/helpers.php on line 210

Three facts in every line: what is deprecated, which plugin, which line. The wording tells you which PHP version introduced it:

Notice Since What it is
Passing null to parameter … of type string 8.1 null given to a built-in string function
Creation of dynamic property 8.2 Class writes a property it never declared
Using ${var} in strings 8.2 Old string interpolation syntax
Function utf8_encode() is deprecated 8.2 Function scheduled for removal
Calling get_class() without arguments 8.3 Removed shortcut
Implicitly marking parameter … as nullable 8.4 Type $x = null without ?Type
Constant E_STRICT / CURLOPT_BINARYTRANSFER 8.4 Removed constants
Function mysqli_ping() is deprecated 8.4 Function scheduled for removal

None of these stop the site today.

When a notice does become a problem

What to do

  1. On a live site, in wp-config.php: WP_DEBUG true, WP_DEBUG_LOG true, WP_DEBUG_DISPLAY false. Notices go to the log, never to the page.
  2. Rotate or truncate the log. A cron job that empties debug.log weekly, or WP_DEBUG_LOG set to a path the host rotates.
  3. Group the log by plugin and update those plugins. Most notices disappear.
  4. For plugins that still produce notices after updating, check their last release date. Notices are a symptom; an unmaintained plugin is the problem.

Seeing all of it at once, before the next PHP upgrade

The log only shows code that ran. A scan reads every file. Upgravo checks all installed plugins and themes against the PHP version you choose and separates Breaks (fatal on that version) from Notices (deprecated, still runs), per plugin with file and line, so you know in advance which plugins will fill the log on PHP 8.4 or 8.5 and which will actually break.

Install it from WordPress.org: Upgravo – PHP Compatibility Check.

Sources

More guides