You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysqli_affected_rows() expects parameter 1 to be mysqli, boolean given
#0: smf_error_handler()
Called from unknown on line -1 #1: mysqli_affected_rows()
Called from /Sources/Subs-Db-mysql.php on line 513 #2: smf_db_affected_rows()
Called from /Sources/Session.php on line 242 #3: sessionGC()
Called from unknown on line -1 #4: session_start()
Called from /Sources/Session.php on line 81 #5: loadSession()
Called from /index.php on line 184
This usually means there was a connection error. So connect returns false instead of a resource, and when you try to use that result in a query, this message pops up.
You need to figure out why you couldn't connect...
BrickOzp
added a commit
to BrickOzp/SMF2.1
that referenced
this issue
Dec 7, 2021
db_affected_rows expects a connection object.
Remove parameters of type query result.
FixesSimpleMachines#7176
Signed-off-by: Oscar Rydhé <oscar.rydhe@gmail.com>
Description
Error found in error log
mysqli_affected_rows() expects parameter 1 to be mysqli, boolean given
#0: smf_error_handler()
Called from unknown on line -1
#1: mysqli_affected_rows()
Called from /Sources/Subs-Db-mysql.php on line 513
#2: smf_db_affected_rows()
Called from /Sources/Session.php on line 242
#3: sessionGC()
Called from unknown on line -1
#4: session_start()
Called from /Sources/Session.php on line 81
#5: loadSession()
Called from /index.php on line 184
Steps to reproduce
Environment (complete as necessary)
Additional information/references
The text was updated successfully, but these errors were encountered: