PDA

View Full Version : new thread error


creative-friend
07-16-2017, 07:05 AM
I upgrade on vbulltein 4.2.5.
When i tried to make new thread, following error shown

Call to undefined function split() on line 26 in /home/**********/newthread.php(77) : eval()'d code
#0 /home/**********/newthread.php(77): eval()
#1 {main}

This error shown in some sections. some sections work fine

--------------- Added 1500221173 at 1500221173 ---------------

I further check, when i disable this plugin then this error not appear

Title: WoG - TLPXHONSF - ThreadAction
Hook location: newthread_start

PHP code
if (($foruminfo['wog_create_max'] != '0') AND ($foruminfo['wog_create_hours'] != '0') AND ($vbulletin->options['wog_tlpxhonsf_enable']))
{
if ($vbulletin->options['wog_tlpxhonsf_onlyvisible'])
{
$wog_onlyvisible = "AND `visible` = '1'";
}
else
{
$wog_onlyvisible = '';
}
$wog_range = (TIMENOW - ($foruminfo['wog_create_hours'] * 3600));
$wog_gethreads = $db->query_first("
SELECT COUNT(*) AS threadcount
FROM `" . TABLE_PREFIX . "thread`
WHERE `postuserid` = '" . $vbulletin->userinfo['userid'] . "'
AND `forumid` = '" . $foruminfo['forumid'] . "'
AND `dateline` > '" . $wog_range . "'
" . $wog_onlyvisible
);
$wog_denied = false;
if ($wog_gethreads['threadcount'] >= $foruminfo['wog_create_max'])
{
$wog_denied = true;
}
$forumperms = fetch_permissions($foruminfo['forumid']);
if (($vbulletin->userinfo['userid']) AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostnew']) AND !(is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['wog_tlpxhonsf_excludedgroups']))) AND ($wog_denied))
{
eval(standard_error(fetch_error('error_wog_thread_ limit', intval($foruminfo['wog_create_hours']), intval($foruminfo['wog_create_max']), intval($wog_gethreads['threadcount']))));
}
}