![]() |
um BIG ISSUE
i edited this post so erwins post doesnt make sence...
for some reason wehn someone is not logged in the forums, they cant log in and they get this error : Quote:
|
Reinstall the "Element" hack or whatever it is that uses the column element in your database.
|
ignore the post above by erwin,
also when u click on the members button or look for users in admin page, it only shows 2 people |
Mmm... something is wrong with the query that checks for total number PMs in your index.php. Go and compare the code between your index.php and an original unhacked index.php.
|
uh...if i do compare... i wont know what to look for
|
The line is in your error email -
SELECT COUNT(*) AS messages FROM privatemessage WHERE userid= Just look for that line, and then compare that whole piece of code with the original. Chances are there is something missing or added that is causing a query error. |
ok, looked at clean and hacked. there were 3 lines with that in it. i compared and they were all the same
|
it seems that the userid variable that you're using isn't correct... can you show us the line of coding thats on the line erroring out? regards...
g-force2k2 |
what line is that? in index.php?
this is the line erwin was talking about PHP Code:
|
did i give the right info?
|
Safest thing is to compare the original unhacked index.php and the hacked one using Beyond Compare or Araxis Merge - one of the variables in those 3 lines of code you posted is not being used properly.
|
uh....
index.php on old forum PHP Code:
PHP Code:
PHP Code:
|
No, the problem is obviously not in the PM queries, but in another part of your index. I am saying to compare the WHOLE index.php because one of the user variables are not being checked properly.
|
hmmm, is there a way i can contact u on some instant messenger? this is all confusing
|
Try replacing what you have there with this:
PHP Code:
|
I'm at work. :) So no. Compare the index.php with an unhacked one, and you will find the missing or erroneous code.
|
damn, i dont know where to start. index.php is a kinda big file to look word for word, plus with the hacksinstalled it will be harder
|
DarkDraco07, replace the code I gave you and see if that does anything.
|
1sec
|
replace the
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers"); $newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers"); $unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers"); right? |
Yes.
|
nope, people cant log in and i still cant log out
check it out www.darknemesis.com/forums look at the members page and look at total members on forum home |
just to make sure, for the members i need to backup which querys?
|
How many members do you actually have? The code I gave you is for private messages. It shouldn't have anything to do with what seems to be happening. Somewhere in your index.php you have another problem. Either with a hack you installed or something. Like Erwin said, the only way to find out what it is is to compare it or start over with a fresh index.php and see if that fixes it.
|
Yup. It has nothing to do with PM - the PM query is trying to find your bbuserinfo[userid] and other user information which is not being checked by index.php properly, hence your login problems.
|
NOOOO :( i hate vb!!! ahhhhh
is anyone willing to check my index.php file for me cuz...i cant seem to find a wrong variable. i searched line by line by copy/pasting in find and i cant seem to see whats wrong!! and how come in the members page it has me and a random person on there |
i guess thats a no...
|
i took a fresh index.php file and reinstalled EVERY hack that needed index.php. still have same problem.
for more info aobut my problem its like this... if someone is logged out and logs in, it will show them as logged in and a guest at same time but they are not logged in. if you are logged in (only me) and try to log out it shows u as a guest and as logged in at same time but you are logged in |
All times are GMT. The time now is 07:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|