MyBB Community Forums

Full Version: Call-Time Pass-By Reference Deprecated..?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
"Warning: Call-time pass-by-reference has been deprecated in /forums/inc/plugins/pmonreg.php on line 202"

I get this message at the top of every page when I have the PM On Registration plugin activated. I should say that this has only happened since I recently moved the forum to a different server. Aside from this problem, the move seems to have been a complete success. But I'm puzzled as to why this message is appearing since I don't understand the technical jargon.

I will give a trusted community member admin access if he or she wishes to help investigate this. I appreciate your assistance.
It's appearing on the new server as it has a different PHP version to what you had before and because the plugin has code that's been deprecated in the version of PHP you use now it's showing the error. What it means is there's a PHP feature that is used in the plugin that was OK on your old server, but in the version of PHP you use now this feature has sort of been flagged for removal from future PHP versions, and it shows this error. Hope that makes sense, if not, don't worry about it Toungue

If you can upload the plugin file here from ./inc/plugins/ I or somebody else will be able to fix the code up for you.
Oh, right, I get it now. Thanks for explaining. Smile Plugin is attached.
Replace it with this copy:
[attachment=25114]

And you should be good to go Smile
Thanks as always.
Unfortunately I'm still getting the error message. Sad I'm certain I replaced it properly.
100% sure?? As I removed the code that was causing the problem. You can shoot me over FTP login details if you want me to have a quick look for you.
Yeah, I just tried saving it to a different location, and again replacing the file. Still the same problem. I'll send you a PM. Cheers.