vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Only variables should be assigned by reference in class_dm_threadpost.php(764) (https://vborg.vbsupport.ru/showthread.php?t=327592)

postcd 10-13-2019 09:12 AM

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:
Quote:

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:

Quote:

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:
Quote:

$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?

Dave 10-13-2019 10:39 AM

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.


All times are GMT. The time now is 07:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01164 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete