Error while editing a location
-
If any of the fields for location has symbol ‘%’, then $wpdb->prepare(…) in processLocationData.php, row 42 will return false.
And location will not be saved.Had to replace that row with:
$wpdb->query($wpdb->prepare("UPDATE ".SL_TABLE." SET ".str_replace("%", "%%", $field_value_str)." WHERE sl_id='%d'", $_GET['edit']));This happens because prepare uses vsprintf() functions. And vsprintf detects more percent symbols than params in the second argument. And it returns false.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Error while editing a location’ is closed to new replies.