PDA

View Full Version : Solved vBet for vb4 won't run



Stev
21-03-10, 15:47
Running vb4.0.2

Got the PRO version installed but when turning it on got this error code:

Parse error: syntax error, unexpected $end in /home/xxx/public_html/forum/includes/class_core.php(4031) : eval()'d code on line 146

vBET
22-03-10, 08:08
Please tell us what is content of line 4031 and the next one in your includes/class_core.php file.

Stev
22-03-10, 12:41
have a mod - Proxy-to-real-ip - which needs an edit in this file.

url of mod will not post - 15 posts have not been made :(
-> get the same error with the original vB class core file

lines 4031, 4032 - of the edited class_core file

eval($template_code);
}

using the vB default class_core file error is :

Parse error: syntax error, unexpected $end in /home/xxxx/public_html/forum/includes/class_core.php(4010) : eval()'d code on line 146
lines 4010, 4011

eval($template_code);
}

same code in either file.
is this section :


$template_code = self::fetch_template($this->template);
if (strpos($template_code, '$final_rendered') !== false)
{
eval($template_code);
}
else
{
eval('$final_rendered = "' . $template_code . '";');
}

if ($vbulletin->options['addtemplatename'] AND !$suppress_html_comments)
{
$template_name = preg_replace('#[^a-z0-9_]#i', '', $this->template);
$final_rendered = "<!-- BEGIN TEMPLATE: $template_name -->\n$final_rendered\n<!-- END TEMPLATE: $template_name -->";
}

return $final_rendered;
}
QUOTE=vBET;1920]Please tell us what is content of line 4031 and the next one in your includes/class_core.php file.[/QUOTE]

vBET
23-03-10, 04:43
Are you sure that it is vBET fault not just wrong edited file? Pleae dissable vBET and check does issue still exists. If yes it means that your file edition crashes vB.

If it is vBET fault then please add just before the eval($template_code); line:


echo 'THIS IS ONLY A TEST template name: ' . $template_name;

After change go quickly to your forum, generate page which crashes, copy test messages (if they appear) and upload back original file. Please note that during this time whole forum will be crashed.
Please send us test messages which you get - wee need to know on which template it crashes - that will be the last which appears.

Stev
23-03-10, 12:30
think found the problem .. .

-> is a style issue - as works on a default vB style with no problems .. .

will get back later with what was found .

vBET
24-03-10, 07:01
OK so. In such situation please use custom place for flags and see did it solved issue. If yes, then continue using custom place and fallow instructions near flags place parameter :)

Stev
24-03-10, 13:02
Solved :)

we have a "brand free" vbulletin, so the vB copyright is not needed to be shown.

the code for the vB copyright was removed.

<div id="footer_copyright" class="shade footer_copyright">
<!-- Do not remove this copyright notice -->
{vb:rawphrase powered_by_vbulletin}
<!-- Do not remove this copyright notice -->
</div>
the parse error went away after adding the code back to the footer template.
-> the, your script uses part of it to add your copyright.

Parse error: syntax error, unexpected $end in /home/xxx/public_html/forum/includes/class_core.php(4031) : eval()'d code on line 146

new error, new thread for it .. .

found another post on it
http://www.vbenterprisetranslator.com/forum/vbet4-troubleshooting/506-curlopt_followlocation.html
- still a problem, blank page.
posted in the other thread

VGF
21-05-10, 20:37
Solved :)

we have a "brand free" vbulletin, so the vB copyright is not needed to be shown.

the code for the vB copyright was removed.

<div id="footer_copyright" class="shade footer_copyright">
<!-- Do not remove this copyright notice -->
{vb:rawphrase powered_by_vbulletin}
<!-- Do not remove this copyright notice -->
</div>
the parse error went away after adding the code back to the footer template.
-> the, your script uses part of it to add your copyright.

Parse error: syntax error, unexpected $end in /home/xxx/public_html/forum/includes/class_core.php(4031) : eval()'d code on line 146

new error, new thread for it .. .

found another post on it
http://www.vbenterprisetranslator.com/forum/vbet4-troubleshooting/506-curlopt_followlocation.html
- still a problem, blank page.
posted in the other thread


Same happened here. Can someone tell me quickly how to remove the

Automatic translations supported by vBET 4.2.2

part ? Its still in my copyright after I removed everything else. (branded free version)

vBET
22-05-10, 23:21
Same happened here. Can someone tell me quickly how to remove the

Automatic translations supported by vBET 4.2.2

part ? Its still in my copyright after I removed everything else. (branded free version)

Already PM to you :)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations made by vBET Translator 4.9.99