Cannot log to admin after update
-
Recently, my website was updated to WordPress 5.9.5 and it crashed. There was a message with critical error, so I turned on Debug mode, disabled plugins by renaming the folder and switched to default theme in MySQL db.
However the steps did not helped and I cannot log to admin panel.
When I try to log there, the error appears saying that the user is not existing.However, I checked directly in DB and this user exists (tried both email and nickname). I have even reset the password, but still same result.
In logs I can see the following error:
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 ') ORDER BY wp_posts.post_date DESC LIMIT 0, 10' at line 1 of the WordPress database while executing a query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1 = 1 AND ((wp_posts.post_status = 'publish'))) ORDER BY wp_posts.post_date DESC LIMIT 0, 10 sent by require (''), wp, WP-> main, WP-> query_posts, WP_Query-> query, WP_Query- > get_posts
I can see that there is one “)” but I have no idea where this function is being build and how can I fix it, since I am not an advanced user.
Do you have any ideas how I could fix it?
- The topic ‘Cannot log to admin after update’ is closed to new replies.