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!
CATEGORY: Online   TAGS: , , , ,