• Resolved conejogardens

    (@conejogardens)


    I’m seeing several PHP errors/warnings generated by the current version of the Donation Thermometer plugin on our WordPress site.

    The plugin is fully up to date.

    The following messages are being recorded in the WordPress debug log:

    1. PHP Deprecated – line 18

    explode(): Passing null to parameter #2 ($string) of type string is deprecated

    File:

    donation-thermometer/includes/therm_widget.php

    Line:

    18

    2. PHP Warning – line 24

    array_sum(): Addition is not supported on type string

    File:

    donation-thermometer/includes/therm_widget.php

    Line:

    24

    3. PHP Deprecated – line 25

    explode(): Passing null to parameter #2 ($string) of type string is deprecated

    File:

    donation-thermometer/includes/therm_widget.php

    Line:

    25

    All three messages occur at the same time while the plugin is being used.

    The relevant debug-log entries are:

    [18-Aug-2026 14:39:20 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/i999o3lb38sr/public_html/dev.conejogardens.com/wp-content/plugins/donation-thermometer/includes/therm_widget.php on line 18
    
    [18-Aug-2026 14:39:20 UTC] PHP Warning: array_sum(): Addition is not supported on type string in /home/i999o3lb38sr/public_html/dev.conejogardens.com/wp-content/plugins/donation-thermometer/includes/therm_widget.php on line 24
    
    [18-Aug-2026 14:39:20 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/i999o3lb38sr/public_html/dev.conejogardens.com/wp-content/plugins/donation-thermometer/includes/therm_widget.php on line 25
    

    Could you please investigate whether the plugin is passing an unexpected null value into explode() and/or a string value into array_sum()?

    We have not modified the plugin’s code.

    Please let me know if you need additional information about the configuration or environment to reproduce the issue.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author rhewlif

    (@henryp)

    Thanks for letting me know about this. I see the warnings come when the default target and raised values are saved as empty on the settings page.

    I’ve patched the issue now though, and updating to version 2.2.10 will fix these messages. WordPress should push the plugin update out in around 6 hours or so.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.