Thanks for your quick reply,
I added the 4 arrays but the errors still remain.
Here is the new code:
PHP Code:
echo "creating arrays..";
//define('THIS_SCRIPT', 'index');
$phrasegroups = array('holiday');
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue'
);
$globaltemplates = array(
'FORUMHOME',
'forumhome_event',
'forumhome_forumbit_level1_nopost',
'forumhome_forumbit_level1_post',
'forumhome_forumbit_level2_nopost',
'forumhome_forumbit_level2_post',
'forumhome_lastpostby',
'forumhome_loggedinuser',
'forumhome_moderator',
'forumhome_pmloggedin',
'forumhome_subforumbit_nopost',
'forumhome_subforumbit_post',
'forumhome_subforumseparator_nopost',
'forumhome_subforumseparator_post'
);
$actiontemplates = array();
chdir('../forum');
echo "requiring..";
require_once('./global.php');
echo "required..";
$user =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
echo "created..";