Plugin is triggering PHP warnings
-
My PHP error logs gets filled with errors, when I am using latest version of plugin (2.3.15). This site is running WP 4.9.9 on PHP7.2.
Sample of an error:
count(): Parameter must be an array or an object that implements Countable
Location, where warning is being triggered:
svg-support/functions/thumbnail-display.php:18
The problem lies in following code:
$ob_levels = count( ob_get_level() );
ob_get_level()
already returns number, so there is not point in counting it.This probably isn’t triggered in PHP versions bellow 7.2.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Plugin is triggering PHP warnings’ is closed to new replies.