PDA

View Full Version : Open unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in class_core (4688) eval () 'd code on line 1



dong
16-11-17, 14:17
In the apache log from time to time, appear to me to such errors:

[Thu Nov 16 13:28:57.206922 2017] [:error] [pid 67811] [client x:23464] PHP Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING)
or variable (T_VARIABLE) or number (T_NUM_STRING) in /usr/includes/class_core.php(4688) : eval()'d code on line 1, referer: http://www.forum.alfaholicy.org/147_156_166_gt/21097-jtd_nowy_program_diagnostyczny_tylko_obslugi_jtd_-32.html?language=es
Errors occur only on pages that display the content of the thread. Only the pages with the language. In the original language errors do not exist. When I go from your browser to the url of the log this error does not appear-I can not alone generate this error. File class_core. php I have in the original. A block with class_core. php:

//This global statement is here to expose $vbulletin to the templates.
//It must remain in the same function as the template eval
global $vbulletin;
extract($this->registered, EXTR_SKIP | EXTR_REFS);

$actioned = false;
($hook = vBulletinHook::fetch_hook('template_render_output')) ? eval($hook) : false;

if (!$actioned)
{
$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;

4688 line is:

eval('$final_rendered = "' . $template_code . '";');

vBET
18-11-17, 23:14
Can you provide the full URL to the page with the error? In the post is cut. I would like to check whether they are visible additional information page. Currently all I know is that a templejt has a bug, but it is not known how and whether actually with vBET. I imagine so, if this occurs only on the translated pages, but it is still only a guess, because if an error occurs sometimes, it can sometimes also translated pages. Anyway-now there is not enough information. Please enter the full URL to the page where the error occurs. Maybe there will be something more, and if not, it will be necessary to add logs and print out a template, what there is processed, but nothing to worry, as you will need, we will take care of already.

dong
22-11-17, 22:20
Example link: http://www.forum.alfaholicy.org/159_brera_brera_spider/45063-felgi_kola_159_brera_temat_ogolny-734.html?language=en

vBET
03-12-17, 12:29
A look to the PM-I need info, where are these logs.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Thanks to vBET PRODUCER_PRODUCT_VERSION enjoy automatic translations