Skip to content

Drowning in PHP errors: mods/spamhurdles #1040

@mpotts95420

Description

@mpotts95420

My moderately used Phorum installation is gathering several hundred PHP errors an hour, and jeopardizing my website. The errors look like this:

[23-Dec-2020 17:42:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/goapples/public_html/phorum/mods/spamhurdles/api.php on line 775
[23-Dec-2020 17:42:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_AES has a deprecated constructor in /home/goapples/public_html/phorum/mods/spamhurdles/include/crypt/aes.php on line 110
[23-Dec-2020 17:42:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Rijndael has a deprecated constructor in /home/goapples/public_html/phorum/mods/spamhurdles/include/crypt/rijndael.php on line 112
[22-Dec-2020 23:51:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/goapples/public_html/phorum/mods/spamhurdles/api.php on line 694
[22-Dec-2020 23:51:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/goapples/public_html/phorum/mods/spamhurdles/api.php on line 756

I just upgraded to 5_2_23 hoping the errors would abate, but they've intensified.
I hope there's a way to turn these errors off (if they can't be fixed) ...but I have tried by adding error_reporting( 0 ) ; to the first line of index.php, and (experimentally) replacing curly brackets on line 771 of spamhurdles/api.php with parens -- this just appeared to "whack a mole" to line 775?
I am way out of my depth here -- I'm an experienced PHP programmer but my "big" systems are only a few hundred lines long -- with an avid audience whose experience I don't want to muddle. I did "browse" looking for solutions, but came up empty. HELP!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions