postcd
10-13-2019, 09:12 AM
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 (https://vborg.vbsupport.ru/archive/index.php/t-270346-p-2.html) 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?
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 (https://vborg.vbsupport.ru/archive/index.php/t-270346-p-2.html) 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?