The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Error: Warning: in_array()
I just don't know how to fix it so that this error doesn't show up on some of my threads:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /showthread.php(1967) : eval()'d code on line 364 Your help would be greatly appreciated. Line 364: // set $perpage $perpage = sanitize_maxposts($vbulletin->GPC['perpage']); // ************************************************** ****************************** * // set post order if ($vbulletin->userinfo['postorder'] == 0) { $postorder = ''; } else { $postorder = 'DESC'; } // ************************************************** ****************************** * // get thread info $thread = verify_id('thread', $threadid, 1, 1); $threadinfo =& $thread; ($hook = vBulletinHook::fetch_hook('showthread_getinfo')) ? eval($hook) : false; // ************************************************** ****************************** * // check for visible / deleted thread if (((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts'))) OR ($thread['isdeleted'] AND !can_moderate($thread['forumid']))) { eval(standard_error(fetch_error('invalidid', $vbphrase['thread'], $vbulletin->options['contactuslink']))); } // ************************************************** ****************************** * // jump page if thread is actually a redirect if ($thread['open'] == 10) { exec_header_redirect('showthread.php?' . $vbulletin->session->vars['sessionurl_js'] . "t=$thread[pollid]"); |
#2
|
|||
|
|||
Its not a problem with the files, its due to a plugin. Check in plugin manager for plugins with the hook location 'showthread_getinfo' go through and disable them one by one to find out which is causing the error.
|
#3
|
|||
|
|||
I disabled all my plugins and that error is still showing.
|
#4
|
|||
|
|||
Upload a fresh version of the showthread.php file (i.e. download it again from vbulletin.com and upload it)
I'm pretty sure the eval'd error refers to the eval() of the hook though. You can disable hooks by putting PHP Code:
|
#5
|
|||
|
|||
did both, still no luck.
Reverting the SHOWTHREAD template did the trick. Thanks for helping. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|