PDA

View Full Version : cant edit users profile in cp.


Brad
07-17-2002, 09:57 PM
i get this:


Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: SELECT userid
FROM user
WHERE username='Goolancer IIDX'
AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4

mysql error number: 1064

Date: Wednesday 17th of July 2002 06:52:55 PM
Script: http://www.kousetsu.net/newforum/admin/user.php
Referer: http://www.kousetsu.net/mewforum/admin/user.php?action=edit&userid=54

scsa20
07-17-2002, 10:28 PM
Quoted from another post I posted recently, should work with your problem cuz the guy I helped had that same problem

here, try this, do a search for "SELECT userid" tell you come to the second "SELECT userid" (it should get to the one that drops down)

replace SELECT userid down to AND userid <> with:


SELECT userid
FROM user
WHERE username='".addslashes(htmlspecialchars($ausername))."'
AND userid <> $userid")) {


plus, before replaceing, you should check to make sure the code is the same of above and if not, then replace it with that. hope this works ;)

Steve Machol
07-17-2002, 10:45 PM
Also make sure you are using the user.php file from 2.2.6. Reupload it and overwrite the one on the system.

Brad
07-19-2002, 07:20 AM
re-uploaded a clean file from the 2.2.6 final zip, the problem is still their.

Chris M
07-24-2002, 09:19 PM
I am getting this problem also...

Did you manage to fix it Anime-loo?

Satan

Brad
07-25-2002, 04:40 AM
nope

Dean C
07-25-2002, 01:31 PM
search for the code in the original php file and just replace that bit of code into your current user.php file... thats what i did :D

DrkFusion
07-25-2002, 06:00 PM
Try running repair.php or something, if Mists suggestion didn't work.

Drk