PDA

View Full Version : Problem - Table: vb_post have a problem


onezure
05-12-2010, 06:58 PM
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:

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 :)

Lynne
05-12-2010, 10:24 PM
It looks like your post table is missing the field htmlstate. This is from mysql-schema.php for v/b4.0.3:

htmlstate ENUM('off', 'on', 'on_nl2br') NOT NULL DEFAULT 'on_nl2br',

onezure
05-13-2010, 04:42 AM
The html state ? Ok...

mmm... I'm a create a new table?

borbole
05-13-2010, 01:22 PM
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.

onezure
05-14-2010, 06:32 AM
mmmm... ok , the Alter table is a :

ALTER TABLE {htmlstate ENUM('off', 'on', 'on_nl2br') NOT NULL DEFAULT 'on_nl2br',}

it's ok? :S

Lynne
05-14-2010, 01:40 PM
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.

onezure
05-15-2010, 06:25 AM
I'm have a phpmyadmin is a logic xD , in the phpmyadmin what should i do? what can i say?

Lynne
05-15-2010, 03:17 PM
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.

SBoards
05-15-2010, 06:02 PM
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

onezure
05-15-2010, 11:16 PM
And a table that breaks down a bit, I feel what he said Lynne and I say

--------------- Added 1273971927 at 1273971927 ---------------

Excuse me for double post , i'm a resolve the problem , install the new vBulletin! Thank's ;)