vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   SQL Error when editing or creating a new forum HELP (https://vborg.vbsupport.ru/showthread.php?t=53133)

dano 05-19-2003 07:37 PM

SQL Error when editing or creating a new forum HELP
 
I have a problem and I am not sure where it is coming from. Everytime I try and create a new forum or edit a current forum I get this error:

mysql error number: 1064

Depending on what I try to do the content of the error changes, but it is always a number 1064.

As an example here is one when I simply tried to change the default style:

Database error in vBulletin Control Panel 2.3.0:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: UPDATE forum
SET
styleid='2', title=`XXXXXXXXXX`, description='',
active='1', displayorder='1', parentid='-1', parentlist='1,-1',
allowposting='0', cancontainthreads='0', daysprune='0',
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='0', allowbbcode='0',
allowimages='1', allowsmilies='0', allowicons='0',
styleoverride='0', allowratings='0', countposts='1',
moderateattach='0',allowdollaroffers = 1',enablewelcome='0',welcometext=''
WHERE forumid='1'

mysql error: You have an error in your SQL syntax near '',enablewelcome='0',welcometext=''
WHERE forumid='1'' at line 10

mysql error number: 1064

filburt1 05-19-2003 07:40 PM

You didn't open the quote for allowdollaroffers.

Reverend 05-19-2003 07:44 PM

There's a quote missing from this line:

Code:

moderateattach='0',allowdollaroffers = 1',enablewelcome='0',welcometext=''
edit: filburt beat me to it. ;)

dano 05-19-2003 07:51 PM

Wow, ok let me look at this ASAP. The dollar option has been working great.

Let me ask you a question (I am a total newbie to all of this) When you say I didnt open the quote for dollars offers, how do I fix this??

I think I see whats missing, its the ` on the other side of the 1, but where do I change this at?

dano 05-19-2003 09:29 PM

I know its prolly a stupid questions guys, but I just can't figure it out. I went through myPhp and can not figure out how to fix it.

Any help would really be helpful since I can not do anything with my forums until this is fixed.

Thanks

Reverend 05-19-2003 09:36 PM

First thing you could try is run a repair on the database.
Upload repair.php from the extras folder in the vb zip file into your forum/admin directory.Close your board and then run the following script from your browser address bar:

http://www.yourdomain.com/forum/admin/repair.php?html=1&check=1 (replace with your forum url and if neccessary run the script twice).

If that doesn't fix it,upload a new admin/forum.php file (overwriting the old one).

Note: before doing any of the above backup your database first.

dano 05-19-2003 09:50 PM

Fixed.

I found the problem in the edited forum.php file. Thanks Reverend, I can now get back to work. Thanks a lot! :)

Reverend 05-19-2003 09:59 PM

Quote:

Today at 11:50 PM dano said this in Post #7
Fixed.

I found the problem in the edited forum.php file. Thanks Reverend, I can now get back to work. Thanks a lot! :)

No probs.Glad you got it sorted. ;)


All times are GMT. The time now is 12:01 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.01037 seconds
  • Memory Usage 1,727KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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