Topic: Syntax error in admin/forums.php (line 595)
Do you know why I can't edit forums: when I click on mywebsite/admin/forums.php?edit_forum=2, there is an error "Sorry! The page could not be loaded."
pun debug shows:
Syntax error near 'WHERE g.g_id!=1 ORDER BY g.g_id' line 1 (Errno: 1064).
SELECT g.g_id, g.g_title, g.g_read_board, g.g_post_replies, g.g_post_topics, fp.read_forum, fp.post_replies, fp.post_topics FROM forum_groups AS g LEFT JOIN forum_forum_perms AS fp ON g.g_id=fp.group_id AND fp.forum_id= WHERE g.g_id!=1 ORDER BY g.g_id
Error line 595 in /home/mywebsite/admin/forums.php
Apparently, the forum's ID is missing in "AND fp.forum_id=".
I don't understand why it doesn't work. I use PunBB 1.4.4 with PHP Version 5.6.30.
My file is exactly the same as this one: https://github.com/punbb/punbb/blob/mas … forums.php