• Resolved 54rigger

    (@54rigger)


    I’ve installed SportsPress in a DDEv environment (current version for all) I’m seeing a lot of deprecated code errors in the admin content lists.

    for example : Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/kses.php on line 1805

    I’m hesitant to pull the trigger on a pro license with the number of errors I’m seeing, is there an explanation ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi there @54rigger ,

    Deprecated messages are warnings and not errors. They are used to “remind” developers to update their source code based on newer versions of PHP and/or WordPress.

    Can you please share more details about your warning messages? The current message you shared as an example is referring a core file of WordPress and not of SportsPress. If SportsPress is related to this warning, there should be a similar warning before or after the one you shared.

    Thanks,
    Savvas

    Thread Starter 54rigger

    (@54rigger)

    take a look at this screen shot for an example, I don’t have debugging turned on it appears in the admin panel itself. I think your plugin code is trying to leverage a WP function but isn’t providing valid input parameters. perhaps not properly checking for null values

    • This reply was modified 1 year, 2 months ago by 54rigger.
    Thread Starter 54rigger

    (@54rigger)

    Also Appear on this page

    Thread Starter 54rigger

    (@54rigger)

    I disabled WP_Debug and it disappears, apologies I suppose this is a wp core issue, actually it’s traced backwards as a warning from wp core. triggered by ACF, due to submitting invalid data to ACF, so yes WP Core should be updated to use the newer php function, but the initial trigger comes from sending a badly formed array object. probably lazy coding imho. but I don’t want to read through your code to find out why. not a critical factor

    • This reply was modified 1 year, 2 months ago by 54rigger.
    • This reply was modified 1 year, 2 months ago by 54rigger.
    Plugin Contributor Savvas

    (@savvasha)

    Hi @54rigger ,

    Thanks to your screenshots I found and fixed these little bugs on source code of SportsPress. The fix should be included on the next update. In the meantime you can applied manually the fixes from here https://github.com/ThemeBoy/SportsPress/commit/9e92608cf571ed2409b2955c176d1650ebde289e

    Thanks again,
    Savvas

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

The topic ‘Seeing errors when evaluating’ is closed to new replies.