Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 13 Oct 2019, 12:12
postcd postcd is offline
Join Date: Feb 2012
Only variables should be assigned by reference in class_dm_threadpost.php(764)


in vbulletin 4.2.5 + PHP 5.6.40 error log, i found an error:
PHP Strict Standards: Only variables should be assigned by reference in /includes/class_dm_threadpost.php(764) : eval()'d code on line 113
line 113 in that file is: parent::__construct($registry, $errtype);
line 764 is empty

I have found some post here by Dave where is suggested some replacement:

parent::vB_DataManager($registry, $errtype);
parent::__construct($registry, $errtype);
i have also seen "Only variables should be assigned by reference" error for /register.php file, this line:
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
So i tried to switch to PHP 5.5.38, but i do not know if it will help.

Can You advise how to modify mentioned lines so it is correct?
Reply With Quote
Old 13 Oct 2019, 13:39
Dave Dave is offline
Join Date: Jun 2010
If the error says "eval()'d" that means it's caused by a hook of an installed plugin.
If you look at line 764 of /includes/class_dm_threadpost.php, it should state which registered hook is causing it. You can then go to the hook manager page which shows all registered hooks and determine which plugin might be causing it.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 12:31.

Layout Options | Width: Wide Color: