[DEV] jQ User Map api3 v.0.0.1
Verfasst: 04.06.2012 23:59
Habe die Map bei mir im Forum verbaut und nutze sie nun auch schon einige Monate (bisher ohne Probleme)...
Seit heute bekomme ich folgende Fehlermeldung wenn ich z.B. die Adresse ändern möchte...
[quote]Allgemeiner Fehler
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 ' user_map_longitude = , user_map_location = '42107_Wuppertal' WHERE user_id =' at line 2 [1064]
SQL
UPDATE phpbb_users SET user_map_latitude = , user_map_longitude = , user_map_location = '42107_Wuppertal' WHERE user_id = 2
BACKTRACE
FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()
FILE: [ROOT]/includes/functions_user_map.php
LINE: 177
CALL: dbal_mysqli->sql_query()
FILE: [ROOT]/includes/ucp/ucp_profile.php
LINE: 380
CALL: include('[ROOT]/includes/functions_user_map.php')
FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: ucp_profile->main()
FILE: [ROOT]/ucp.php
LINE: 333
CALL: p_master->load_active()
Stehe diesbezüglich momentan etwas auf dem Schlauch....
Kann mir da einer sagen wo ich ansetzen bzw. suchen muss (um den Fehler zu beseitigen) ?
PS: Hier mal der Auszug aus der Datei "[ROOT]/includes/functions_user_map.php" (ich vermute hier das Problem, da die Längen und Breitenangaben in der Syntax fehlen...
Seit heute bekomme ich folgende Fehlermeldung wenn ich z.B. die Adresse ändern möchte...
[quote]Allgemeiner Fehler
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 ' user_map_longitude = , user_map_location = '42107_Wuppertal' WHERE user_id =' at line 2 [1064]
SQL
UPDATE phpbb_users SET user_map_latitude = , user_map_longitude = , user_map_location = '42107_Wuppertal' WHERE user_id = 2
BACKTRACE
FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()
FILE: [ROOT]/includes/functions_user_map.php
LINE: 177
CALL: dbal_mysqli->sql_query()
FILE: [ROOT]/includes/ucp/ucp_profile.php
LINE: 380
CALL: include('[ROOT]/includes/functions_user_map.php')
FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: ucp_profile->main()
FILE: [ROOT]/ucp.php
LINE: 333
CALL: p_master->load_active()
Stehe diesbezüglich momentan etwas auf dem Schlauch....
Kann mir da einer sagen wo ich ansetzen bzw. suchen muss (um den Fehler zu beseitigen) ?
PS: Hier mal der Auszug aus der Datei "[ROOT]/includes/functions_user_map.php" (ich vermute hier das Problem, da die Längen und Breitenangaben in der Syntax fehlen...
Code: Alles auswählen
173: // update table
174: $sql = 'UPDATE ' . USERS_TABLE . "
175: SET user_map_latitude = $lat_map, user_map_longitude = $long_map, user_map_location = '" . $db->sql_escape($profile_fields_town) . "'
176: WHERE user_id = " . (int) $user->data['user_id'];
177: $result = $db->sql_query($sql);