Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by
edited by

Hi , how to deny users to use space in username when register in site?

I add this code at qa-include/plugins/qa-filter-basic.php:51

if (preg_match('/\\s/', $handle)) {

    return qa_lang_sub('users/handle_has_bad', 'space');


but an error insert in error_log:

Question2Answer fatal error: Could not create a valid and unique handle from XXXXXX

Q2A version: 1.8

Please log in or register to answer this question.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.