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 9 of 9

Thread: vBet for vb4 won't run

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    5

    Default vBet for vb4 won't run

    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

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

    Default

    Please tell us what is content of line 4031 and the next one in your includes/class_core.php file.

  3. #3
    Junior Member
    Join Date
    Mar 2010
    Posts
    5

    Default

    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
    Code:
    			eval($template_code);
    		}
    using the vB default class_core file error is :
    Code:
    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
    Code:
    			eval($template_code);
    		}
    same code in either file.
    is this section :
    Code:
    		$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]
    Last edited by Stev; 22-03-10 at 14:51.

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

    Default

    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:
    PHP Code:
    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.

  5. #5
    Junior Member
    Join Date
    Mar 2010
    Posts
    5

    Default

    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 .
    Last edited by Stev; 23-03-10 at 12:38. Reason: found apparent problem .. .

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

    Default

    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

  7. #7
    Junior Member
    Join Date
    Mar 2010
    Posts
    5

    Default

    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.
    Code:
    <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.
    Code:
    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.co...wlocation.html
    - still a problem, blank page.
    posted in the other thread
    Last edited by Stev; 24-03-10 at 13:37. Reason: found another post with problem

  8. #8

    Default

    Quote Originally Posted by Stev View Post
    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.
    Code:
    <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.
    Code:
    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.co...wlocation.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)

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

    Default

    Quote Originally Posted by mikeinjersey View Post
    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

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
  •