Boris Grishenko · 2024-03-06 15:19
I got this error message when attempting to post from Lainchan's servers on 05/03/2024:
"The server took too long to submit your post. Your post was probably still submitted. If it wasn't, we might be experiencing issues right now -- please try your post again later. Error information:
"Caught fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /var/www/html/inc/filters.php:120Stack trace:#0 /var/www/html/inc/filters.php(120): PDOStatement->execute()#1 /var/www/html/inc/filters.php(210): Filter->match()#2 /var/www/html/inc/filters.php(272): Filter->check()#3 /var/www/html/post.php(911): do_filters()#4 /var/www/html/post.php(1439): handle_post()#5 {main} thrown in /var/www/html/inc/filters.php at line 120"
This happened on /r/ after a mod closed a thread and I responded on the cp2 spam.
Just what on Earth was this? Since it kept appearing, I had a question of "is this error fixable?" and rejected posting my issue here with the same error. The GitHub repo had not addressed it.
Appleman1234 · 2024-03-06 17:08
>>12451
This is fixed, it was an issue with an additional filter that has been added to address the cp2 spam you mentioned. Specifically using prepared statements with the placeholder surrounded by single quotes , causes execute to ignore the placeholder.
Erik Johansson · 2024-03-07 09:09
>>12452
Thanks! What was the added spambot filter?
SHODAN · 2025-01-11 14:16
Could anybody fix this error I keep getting?
"Caught fatal error: Uncaught PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'expires' at row 1 in /var/www/html/inc/bans.php:300Stack trace:#0 /var/www/html/inc/bans.php(300): PDOStatement->execute()#1 /var/www/html/inc/filters.php(189): Bans::new_ban()#2 /var/www/html/inc/filters.php(276): Filter->action()#3 /var/www/html/post.php(911): do_filters()#4 /var/www/html/post.php(1439): handle_post()#5 {main} thrown in /var/www/html/inc/bans.php at line 300"
Whenever I tried replying to https://lainchan.org/q/res/12273.html#13060 I got this error message thinking that Lainchan was down; however the error happened on this specific thread. Was I even derezzed when I got this error message, or is this something else?
Now I can't report any CP spam anymore because this was one of my threads and it was something that we cracked down on at some point. Very, very odd problem, had not seen this in any other thread.
Jet Black · 2026-04-21 10:20
just going to bump this since there was a note i was going to add