Enthusiast Error: PHP Deprecated in Mail.php

PHP Deprecated: Assigning the return value of new by reference is deprecated in [redacted]Mail.php on line 154

While moving my fanlistings to my new host, I got the above PHP error. This is pretty easy to fix. Just go to where you installed your Enthusiast folder (the default is /enth3), open the Mail.php file and go to line 154 (ctrl + g in Windows notepad).

$parser = &new Mail_RFC822();>

All you have to do is remove the ampersand before the word new. So it becomes

$parser = new Mail_RFC822();>

See? Easy. 🙂 If you’re having a similar problem in a different script, the & sign is probably the problem, so this should work for you too. Hope this helps!

About Megan Lee

Megan Lee, 26-year-old asexual eclectic pagan with an appreciation for Buddhism and Shinto. Japan is my spiritual homeland. Reader and writer. K-Pop fan. Weeb. Asami Ryuichi is my husbando. Schneizel is my onii-sama. My love of visual novels will bankrupt me.