vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Anyone have any ideas.. (https://vborg.vbsupport.ru/showthread.php?t=222732)

NoKSouLz 09-08-2009 02:19 PM

Anyone have any ideas..
 
Anyone have any ideas what this error message means:

Im puzzled

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Comes up when clicking a team in the tournament and ladder script..

Only does it on that page, but its not giving me an actual error just says that

What could it mean?

Lynne 09-08-2009 02:24 PM

Something is wrong on that page near the first line. What does the page look like? And does it say the page name? Are you getting the errors sent to you via email?

NoKSouLz 09-08-2009 02:25 PM

If i copied and pasted the code would any of you be able to pick out whats wrong?

I tried to look myself but failed miserably lmao

--------------- Added 08 Sep 2009 at 23:06 ---------------

First section of the code which is the file that used when it errors:

PHP Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # Copyright ? BananaLive Scripts. All Rights Reserved. ############# ||
|| #################################################################### ||
\*======================================================================*/
 
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT''competitions');
if (
$_REQUEST['do'] && in_array($_REQUEST['do'], array('addannouncement''editannouncement''editrules''addteam''editteam')))
{
define('GET_EDIT_TEMPLATES'true);
}
$phrasegroups = array('posting''postbit''user''timezone''global''pm''reputationlevel''search');
$specialtemplates = array(
    
'bbcodecache',
    
'smiliecache',
);
$globaltemplates = array(
    
'editor_clientscript',
    
'editor_css',
    
'editor_jsoptions_font',
    
'editor_jsoptions_size',
    
'editor_smilie',
    
'editor_smiliebox',
    
'tmnt_editrules',
    
'editor_smiliebox_row',
    
'editor_smiliebox_straggler',
    
'editor_toolbar_off',
    
'editor_toolbar_on',
    
'memberinfo_block_visitormessaging',
    
'memberinfo_css',
    
'memberinfo_usercss',
    
'newpost_disablesmiliesoption',
    
'showthread_quickreply',
    
'tmnt_addcomment',
    
'tmnt_cmpt',
    
'tmnt_bracket',
    
'tmnt_cmptlms',
    
'tmnt_cmptlms',
    
'tmnt_cmptlms',
    
'tmnt_index',
    
'tmnt_teamlist',
    
'tmnt_teamlist_bot',
    
'tmnt_teamlist_top',
    
'tmnt_team_won',
    
'tmnt_ladder_edit',
    
'tmnt_index_lbit',
    
'tmnt_index_tbit',
    
'tmnt_ladder_list',
    
'tmnt_ladder_list_bot',
    
'tmnt_ladder_list_top',
    
'tmnt_ladder_cmpt_ddms',
    
'tmnt_ladder_new',
    
'tmnt_newteam',
    
'tmnt_cmptlms_top',
    
'tmnt_cmptlms_bot',
    
'tmnt_comment',
    
'tmnt_createteam',
    
'tmnt_display',
    
'tmnt_displayannouncement',
    
'tmnt_displayrules',
    
'tmnt_displayteam',
    
'tmnt_edit',
    
'tmnt_team_join',
    
'tmnt_editann',
    
'tmnt_editcomment',
    
'tmnt_editplayer',
    
'tmnt_editteam',
    
'tmnt_hof',
    
'tmnt_hof_bot',
    
'tmnt_hof_top',
    
'tmnt_join',
    
'tmnt_ladder_chll',
    
'tmnt_ladder_allchll',
    
'tmnt_ladder_allchll_rm',
    
'tmnt_ladder_allchll_bot',
    
'tmnt_ladder_allchll_none',
    
'tmnt_ladder_allchll_top',
    
'tmnt_ladder_tlchll',
    
'tmnt_ladder_tlchll_bot',
    
'tmnt_ladder_tlchll_none',
    
'tmnt_ladder_tlchll_top',
    
'tmnt_ladder_chllpm',
    
'tmnt_ladder_chll_bot',
    
'tmnt_ladder_chll_top',
    
'tmnt_ladder_cmpt',
    
'tmnt_ladder_cmpt_bot',
    
'tmnt_ladder_cmpt_none',
    
'tmnt_ladder_cmpt_top',
    
'tmnt_ladder_display',
    
'tmnt_ladder_elorating',
    
'tmnt_ladder_join',
    
'tmnt_ladder_insertmatch',
    
'tmnt_ladder_repmatch',
    
'tmnt_ladder_repmatch_top',
    
'tmnt_ladder_repmatch_bot',
    
'tmnt_ladder_submitscore',
    
'tmnt_letter',
    
'tmnt_list',
    
'tmnt_listann',
    
'tmnt_listann_bot',
    
'tmnt_listann_top',
    
'tmnt_list_bot',
    
'tmnt_list_top',
    
'tmnt_new',
    
'tmnt_newannouncement',
    
'tmnt_editcat',
    
'tmnt_newplayer',
    
'tmnt_noannouncements',
    
'tmnt_nocomments',
    
'tmnt_notmnts',
    
'tmnt_playerstats',
    
'tmnt_rules',
    
'tmnt_shell',
    
'tmnt_swapplayer',
    
'tmnt_teammember',
    
'tmnt_teammember_ddm',
    
'tmnt_threadtemplate',
    
'tmnt_ladder_teamchal',
    
'tmnt_ladder_yourteams',
    
'tmnt_nocategories',
    
'tmnt_listcat_con',
    
'tmnt_listcat',
    
'tmnt_newcategory',
    
'pm_newpm'
   
&nbsp;);
$actiontemplates = array(
);
 
require_once(
'./global.php');
require_once(
DIR '/includes/functions.php');
require_once(
DIR '/includes/functions_tal.php');
 
$navbits construct_navbits(array(
        
'competitions.php' $vbulletin->session->vars['sessionurl_q'] => $modname,
        
'' => construct_phrase('Error')
   &
nbsp;));
    eval(
'$navbar = "' fetch_template('navbar') . '";');
 
// #############################################################################


Marco van Herwaarden 09-09-2009 07:00 AM

Posting the script will not help. You will need to post the details of the error message. You can find these details either in your email or by right clicking on the error page and selecting Show Source.

NoKSouLz 09-09-2009 10:09 AM

The thing is..

you dont receieve any email from the error as its not a database error.

And clicking view source on the page reveals nothing, all it says in the source is what i pasted in the first post :\

Lynne 09-09-2009 01:23 PM

If it is saying it's a MySQL error on the first line of that code, then I would guess there is something weird about how the page is being called. MySQL shouldn't be involved in that part of the page at all. Take a look at the code that calls that page.

(Also, typically any 'code' (like your 'do' comparisons that you have at the top of that page) should go after all the array definitions and includes.)


All times are GMT. The time now is 07:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02005 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete