dong
16-11-17, 14:17
У логу apache, што якое-то час яны мне такія памылкі:
[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
Памылкі ўзнікаюць толькі на старонках, якія адлюстроўваюць змест тэмы. Толькі старонкі з параметрам language. У арыгінале на англійскай памылкі не ўзнікаюць. Калі я заходжу са свайго браўзэра пад url з часопіса, то памылка не з'яўляецца - не магу сам генераваць гэтую памылку. Файл class_core.php у мяне ёсць у арыгінале.
Блок з 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 = "\n$final_rendered\n";
}
return $final_rendered;
У лініі 4688:
eval('$final_rendered = "' . $template_code . '";');
[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
Памылкі ўзнікаюць толькі на старонках, якія адлюстроўваюць змест тэмы. Толькі старонкі з параметрам language. У арыгінале на англійскай памылкі не ўзнікаюць. Калі я заходжу са свайго браўзэра пад url з часопіса, то памылка не з'яўляецца - не магу сам генераваць гэтую памылку. Файл class_core.php у мяне ёсць у арыгінале.
Блок з 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 = "\n$final_rendered\n";
}
return $final_rendered;
У лініі 4688:
eval('$final_rendered = "' . $template_code . '";');