Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 05-12-2010, 06:58 PM
onezure onezure is offline
 
Join Date: May 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem - Table: vb_post have a problem

Hi! I'm a italian! Excuse me for the languages not a very good.

I'm have a problem for the TABLE vb_post! (vb_ -> is a table imposted to config.php) , the table vb_post have a problem , i'm create a new discussion or reply on the discussion , look a problem:

Database error in vBulletin 4.0.3:

Code:
Invalid SQL:
INSERT INTO vb_post
	(showsignature, allowsmilie, htmlstate, username, userid, title, pagetext, iconid, visible, parentid, threadid, dateline, ipaddress, attach)
VALUES
	(0, 1, 'on_nl2br', '~Privacy', 1, '', 'Ciao', 0, 1, 4237, 1358, 1273694170, 'censured my ip', 0);

MySQL Error   : Unknown column 'htmlstate' in 'field list'
Error Number  : 1054
Request Date  : Wednesday, May 12th 2010 @ 09:56:10 PM
Error Date    : Wednesday, May 12th 2010 @ 09:56:10 PM
Script        : http://www.onezure.info/forum/newreply.php?do=postreply&t=1358
Referrer      : http://www.onezure.info/forum/showthread.php/1358-PC?p=4237
IP Address    : Censured my ip
Username      : ~Privacy
Classname     : vB_Database
MySQL Version : 5.0.90-community
What's the problem? ?_?

Thank's for the reply
Reply With Quote
  #2  
Old 05-12-2010, 10:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like your post table is missing the field htmlstate. This is from mysql-schema.php for v/b4.0.3:

Code:
htmlstate ENUM('off', 'on', 'on_nl2br') NOT NULL DEFAULT 'on_nl2br',
Reply With Quote
  #3  
Old 05-13-2010, 04:42 AM
onezure onezure is offline
 
Join Date: May 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The html state ? Ok...

mmm... I'm a create a new table?
Reply With Quote
  #4  
Old 05-13-2010, 01:22 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by onezure View Post
The html state ? Ok...

mmm... I'm a create a new table?
Nope, you will need to readd that into your existing post table. You can do it with the ALTER TABLE {table name} ADD..... sql query command.
Reply With Quote
  #5  
Old 05-14-2010, 06:32 AM
onezure onezure is offline
 
Join Date: May 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mmmm... ok , the Alter table is a :

Code:
ALTER TABLE {htmlstate ENUM('off', 'on', 'on_nl2br') NOT NULL DEFAULT 'on_nl2br',}
it's ok? :S
Reply With Quote
  #6  
Old 05-14-2010, 01:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you not have phpMyAdmin? I've always found it easier to just add a field that way when it's just a single field like this.
Reply With Quote
  #7  
Old 05-15-2010, 06:25 AM
onezure onezure is offline
 
Join Date: May 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm have a phpmyadmin is a logic xD , in the phpmyadmin what should i do? what can i say?
Reply With Quote
  #8  
Old 05-15-2010, 03:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just go to the table and then click down where it says "Add *blank* fields and I add them there. If you have never done this, I strongly suggest googling adding fields in phpMyAdmin and getting a good idea of what you are going to do. I'd also suggest making a database backup prior to doing anything in your database.
Reply With Quote
  #9  
Old 05-15-2010, 06:02 PM
SBoards SBoards is offline
 
Join Date: Oct 2007
Location: Albany, NY
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If this person is having the same issue as me, that's not going to work. The problem is that the post table just won't update. Wether it's the upgrade script, vB's sql tools or phpmyadmin. This just plain ain't good. lol
Reply With Quote
  #10  
Old 05-15-2010, 11:16 PM
onezure onezure is offline
 
Join Date: May 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And a table that breaks down a bit, I feel what he said Lynne and I say

--------------- Added [DATE]1273971927[/DATE] at [TIME]1273971927[/TIME] ---------------

Excuse me for double post , i'm a resolve the problem , install the new vBulletin! Thank's
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:05 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.08743 seconds
  • Memory Usage 2,241KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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