• Resolved vispr

    (@vispr)


    Hello,

    I am using UM for a long time now and the forms are just a total mess! They suddenly stop working from one day to the next on a regular basis. The records cannot be altered, edited or saved for no apparent reasons, The image cannot be uploaded and so on.

    Right now, I have Code Fields that are set to accept any values because the field insisted on alphanumeric values when it was set to “alphanumeric values” and actually received “Alphanumeric Values.” Even now, after setting it to accept any value, it still insists on “Alphanumeric” and will not accept a new code during registration.

    And existing users that want to change their image cannot upload a new one.

    I am not sure why this keeps happening over and over again and it′s super annoying! Please help to fix your forms for once.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • @vispr

    Before UM 2.8.3 no validation at all for alphanumeric fields.

    https://github.com/ultimatemember/ultimatemember/issues/1458

    Current code for alphanumeric fields can be improved.

    You can try to replace current code
    '/^[\p{L}0-9\s]+$/u'

    with
    '/^[\p{L}\p{N}_-]+$/u'

    in …/plugins/ultimate-member/includes/core/um-actions-form.php line 992

    if ( ! preg_match( '/^[\p{L}\p{N}_-]+$/u', str_replace( ' ', '', $submitted_data[ $key ] ) ) ) {

    Thread Starter vispr

    (@vispr)

    Thanks, but I am not going to touch the code. This will be removed with the next update anyway.

    The thing here is, that I am using the latest version of UM AND the field is set to NO validation, so it should accept anything someone inserts! But it does not.

    Anyone any idea why this happens? As well as why the image change upload does not work for existing users?

    @vispr

    If you update the code and can verify it’s working, I will make a bug report with reference to this thread.

    Thread Starter vispr

    (@vispr)

    Hello, sorry, but I am no coder, I am not touching this. I will wait for an update, as this seems to be a common issue right now that will not work for anyone else as well.

    Also it looks like your new string is missing 0-9!?

    @vispr

    No, it’s including digits and also _-

    \p{L} matches a single code point in the category “letter”.
    \p{N} matches any kind of numeric character.

    Reference https://www.regular-expressions.info/unicode.html#prop

    Plugin Support andrewshu

    (@andrewshu)

    Hi @vispr

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Bug Report: Forms not working correctly’ is closed to new replies.