View Single Post
  #1  
Old 13 Oct 2019, 11:12
postcd postcd is offline
 
Join Date: Feb 2012
Only variables should be assigned by reference in class_dm_threadpost.php(764)

Hello,

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);
to
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