Hi,
When a user composes a private message but does not add a recipient he gets a popup “Database error”. The message is not saved. The window is closed and returns to the list of PM.
Also this generates an SQL error in the server logs:
Database error. WordPress You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘a xc3xa9txc3xa9 selectionnxc3xa9″;}’ WHERE id=2250651′ at line 1 pour la requxc3xaate UPDATE wp_tpf_sftrack SET notification = ‘a:2:{i:0;i:1;i:1;s:41:”Aucun destinataire n’a xc3xa9txc3xa9 selectionnxc3xa9″;}’ WHERE id=2250651 faite par do_action(‘wp_ajax_pm-post’), WP_Hook->do_action, WP_Hook->apply_filters, sp_pm_ajax_post, require_once(‘/sp-resources/forum-plugins/private-messaging/ajax/sp-pm-ajax-post.php‘), sp_pm_save_message, spcNotifications->message, spcDB->update, spcDB->execute, QM_DB->query,
Obviously this is not good: I would rather the user be warned that he forgot a recipient and that he can simply add the recipient and send his PM. As is today he loses his PM.
Thanks and good luck