Muhimu: Ukurasa Hii ni kwa kutumia cookies (cookies). Kutumia tovuti hii bila kugeuka mbali kuki kwenye kivinjari, ina maana kwamba unakubali kwa kutumia hiyo.
Buy Now! Features Downloads

Kupata na sisi!

Kama ungependa kuanza kupata fedha kwa vBET kujiunga na Affiliate Program.
Ukurasa 1 ya 2 12 MwishoLast
Matokeo 1 kwa 10 ya 16

Thread: Imechukua mwingine 4.2.5 VB na kosa la VBET

  1. #1
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default Imechukua mwingine 4.2.5 VB na kosa la VBET

    Ilikuwa na onyo lingine ili nimeunda ripoti ya kosa ili kuandika template kwenye logi na kulichukua hii ...
    Code:
    [04-Jun-2018 18:52:57 UTC] $lastpostinfo['lastposter'] = '<!--vBET_SNTA-->' . $lastpostinfo['lastposter'] .'<!--vBET_ENTA-->';
    [04-Jun-2018 18:52:57 UTC] PHP Parse error:  syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/allfreec/public_html/phpBB2/includes/class_core.php(4695) : eval()'d code on line 1
    Nilifanya ni kuandika template kwenye logi kabla ya kushindwa, kunichukua siku 3 lakini hii ni upakiaji wa template ambayo inatupa hitilafu.

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

    Default

    Sisi kuchunguza na kutuma majibu hivi karibuni.

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

    Default

    Tunapaswa kuwa na matoleo tofauti ya vBulletin kwa sababu mahali pale yameelezwa na logi la kosa tunayo} na kuna lazima iwe na utekelezaji wa baadhi ya programu.
    Tafadhali tupe maudhui ya mstari 4695 katika faili yako /home/allfreec/public_html/phpBB2/includes/class_core.php hivyo tutaweza kupata Plugin ambayo ni hatia na kuangalia mdudu.

  4. #4
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Kuanzia saa 4660, unaweza kuona msimbo wangu ili kupata hitilafu kwenye faili la logi linalojitokeza

    Code:
    	/**
    	 * Renders the output after preperation.
    	 * @see vB_Template::render()
    	 *
    	 * @param boolean	Whether to suppress the HTML comment surrounding option (for JS, etc)
    	 * @return string
    	 */
    	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
    		{
    /*
    			$tcount = 0;
    			$tst = str_replace("vB_Template_Runtime::fetchStylevar('outertablewidth')","",$template_code,$tcount);
    		    $tst = str_replace("old_explorer","",$template_code,$mcount);
    			if ($mcount==0&&$tcount==0){
    				error_log($template_code, 0);
    			}						
    	*/
    			eval('$final_rendered = "' . $template_code . '";');
    		}

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

    Default

    Asante. Na kanuni hii ya maoni ni code yako, ambayo ilirudi mstari wa kwanza wa kosa?

  6. #6
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Ndio, ingeingia kwenye template yoyote iliyofanywa, ambayo haikufananisha na watu wawili wanaojua kuwa ni magogo. Kisha ingeandika barua kwa logi kisha kufuatiwa na ujumbe wa makosa

  7. #7
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Tuna uhakika kama hilo lilikuwa lenye maana, niliingia kila mzigo wa template pale, kisha ukawaondoa ikiwa haukusababishia kosa na chembechembe badala ya hundi.

  8. #8
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Quote Originally Posted by vBET View Post
    Asante. Na kanuni hii ya maoni ni code yako, ambayo ilirudi mstari wa kwanza wa kosa?
    makosa_log ($ template_code, 0); <- mstari huu anaandika $ template_code ya sasa kwenye faili ya logi

    Kama kosa linapokufa, nilibidi kuandika kila msimbo wa template uliotengenezwa, kisha uone kile kilichokuwa kabla ya kosa mbaya lirekodi.

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

    Default

    Code:
    $lastpostinfo['lastposter'] = '<!--vBET_SNTA-->' . $lastpostinfo['lastposter'] .'<!--vBET_ENTA-->';
    Hakuna kanuni kama hiyo katika vBET ... Je! Umefanya mabadiliko yoyote kwa msimbo? Je, ni toleo gani una (labda baadhi ya wazee)?

  10. #10
    Senior Member
    Join Date
    Jun 2010
    Posts
    276

    Default

    Inapaswa kuwa template nyingine ambayo inatumia jina la VBET huko pale kama hakuna mabadiliko yanafanywa kwa VBET 492.

Ukurasa 1 ya 2 12 MwishoLast

Tags kwa Thread hii

Posting ruhusa

  • Wewe inaweza baada ya nyuzi mpya
  • Wewe inaweza post replies
  • Wewe inaweza post attachments
  • Wewe inaweza hariri posts yako
  •