Parse error: syntax error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raicars
    New Member
    • Nov 2009
    • 7
    • 4.2.X

    [Suite] Parse error: syntax error

    Code:
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in [B]/home/xxx/public_html/includes/class_core.php(4627) : eval()'d code(1) : eval()'d code on line [B]1
    
    After i upgrade vbulletin 4.1.11, My Forum have erro.
    
    [/B]
    I delete soucre vbulletin old,
    i download soucre vbuletin new upload to host but my forum still erro.
    Please help me.

    [/B]

  • Amaury
    Senior Member
    • Mar 2012
    • 1807
    • 4.2.X

    #2
    What source are you talking about? Also, did you overwrite everything properly when upgrading?
    Former vBulletin user

    Comment

    • Jake Bunce
      Senior Member
      • Dec 2000
      • 46598
      • 3.6.x

      #3
      This is the line of code that is referenced in the error:

      Code:
      	protected function render_output($suppress_html_comments = false)
      	{
      		//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
      		{
      			[color=red]eval('$final_rendered = "' . $template_code . '";');[/color]
      		}
      
      		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;
      	}
      There is a problem with the code in one of your templates.

      If you can access the Admin CP then try installing a new default style. Or revert any templates that you have recently customized.

      Comment

      • abdobasha2004
        Member
        • Jun 2008
        • 31
        • 3.7.x

        #4
        if you use arabic language for you forum please revise this : http://nmasr.com/vb/showthread.php?t=428388
        Egypt discussion board : http://nmisr.com/vb/
        Klma news site : http://klma.org/

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...