Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1892

[3.3.x] Support Forum • [split from] MYSQL groups error PLEASE HELP!

$
0
0
I have the same problem.
phpBB 3.3.12

I am migrating our forum from one server to another.

Database.
Old server: MariaDB 10.3.35-MariaDB
New server: MySQL 8.0.36 (mysql-8.0.36-1.el9_3.src.rpm)

backup taken:
mysqldump -R --triggers -h localhost -uroot -p*** --databases OurDB --result-file=OurDB.sql


Web Server on both servers is NGINX.
Forum files TARed and copied and placed to the same folder structure.


Yet, when I try to open forum on the new server, I receive:
SQL ERROR [ mysqli ]

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 'groups g ON (m.group_id = g.group_id) WHERE m.display_on_index = 1' at line 1 [1064]
By grep I found, that "m.display_on_index = 1" appears only in the includes/functions_display.php in the portion

Code:

        $sql_array = array(                'SELECT'        => 'm.*, u.user_colour, g.group_colour, g.group_type',                'FROM'          => array(                        MODERATOR_CACHE_TABLE   => 'm',                ),                'LEFT_JOIN'     => array(                        array(                                'FROM'  => array(USERS_TABLE => 'u'),                                'ON'    => 'm.user_id = u.user_id',                        ),                        array(                                'FROM'  => array(GROUPS_TABLE => 'g'),                                'ON'    => 'm.group_id = g.group_id',                        ),                ),                'WHERE'         => 'm.display_on_index = 1',        );        /** @var \phpbb\group\helper $group_helper */        $group_helper = $phpbb_container->get('group_helper');        // We query every forum here because for caching we should not have any parameter.        $sql = $db->sql_build_query('SELECT', $sql_array);        $result = $db->sql_query($sql, 3600);
Any ideas, guys?

Statistics: Posted by Vaga — Wed Jan 01, 2025 9:35 pm



Viewing all articles
Browse latest Browse all 1892

Trending Articles