Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 05:33 pm EST
Geeklog Forums
Error when e-mailing stories as anonymous
rv8
I updated from GL 1.3.6 to 1.3.7 today, and an old problem returned. Anonymous users can't e-mail stories.
If an anonymous user tries to e-mail a story, he sees "1064: You have an error in your SQL syntax near '' at line 1" in the web page. The error.log shows "1064: You have an error in your SQL syntax near '' at line 1 SQL in question: SELECT email FROM gl_users WHERE uid =".
I had the same problem with GL 1.3.6, and I made a change to profiles.php as discussed at this story. However, with GL 1.3.7 I get the exact same errors with the unmodified profiles.php and with the modified profiles.php. I'm stumped. Can anyone shed any light here?
Kevin Horton
rv8
Kevin Horton
Anonymous
rv8
Kevin Horton
rv8
// debug code added by KWH
$errorstring = "User name is ";
$errorstring .= $_USER['username'];
COM_errorLOG($errorstring);
$errorstring2 = "User ID is ";
$errorstring2 .= $_USER['uid'];
COM_errorLOG($errorstring2);
// end of debug code
01/01/03 19:24:05 - User name is Anonymous
01/01/03 19:24:05 - User ID is
01/01/03 19:24:05 - 1064: You have an error in your SQL syntax near '' at line 1 SQL in question: SELECT email FROM gl_users WHERE uid =
Kevin Horton
rv8
Kevin Horton
Anonymous
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content