vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySQL Error when I go to post (https://vborg.vbsupport.ru/showthread.php?t=61498)

Preech 02-12-2004 10:52 PM

MySQL Error when I go to post
 
Quote:

Database error in vBulletin 3.0.0 Release Candidate 2:

Invalid SQL:
INSERT INTO post
(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie,
showsignature, ipaddress, iconid, visible, attach)
VALUES
(24358, 0, 'test',
'Stoic Contrast', 29, 1076661833,
'test', 1, 1,
'24.205.226.213', 0, 1, 0

mysql error: You have an error in your SQL syntax near '' at line 10

mysql error number: 1064

Date: Friday 13th of February 2004 03:43:53 AM
Script: http://www.originalaspect.com/forum/newthread.php
Referer: http://www.originalaspect.com/forum/...ewthread&f=303
Username: Stoic Contrast
IP Address: 24.205.226.213
I get this error when I go to post...any ideas?

Andreas 02-12-2004 10:58 PM

Do you have any hacks installed?
Seems like the closing bracket is missing.

Preech 02-12-2004 11:11 PM

what php file would that possibly be in?

assassingod 02-12-2004 11:14 PM

Looks like newthread.php. Might also be functions_newpost.php

Have you installed any hacks recently that alter any of those files?

Andreas 02-12-2004 11:14 PM

Most likely functions_newpost.php in function build_new_post().

Preech 02-12-2004 11:20 PM

thanks, but i just tried substituting those files in and out with the defaults and it didnt make a difference...

any other ideas would be appreciated

Andreas 02-12-2004 11:29 PM

You replace them with the originals and you still get this error?

Hmm ... did you modify any other files like functions.php, functions_bbcodeparse.php, init.php, sessions.php, global.php, db_mysql.php, functions_databuild.php or functions_misc.php?

Preech 02-13-2004 12:56 AM

No...none of the files where modified. I've re-upload the original untouched files. And cleared all templates. Error still exist.

Andreas 02-13-2004 03:49 AM

Hmm ... now this is getting a bit strenge. These should have been all files that could be involved in posting, and I somehow doubt that it is a template-problem.

Can you manually insert a record into table post (using phpMyAdmin)?

Boofo 02-13-2004 04:30 AM

How about trying to repair the table in the Admin CP? It couldn't hurt. If anything is slightly wrong with it, that should take care of it. Just a guess here. ;)


All times are GMT. The time now is 04:59 PM.

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.00994 seconds
  • Memory Usage 1,728KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete