PDA

Voir la version complète : Résolu [RESOLU] Problème SQL


NeoItalian
30/11/2007, 11h37
Bonjour,

Dans mon mail, je reçoi souvent cette erreur SQL :

Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE ***_user SET
### Bitfield: ***_user.options ###
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 4, options, options + 4),
options = IF(options & 16, options, options + 16),
options = IF(options & 32, options - 32, options),
options = IF(options & 256, options - 256, options),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 131072, options - 131072, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 64, options - 64, options),
options = IF(options & 128, options - 128, options),
languageid = 0,
autosubscribe = -1,
threadedmode = 0,
timezoneoffset = '4',
showvbcode = 1,
pmpopup = 1,
maxposts = -1,
daysprune = 0,
startofweek = 1,
mgc_cb_params = 'a:7:{s:13:\"mgc_cb_police\";s:1:\"0\";s:13:\"mgc_cb_taille\";i:0;s:14:\"mgc_cb_couleur\";b:0;s:8:\"mgc_cb_b\";i:0;s:8:\"mgc_cb_u\";i:0;s:8:\"mgc_cb_i\";i:0;s:11:\"mgc_cb_show\";i:1;}',
ncode_imageresizer_mode = 'enlarge',
ncode_imageresizer_maxwidth = NULL,
ncode_imageresizer_maxheight = NULL
WHERE userid = 26;

MySQL Error : Champ 'ncode_imageresizer_maxwidth' inconnu dans field list
Error Number : 1054
Date : Friday, November 30th 2007 @ 11:32:01 AM
Script : http://***/profile.php?do=updateoptions (http://street-rap.fr/private/profile.php?do=updateoptions)
Referrer : http://***/profile.php?do=editoptions (http://street-rap.fr/private/profile.php?do=editoptions)
IP Address : ***
Username : ***
Classname : vb_database

Je vous remercie

Red
30/11/2007, 13h33
Et donc tu veux savoir à quoi cela correspond?! OK :

MySQL Error : Champ 'ncode_imageresizer_maxwidth' inconnu dans field list

Tout est marquer, il ne trouve pas ton champ ncode_imageresizer_maxwidth dans ta table SQL donc vérifie quelle soit présente, c'est pour cela que tu ne peux pas mettre a jour cette option

NeoItalian
30/11/2007, 14h44
Non, elle est pas présente, comment l'ajouter/ou et avec quoi comme caractèristique ?

Merci

Dr.Vince
30/11/2007, 14h50
bah le truc c'est que ça sert à rien de l'ajouter si tu n'utilises pas le hack ncode imageresizer.

A mon avis c'est lié à une désinstalle foireuse de ce hack.
Jette un coup d'oeil du côté de tes plugins

NeoItalian
30/11/2007, 15h06
Je l'utilise se hack :)

Voici se que j'ai trouvé dans le .xml :

<installcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL');]]></installcode>
<uninstallcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` DROP `ncode_imageresizer_mode`');]]></uninstallcode>
</code>
<code version="1.0 beta 2">
<installcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` ADD `ncode_imageresizer_maxwidth` SMALLINT UNSIGNED DEFAULT NULL NULL , ADD `ncode_imageresizer_maxheight` SMALLINT UNSIGNED DEFAULT NULL NULL');]]></installcode>
<uninstallcode><![CDATA[$vbulletin->db->query('ALTER TABLE `'.TABLE_PREFIX.'user` DROP `ncode_imageresizer_maxwidth`, DROP `ncode_imageresizer_maxheight`');]]></uninstallcode>

La table "ncode_imageresizer_mode" est présente dans ma BDD mais pas la "ncode_imageresizer_maxwidth" and "ncode_imageresizer_maxheight"

NeoItalian
30/11/2007, 21h00
J'ai reinstaller et ces bon, merci :)

Red
01/12/2007, 10h21
J'allais le dire, réinstalle le ^^

Ombre
01/12/2007, 13h47
Moi j allais te dire que RED allait te le dire :D