New user registration error

From: Jo (JELLS)19 Mar 17:05
To: ALL1 of 5
Hello, long time no post, etc.

We've set up a new forum recently, but if anyone tries to register, they get an error message. The error log says:
[19-Mar-2020 15:29:06 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; html_frame has a deprecated constructor in /home/human852/public_html/forum/include/html.inc.php on line 1001
[19-Mar-2020 15:29:06 UTC] PHP Deprecated:  __autoload() is deprecated, use spl_autoload_register() instead in /home/human852/public_html/forum/include/htmlpurifier/HTMLPurifier.autoload.php on line 17
[19-Mar-2020 15:29:07 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; rss_feed_item has a deprecated constructor in /home/human852/public_html/forum/include/rss_feed.inc.php on line 33
Tried a few things to resolve the issue, but no luck. Any assistance greatly appreciated!
From: Peter (BOUGHTONP)21 Mar 12:38
To: Jo (JELLS) 2 of 5
Deprecation is supposed to only be a warning, but it looks like PHP can be configured to treat it as an error.

https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting

That documentation suggests it's not the default behaviour, so if you can change the PHP ini file to make sure it has some variation of "E_ALL & ~E_DEPRECATED" then that might solve it, otherwise you may need to use the equivalent function, which probably only needs to go in an include file that gets included by each request.

If that doesn't work, it should be possible to edit the code to resolve the mentioned issues, but I'm not familiar enough with PHP and don't have anything setup at the moment to be able to test that.

Otherwise, if you have the option to use a previous version of PHP, that might be the easiest way to sidestep the issue.

From: spinning_plates21 Mar 12:51
To: Peter (BOUGHTONP) 3 of 5
Hi Peter,

Thanks very much for the suggestions.

I tried various versions and setting it back to 5.6 seems to have done the trick. Everything appears to be working now.

Very grateful for your input! You may be helping to build a community in Toronto.
From: spinning_plates21 Mar 13:06
To: Peter (BOUGHTONP) 4 of 5
Unfortunately, the confirmation email for new users does not seem to be sending.

My first instinct is to try turning on all the PHP extensions?
From: Peter (BOUGHTONP)21 Mar 16:04
To: spinning_plates 5 of 5
I suspect that's a PHP/configuration issue rather than a Beehive-specific one, but there's some information about getting emails to work here: https://github.com/BeehiveForum/BeehiveForum/blob/master/docs/readme.md#135-enabling-email-notifications