PDA

View Full Version : Solved HELP - getting PHP Fatal error -



gmhastings
20-10-10, 00:12
Hi there,

I've just bought vBET and followed all the instructions twice (after restoring) and getting the same error message - I just get a blank screen when trying to just view the forum index.


I'm getting

"PHP Fatal error: Class 'vB_Template' not found in /(my server path)/httpdocs/forum/includes/vbenterprisetranslator_functions_hooks.php on line 689 (in Bold below)

Whilst I'm reasonable on some PHP I really don't know where to look to discover what is right or not, so would really appreciate some help please.

function vbet_parse_templates(&$template_hook) {
$template_hook['headinclude_css'] .= '<link rel="stylesheet" type="text/css" href="images/vbet/flags/vbet.css"/>';
require_once(DIR. '/includes/vbenterprisetranslator_functions_url.php');
if ($_REQUEST['language']) {
vbet_handleTextDirection($_REQUEST['language']);
vB_Template_Runtime::addStyleVar('languagecode', $_REQUEST['language']);
$encoding = &vB_Template_Runtime::fetchStyleVar('charset');
if ($encoding != 'utf-8') {
define('VBET_ORIGINAL_ENCODING', $encoding);
vB_Template_Runtime::addStyleVar('charset', 'utf-8');
}
}
global $vbenterprisetranslatorflags, $vbulletin;
$vbenterprisetranslatorflags = '';
if (!VBET_IS_ACTUAL_IGNORED && (!$vbulletin->options['vbenterprisetranslator_flags_guestsonly'] || !$vbulletin->userinfo['userid'])) {
$templater = vB_Template::create('vbenterprisetranslator_flags');
$linkstitle = $vbulletin->options['vbenterprisetranslator_linkstitle'];
$translations =& vbet_getActiveTranslationsForUser();
foreach ($translations as $code => $name) {


I am using vbSEO (v3.5.2) with vBulletin 3.8.6 PL1 and made all the file changes appropriate for "vbSEO installed" but getting nowhere fast..


I'd really appreciate any pointers in the right direction please :)

Many thanks in advance.
gmhastings

gmhastings
20-10-10, 00:16
Also should add my charset is ISO-8859-1 (not utf-8)

gmhastings
20-10-10, 01:05
Jeez I'm such a fool! I downloaded V4 but I'm using the earlier version of vBulletin.. gonna restore and try again ..

Please set this to resolved for now :)

Sorry to waste your time

kamilkurczak
20-10-10, 07:46
Thanks for confirmation - solved :)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
vBET 4.10.1 brings automatic translations