John Lester
09-08-2011, 04:04 PM
This pops up in my error logs every once in awhile. I've not had any complaints about anything specific not working, nor have I been online when the error occurs.
vB.com wanted me to open a ticket and disable/uninstall all mods and upload a clean vB. I don't really want to do that since a lot of my members have neurological disorders and can't cope with change well (all the back n forth breaks some of the mods they use).
PHP Fatal error: Call to undefined function fetch_phrase() in /home2/nonyabiz/public_html/includes/functions.php on line 3518
Here's lines 3468 to 3529 (in case any of the preceding code is relevant) with 3518 in red.
// ################################################## ###########################
/**
* Fetches an error phrase from the database and inserts values for its embedded variables
*
* @param string Varname of error phrase
* @param mixed Value of 1st variable
* @param mixed Value of 2nd variable
* @param mixed Value of Nth variable
*
* @return string The parsed phrase text
*/
function fetch_error()
{
global $vbulletin;
$args = func_get_args();
// Allow an array of phrase and variables to be passed in as arg0 (for some internal functions)
if (is_array($args[0]))
{
$args = $args[0];
}
if (class_exists('vBulletinHook', false))
{
($hook = vBulletinHook::fetch_hook('error_fetch')) ? eval($hook) : false;
}
if (!function_exists('fetch_phrase') AND !VB_API)
{
require_once(DIR . '/includes/functions_misc.php');
}
if ($vbulletin->GPC['ajax'])
{
switch ($args[0])
{
case 'invalidid':
case 'nopermission_loggedin':
case 'forumpasswordmissing':
$args[0] = $args[0] . '_ajax';
}
}
// API only needs error phrase name and args.
if (defined('VB_API') AND VB_API === true)
{
return $args;
}
$args[0] = fetch_phrase($args[0], 'error', '', false);
if (sizeof($args) > 1)
{
return call_user_func_array('construct_phrase', $args);
}
else
{
return $args[0];
}
}
// ################################################## ###########################
vB.com wanted me to open a ticket and disable/uninstall all mods and upload a clean vB. I don't really want to do that since a lot of my members have neurological disorders and can't cope with change well (all the back n forth breaks some of the mods they use).
PHP Fatal error: Call to undefined function fetch_phrase() in /home2/nonyabiz/public_html/includes/functions.php on line 3518
Here's lines 3468 to 3529 (in case any of the preceding code is relevant) with 3518 in red.
// ################################################## ###########################
/**
* Fetches an error phrase from the database and inserts values for its embedded variables
*
* @param string Varname of error phrase
* @param mixed Value of 1st variable
* @param mixed Value of 2nd variable
* @param mixed Value of Nth variable
*
* @return string The parsed phrase text
*/
function fetch_error()
{
global $vbulletin;
$args = func_get_args();
// Allow an array of phrase and variables to be passed in as arg0 (for some internal functions)
if (is_array($args[0]))
{
$args = $args[0];
}
if (class_exists('vBulletinHook', false))
{
($hook = vBulletinHook::fetch_hook('error_fetch')) ? eval($hook) : false;
}
if (!function_exists('fetch_phrase') AND !VB_API)
{
require_once(DIR . '/includes/functions_misc.php');
}
if ($vbulletin->GPC['ajax'])
{
switch ($args[0])
{
case 'invalidid':
case 'nopermission_loggedin':
case 'forumpasswordmissing':
$args[0] = $args[0] . '_ajax';
}
}
// API only needs error phrase name and args.
if (defined('VB_API') AND VB_API === true)
{
return $args;
}
$args[0] = fetch_phrase($args[0], 'error', '', false);
if (sizeof($args) > 1)
{
return call_user_func_array('construct_phrase', $args);
}
else
{
return $args[0];
}
}
// ################################################## ###########################