The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Call to undefined function fetch_phrase
I'm using a custom php script to create users in VBulletin 4.x. The scripts calls core VBulletin files, ex - require_once(CWD . '/includes/class_core.php');.
Unfortunately, when a username already exists, the script throws a fatal error: Quote:
Code:
// 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); // line 4030 if (sizeof($args) > 1) { return call_user_func_array('construct_phrase', $args); } else { return $args[0]; } Within functions.php, the only time I see the fetch_phrase function get loaded is within the print_standard_redirect function Code:
if (!function_exists('fetch_phrase')) { require_once(DIR . '/includes/functions_misc.php'); } Given what I have shown, any idea on why I'm getting the "Call to ?" error message. I'm using vBulletin 4.2.0 Patch Level 2. Thanks. Dave Other related posts: http://www.vbulletin.com/forum/forum...php-line-3518? https://vborg.vbsupport.ru/showthrea...t=fetch_phrase |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|