I started getting error emails some days ago:
I checked as guest and the profiles indeed are inaccessible.
I remember making changes to the usernote permissions recently.
I turned the usernote permissions off for everybody.
But I did not touch the permissions for unregistered users. And they were set to off anyway.
I have now wrapped quotes around the userid in the query:
That should fix the problem for now.
A couple of questions:
What could cause the userid to be empty?
Why are the usernotes queried anyway, if they are turned off?
Now that I have fixed the usernote error, I receive these error emails:
I don't get it. What could cause the userid to be lost?
Database error in vBulletin 3.8.7:
Invalid SQL:
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM vb_usernote AS usernote
WHERE userid =;
MySQL Error : 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 '' at line 3
Error Number : 1064
Request Date : Sunday, April 10th 2011 @ 11:11:56 PM
Error Date : Sunday, April 10th 2011 @ 11:11:57 PM
Script : /forum/member.php?u=75963
Referrer :
IP Address : XX.XX.XX.XX
Username : Unregistered
Classname : vB_Database
MySQL Version :
Invalid SQL:
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM vb_usernote AS usernote
WHERE userid =;
MySQL Error : 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 '' at line 3
Error Number : 1064
Request Date : Sunday, April 10th 2011 @ 11:11:56 PM
Error Date : Sunday, April 10th 2011 @ 11:11:57 PM
Script : /forum/member.php?u=75963
Referrer :
IP Address : XX.XX.XX.XX
Username : Unregistered
Classname : vB_Database
MySQL Version :
I remember making changes to the usernote permissions recently.
I turned the usernote permissions off for everybody.
But I did not touch the permissions for unregistered users. And they were set to off anyway.
I have now wrapped quotes around the userid in the query:
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM vb_usernote AS usernote
WHERE userid = '';
FROM vb_usernote AS usernote
WHERE userid = '';
A couple of questions:
What could cause the userid to be empty?
Why are the usernotes queried anyway, if they are turned off?
Now that I have fixed the usernote error, I receive these error emails:
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, profilevisitor.visible, user.infractiongroupid
FROM vb_profilevisitor AS profilevisitor
INNER JOIN vb_user AS user ON (user.userid = profilevisitor.visitorid)
WHERE profilevisitor.userid =
AND (visible = 1 OR profilevisitor.visitorid = 0)
ORDER BY profilevisitor.dateline DESC
LIMIT 10;
MySQL Error : 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 'AND (visible = 1 OR profilevisitor.visitorid = 0)
Script : /forum/member.php?u=80491
FROM vb_profilevisitor AS profilevisitor
INNER JOIN vb_user AS user ON (user.userid = profilevisitor.visitorid)
WHERE profilevisitor.userid =
AND (visible = 1 OR profilevisitor.visitorid = 0)
ORDER BY profilevisitor.dateline DESC
LIMIT 10;
MySQL Error : 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 'AND (visible = 1 OR profilevisitor.visitorid = 0)
Script : /forum/member.php?u=80491
Comment