• Rejestracja
vBHELP.pl - polskie wsparcie vBulletin
  1. #1
    xsebax jest nieaktywny Początkujący
    Dołączył
    Jan 2009
    Posty
    9
    Przydatne posty
    3

    Domyślnie Parse error: syntax error, unexpected T_STRING in...

    Witam, mam oto taki problem.

    Nie wiedzieć dlaczego dzisiaj na forum zaczął wyskakiwać błąd:

    Parse error: syntax error, unexpected T_STRING in /home/login/domains/nazwastrony/public_html/forumdisplay.php(968) : eval()'d code on line 8

    Unable to add cookies, header already sent.
    File: /home/login/domains/nazwastrony/public_html/forumdisplay.php(968) : eval()'d code
    Line: 8


    Powoduje to, że nie wyświetlają się działy oraz są problemy w swobodnym poruszaniu się na forum.


    Tutaj początek kody pliku forumdisplay:

    Kod:
    <?php
    /*======================================================================*\
    || #################################################################### ||
    || # vBulletin 3.8.4 Patch Level 1
    || # ---------------------------------------------------------------- # ||
    || # Copyright ©2000-2009 Jelsoft Enterprises Ltd. All Rights Reserved. ||
    || # This file may not be redistributed in whole or significant part. # ||
    || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
    || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
    || #################################################################### ||
    \*======================================================================*/
    
    // ####################### SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE & ~8192);
    
    // #################### DEFINE IMPORTANT CONSTANTS #######################
    define('THIS_SCRIPT', 'forumdisplay');
    define('CSRF_PROTECTION', true);
    
    // ################### PRE-CACHE TEMPLATES AND DATA ######################
    // get special phrase groups
    $phrasegroups = array('forumdisplay', 'inlinemod', 'prefix');
    
    // get special data templates from the datastore
    $specialtemplates = array(
    	'iconcache',
    	'mailqueue',
    	'prefixcache'
    );
    
    // pre-cache templates used by all actions
    $globaltemplates = array();
    
    // pre-cache templates used by specific actions
    $actiontemplates = array(
    	'none' => array(
    		'ad_forumdisplay_afterthreads',
    		'FORUMDISPLAY',
    		'threadbit',
    		'threadbit_deleted',
    		'threadbit_announcement',
    		'forumhome_lastpostby',
    		'forumhome_forumbit_level1_post',
    		'forumhome_forumbit_level2_post',
    		'forumhome_forumbit_level1_nopost',
    		'forumhome_forumbit_level2_nopost',
    		'forumhome_subforumbit_nopost',
    		'forumhome_subforumseparator_nopost',
    		'forumdisplay_loggedinuser',
    		'forumhome_moderator',
    		'forumdisplay_moderator',
    		'forumdisplay_sortarrow',
    		'forumhome_subforumbit_post',
    		'forumhome_subforumseparator_post',
    		'forumhome_markread_script',
    		'forumrules',
    		'optgroup',
    		'threadadmin_imod_menu_thread',
    	)
    );
    
    // ####################### PRE-BACK-END ACTIONS ##########################
    function exec_postvar_call_back()
    {
    	global $vbulletin;
    
    	$vbulletin->input->clean_array_gpc('r', array(
    		'forumid'	=> TYPE_STR,
    	));
    
    	// jump from forumjump
    	switch ($vbulletin->GPC['forumid'])
    	{
    		case 'search':	$goto = 'search'; break;
    		case 'pm':		$goto = 'private'; break;
    		case 'wol':		$goto = 'online'; break;
    		case 'cp':		$goto = 'usercp'; break;
    		case 'subs':	$goto = 'subscription'; break;
    		case 'home':
    		case '-1':		$goto = $vbulletin->options['forumhome']; break;
    	}
    
    	// intval() forumid since having text in it is not expected anywhere else and it can't be "cleaned" a second time
    	$vbulletin->GPC['forumid'] = intval($vbulletin->GPC['forumid']);
    
    	if ($goto != '')
    	{
    		if (!empty($vbulletin->session->vars['sessionurl_js']))
    		{
    			exec_header_redirect("$goto.php?" . $vbulletin->session->vars['sessionurl_js']);
    		}
    		else
    		{
    			exec_header_redirect("$goto.php");
    		}
    	}
    	// end forumjump redirects
    }
    
    // ######################### REQUIRE BACK-END ############################
    require_once('./global.php');
    require_once(DIR . '/includes/functions_forumlist.php');
    require_once(DIR . '/includes/functions_bigthree.php');
    require_once(DIR . '/includes/functions_forumdisplay.php');
    require_once(DIR . '/includes/functions_prefix.php');
    
    // #######################################################################
    // ######################## START MAIN SCRIPT ############################
    // #######################################################################
    
    ($hook = vBulletinHook::fetch_hook('forumdisplay_start')) ? eval($hook) : false;
    
    // ############################### start mark forums read ###############################
    if ($_REQUEST['do'] == 'markread')
    {
    	require_once(DIR . '/includes/functions_misc.php');
    	$mark_read_result = mark_forums_read($foruminfo['forumid']);
    
    	$vbulletin->url = $mark_read_result['url'];
    	eval(print_standard_redirect($mark_read_result['phrase']));
    }
    
    // Don't allow access to anything below if an invalid $forumid was specified
    if (!$foruminfo['forumid'])
    {
    	eval(standard_error(fetch_error('invalidid', $vbphrase['forum'], $vbulletin->options['contactuslink'])));
    
    Content Relevant URLs by vBSEO 3.6.0 PL3




    Ktoś byłby w stanie wskazać błąd? Z góry dziękuję za pomoc!
    S.



  2. #2
    Awatar Max
    Max
    Max jest nieaktywny There's something in the Air ...
    Dołączył
    Jan 2008
    Posty
    4 775
    Przydatne posty
    252
    Wpisów
    13

    Domyślnie

    Wykonaj reupload wszystkich oryginalnych plików vBulletin. Upewnij się, że pliki są przesyłane w ASCII.
    Jeśli to nie pomoże zablokuj wszystkie modyfikacje, aby sprawdzić, czy któraś z nich nie powoduje błędu.


Podobne wątki

  1. Odpowiedzi: 1
    Ostatni post / autor: 02.08.2010, 09:21
  2. DB Error
    By trocek in forum Pytania i problemy
    Odpowiedzi: 14
    Ostatni post / autor: 26.10.2009, 22:00
  3. Parse error: syntax error, unexpected ';'
    By bugses in forum Pytania i problemy
    Odpowiedzi: 0
    Ostatni post / autor: 15.10.2009, 22:40
  4. Odpowiedzi: 1
    Ostatni post / autor: 17.05.2009, 13:27
  5. Syntax Error w sitemap
    By seba766 in forum Pozycjonowanie (SEO)
    Odpowiedzi: 4
    Ostatni post / autor: 02.06.2008, 23:15
Chmurka.pl

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67