Page 1 of 1

My sql error

Posted: 04 Sep 2010, 03:09
by dragoth
i Get this error

Code: Select all

General Error
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 '' at line 3 [1064]

SQL

SELECT forum_id, auth_option_id, auth_role_id, auth_setting FROM phpbb_acl_users WHERE user_id =

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/auth.php
LINE: 814
CALL: dbal_mysqli->sql_query()

FILE: includes/auth.php
LINE: 382
CALL: auth->acl_raw_data_single_user()

FILE: includes/auth.php
LINE: 71
CALL: auth->acl_cache()

FILE: memberlist.php
LINE: 274
CALL: auth->acl()
So i figured it was the memberlist.php

and i cant find the problem. And this error happens when you lick the team link /memberlist.php?mode=leaders

Im not sure what mod made this happen.

memberlist.php Lines 264- 284

Code: Select all

		}
		$db->sql_freeresult($result);
		// Start Ultimate Points
		global $db, $ultimate_points, $points_config, $points_values;

		$locked = $blocked = false;

		if ( $config['points_enable'] )
		{
			$check_auth = new auth();
			$check_auth->acl($member);
			$locked = $check_auth->acl_get('u_use_points');
		}

		if ( $points_config['bank_enable'] && $config['points_enable'] )
		{
			$check_auth = new auth();
			$check_auth->acl($member);
			$blocked = $check_auth->acl_get('u_use_bank');
		}
were using 3.0.7 pl

Re: My sql error

Posted: 04 Sep 2010, 03:18
by Inner Circle
Right here

Code: Select all

// Start Ultimate Points
Check the edits of the Ultimate Points Mod you made. It seems you made an error