Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Webilia Inc.

    (@webilia)

    Hello,

    Thanks for using MPL. Please copy the exact line here. We cannot find any trim function on line 219 of posts.php file. Maybe you’re using an older version.

    Regards,
    Webilia Team

    Thread Starter femorais

    (@femorais)

    Here:
    Original: if(!is_array($value) and (trim($value) == ” or $value == ‘-1’)) continue;

    Changed (and worked):
    if(!is_array($value) and (($value) == ” or $value == ‘-1’)) continue;

    Plugin Author Webilia Inc.

    (@webilia)

    Hello,

    We fixed it. Thanks for your report. The line changed to if(is_string($value) and (trim($value) == '' or trim($value == '-1'))) continue; and we will release it on next update of MPL and MPL PRO.

    Regards,
    Webilia Team

    Thread Starter femorais

    (@femorais)

    \o/ Yey!!
    Thank’s

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Warning: trim() expects parameter 1 to be string’ is closed to new replies.