Codoforum related discussions
Fatal error after posting my last thread in the forum

Get an fatel error after clicking on "post" of my last thread in this forum:
http://codologic.com/forum/index.php?u=/topic/5673/possibility-to-toggle-show-hide-subforums-on-the-frontsite

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-20' at line 1' in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php:52 Stack trace: #0 /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php(52): PDO->query('SELECT u.id, r....') #1 /usr/share/nginx/html/forum/sys/Controller/Ajax/forum/topic.php(83): CODOF\Forum\Post->get_posts(5673, -1) #2 /usr/share/nginx/html/forum/sys/Controller/forum.php(354): Controller\Ajax\forum\topic->get_posts(5673, -1, Array) #3 /usr/share/nginx/html/forum/routes.php(812): Controller\forum->topic(5673, 'hide) subforums...') #4 [internal function]: {closure}('5673', 'Possibility to ...', 'hide) subforums...') #5 /usr/share/nginx/html/forum/sys/Ext/limonade/limonade.php(429): call_user_func_array(Object(Closure), Array) #6 /usr/share/nginx/html/forum/sys/CODOF/Access/Request.php(96): run() #7 /us in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php on line 52
Get an fatel error after clicking on "post" of my last thread in this forum: http://codologic.com/forum/index.php?u=/topic/5673/possibility-to-toggle-show-hide-subforums-on-the-frontsite ```` Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-20' at line 1' in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php:52 Stack trace: #0 /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php(52): PDO->query('SELECT u.id, r....') #1 /usr/share/nginx/html/forum/sys/Controller/Ajax/forum/topic.php(83): CODOF\Forum\Post->get_posts(5673, -1) #2 /usr/share/nginx/html/forum/sys/Controller/forum.php(354): Controller\Ajax\forum\topic->get_posts(5673, -1, Array) #3 /usr/share/nginx/html/forum/routes.php(812): Controller\forum->topic(5673, 'hide) subforums...') #4 [internal function]: {closure}('5673', 'Possibility to ...', 'hide) subforums...') #5 /usr/share/nginx/html/forum/sys/Ext/limonade/limonade.php(429): call_user_func_array(Object(Closure), Array) #6 /usr/share/nginx/html/forum/sys/CODOF/Access/Request.php(96): run() #7 /us in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php on line 52 ````
edited Dec 3 '15 at 5:48 pm

Yesterday 2 times. Today I didn't started any topic.

Yesterday 2 times. Today I didn't started any topic.
edited Dec 4 '15 at 6:16 pm

Created today some threads but no fatal error was shown. Looks like solved.

Created today some threads but no fatal error was shown. Looks like solved.

One of my user says he got the same error today >>>
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-20' at line 1' in .........

One of my user says he got the same error today >>> Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-20' at line 1' in .........

We have added a condition to prevent this anomaly.
So, you shouldn't get this error in the next version.

We have added a condition to prevent this anomaly. So, you shouldn't get this error in the next version.

Did it happen only once ?

Looks like he is back. Got this after posting the Load more bar/button Topic here in this forum.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-20' at line 1' in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php:52 Stack trace: #0 /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php(52): PDO->query('SELECT u.id, r....') #1 /usr/share/nginx/html/forum/sys/Controller/Ajax/forum/topic.php(83): CODOF\Forum\Post->get_posts(6641, -1) #2 /usr/share/nginx/html/forum/sys/Controller/forum.php(354): Controller\Ajax\forum\topic->get_posts(6641, -1, Array) #3 /usr/share/nginx/html/forum/routes.php(812): Controller\forum->topic(6641, 'button') #4 [internal function]: {closure}('6641', 'Load more bar', 'button') #5 /usr/share/nginx/html/forum/sys/Ext/limonade/limonade.php(429): call_user_func_array(Object(Closure), Array) #6 /usr/share/nginx/html/forum/sys/CODOF/Access/Request.php(96): run() #7 /usr/share/nginx/html/forum/rout in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php on line 52
>Did it happen only once ? Looks like he is back. Got this after posting the Load more bar/button Topic here in this forum. ```` Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-20' at line 1' in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php:52 Stack trace: #0 /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php(52): PDO->query('SELECT u.id, r....') #1 /usr/share/nginx/html/forum/sys/Controller/Ajax/forum/topic.php(83): CODOF\Forum\Post->get_posts(6641, -1) #2 /usr/share/nginx/html/forum/sys/Controller/forum.php(354): Controller\Ajax\forum\topic->get_posts(6641, -1, Array) #3 /usr/share/nginx/html/forum/routes.php(812): Controller\forum->topic(6641, 'button') #4 [internal function]: {closure}('6641', 'Load more bar', 'button') #5 /usr/share/nginx/html/forum/sys/Ext/limonade/limonade.php(429): call_user_func_array(Object(Closure), Array) #6 /usr/share/nginx/html/forum/sys/CODOF/Access/Request.php(96): run() #7 /usr/share/nginx/html/forum/rout in /usr/share/nginx/html/forum/sys/CODOF/Forum/Post.php on line 52 ````
282
9
3
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft