PDA

Voir la version complète : ERREUR : base de donnes


Chancelier
27/05/2007, 01h05
quand je clique sur un membre pour voir son profile


Database error in vBulletin 3.6.5:

Invalid SQL:

SELECT pf.profilefieldid, pf.profilefieldcategoryid, pf.required, pf.type, pf.data, pf.def, pf.height
FROM profilefield AS pf
LEFT JOIN profilefieldcategory AS pfc ON(pfc.profilefieldcategoryid = pf.profilefieldcategoryid)
WHERE pf.form = 0
ORDER BY pfc.displayorder, pf.displayorder;

MySQL Error : Table 'twensan_vb.profilefieldcategory' doesn't exist
Error Number : 1146
Date : Saturday, May 26th 2007 @ 07:04:26 PM
Script : http://www.twensa.net/member.php?u=5
Referrer : http://www.twensa.net/index.php
IP Address : 196.203.196.167
Username : Chancelier
Classname : vb_database

MtoR
27/05/2007, 10h32
As-tu installer un hack qui rajouter des catégories de champs dans le profil dernièremenht ?.

Chancelier
27/05/2007, 20h16
non , mais couleur de pseudos oui ,

Chancelier
27/05/2007, 20h17
je croit car certains fichiers ont été besoin de modification pour installer le hack .
modification faite en sucess
et quand jai r'uploader le vb , tout a été remplacer .

LtD
19/06/2007, 20h09
Tu as la réponse ici : http://www.vbulletin.com/forum/showthread.php?p=1363917

Si ta pas compris jte fais le résumé ci dessous...

Dans ta base de donnée tu rajoutes :

CREATE TABLE `profilefieldcategory` (
`profilefieldcategoryid` smallint(5) unsigned NOT NULL auto_increment,
`displayorder` smallint(6) NOT NULL default '0',
PRIMARY KEY (`profilefieldcategoryid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

ALTER TABLE profilefield ADD profilefieldcategoryid SMALLINT UNSIGNED NOT NULL DEFAULT '0'Et si tu as une erreur de ce type :
#1064 - 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 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=1' at line 30Utilise plustot :

CREATE TABLE `profilefieldcategory` (
`profilefieldcategoryid` smallint(5) unsigned NOT NULL auto_increment,
`displayorder` smallint(6) NOT NULL default '0',
PRIMARY KEY (`profilefieldcategoryid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

ALTER TABLE profilefield ADD profilefieldcategoryid SMALLINT UNSIGNED NOT NULL DEFAULT '0'

Voila :)