• Resolved docbt

    (@docbt)


    Hi,

    my server records the following php error on every page load:

    Got error 'PHP message: PHP Warning: strlen() expects parameter 1 to be string, array given in /wordpress/wp-content/plugins/wp-asset-clean-up/classes/CleanUp.php on line 378

    is this a known issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter docbt

    (@docbt)

    Line 378 is

    if ($strContains === '' || strlen($strContains) < 5) {

    From the Manual:

    strlen() returns NULL when executed on arrays, and an E_WARNING level error is emitted.

    Prior [to 5.3.0] versions treated arrays as the string Array, thus returning a string length of 5 and emitting an E_NOTICE level error.

    Plugin Author Gabe Livan

    (@gabelivan)

    @docbt thanks for reporting this error and my apologies for this inconvenience! After checking the source code, there’s indeed a problem there and a new tag will be released as soon as possible to fix it along with other improvements.

    Also, $strContains did not return “Array” in your case because the plugin won’t work on PHP 5.3.0. The minimum required is 5.4.0 which would only work with older WP versions as PHP 5.6.20+ is required to work with WordPress 5.2.3.

    Plugin Author Gabe Livan

    (@gabelivan)

    @docbt A new tag was released with a fix. Please update and let me know if that worked for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘php error in version 1.3.4.4’ is closed to new replies.