eamono
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: “error in your SQL syntax” when using lostpasswordThis is a bug in the code
Take a look at the source for wp-login.php. Look for the SQL statement. (Search for ‘UPDATE’.) The variable afterwards is $wpdb->users. Change this to $tableusers, and all is well. For some reason the class variable is not defined. As near as I can tell, it might have existed in a previous version, and the decision was made to use globals for the table names.Found the bug listing: here
Forum: Everything else WordPress
In reply to: Unable to reset a user’s forgotten passwordIt does occur to me that the recover lost password function may also occur somewhere else in the code, but I ran into this on the login.
Forum: Everything else WordPress
In reply to: Unable to reset a user’s forgotten passwordI had the same problem. As near as I could trace, it’s an undefined variable in the code, that’s supposed to contain the table name, which would be between UPDATE and SET. The SQL statement has dropped the table name. I’m not very familiar with the wordpress code, but it looks like an error when migrating from class variables to globals. Find the SQL query in wp-login.php and replace $wpdb->users with $tableusers and it works fine.
Found the bug listing: here