Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2009, 03:19 PM
NoKSouLz NoKSouLz is offline
 
Join Date: Feb 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 09-08-2009, 03:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 09-08-2009, 03:25 PM
NoKSouLz NoKSouLz is offline
 
Join Date: Feb 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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') . '";');
 
// #############################################################################
Reply With Quote
  #4  
Old 09-09-2009, 08:00 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-09-2009, 11:09 AM
NoKSouLz NoKSouLz is offline
 
Join Date: Feb 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :\
Reply With Quote
  #6  
Old 09-09-2009, 02:23 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08188 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete