• Resolved davidacardona

    (@davidacardona)


    Hi, I’m receiving the next warning after switching to PHP 8.1

    [25-May-2023 21:52:20 UTC] PHP Deprecated: ?trim(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/tracking-code-manager/includes/classes/utils/Utils.php on line 767

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, i’m getting the exact same error: Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in wp-content/plugins/tracking-code-manager/includes/classes/utils/Utils.php?on line?767

    Same error here, is the plugin still supported?

    codepuncher

    (@krypsin)

    I am getting this error on many sites for a long time. Please can this be fixed?

    Plugin Author Data443 Risk Migitation, Inc.

    (@data443)

    Matter has been added to our development backlog.

    Thank you for reporting and your patience.

    Data443 Support Team

    Support

    (@nikelschubert)

    Would be great to have that fixed. Shouldn’t be a big one, just adding and “empty” check probably.

    I did it by adding 3 lines of code in wp-content/plugins/tracking-code-manager/includes/classes/utils/Utils.php just before the error happens. The code where the error happens is now in line 772

    DISCLAIMER: This change is not tested for any sideeffects. But as intval(“”) returns 0 it should work perfectly.

    • This reply was modified 9 months, 3 weeks ago by Support.

    Thanks @nikelschubert. That solved the issue for me, too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Deprecated code in PHP 8.1 for tracking code manager’ is closed to new replies.