Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 5 of 5

Thread: 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

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    11

    Default 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

    Text automatically translated from: Polish to: English
    Translated text
    In the apache log from time to time, appear to me to such errors:
    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
    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:
    Code:
    //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:
    Code:
    eval('$final_rendered = "' . $template_code . '";');
    Original text
    Last edited by dong; 16-11-17 at 14:20.

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Text automatically translated from: Polish to: English
    Translated text
    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.
    Original text
    Last edited by vBET; 18-11-17 at 23:33.

  3. #3
    Junior Member
    Join Date
    May 2011
    Posts
    11

    Default

    Text automatically translated from: Polish to: English
    Translated text
    Original text
    Last edited by dong; 22-11-17 at 22:32.

  4. #4
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Text automatically translated from: Polish to: English
    Translated text
    A look to the PM-I need info, where are these logs.
    Original text

  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Text automatically translated from: Polish to: English
    Translated text
    No response-I assume that the problem solved or irrelevant. By the way, something similar throws another client, so there is a chance, that is the same and the fixes will be in the next release.
    If the problem is still troubled, please for more information.
    Original text

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •