• Resolved simbian

    (@simbian)


    On the administration page im not unable to edit an existing form, dragging fields, delete them, add new ones.
    Im using latest WordPress 5.9 and latest plugin version.
    I tried both with Firefox and Chrome.
    Watching from browser console i see this error:

    Uncaught TypeError: c(...).attr(...) is undefined
        manage_draggable_users_fields https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        each jQuery
        manage_draggable_users_fields https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        single_row https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        init https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        ur_form_builder https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        jQuery 2
        ur_form_builder https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        init_form_builder https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        init https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        <anonymous> https://theredlips.digitalking.it/wp-content/plugins/user-registration/assets/js/admin/form-builder.min.js?ver=2.1.3:1
        jQuery 13

    I have also tried making a new form but still there are errors.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @simbian,

    We have tested the mentioned issue on our testing environment with the latest version of WordPress and the user registration plugin, but we are unable to replicate the issue. We are able to edit all the existing forms that we have created before.

    It can be a conflict, so we suggest you check this documentation https://docs.wpeverest.com/user-registration/docs/how-to-check-plugin-theme-conflict/ and follow the instructions kindly.

    Regards!

    Thread Starter simbian

    (@simbian)

    Ok i finally found the culprit, seems that User Submitted Posts plugin breaks the admin functionalities of User Registration.
    After i disabled it then all works ok in User Registration.
    I will open a new thread in User Submitted Posts support to let the plugin author know about this problem.

    Thanks for your support.

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @simbian,

    Glad to know that the issue is resolved. ​If you have a moment to spare, we would appreciate your review of our plugin. Please click on this link https://ww.wp.xz.cn/support/plugin/user-registration/reviews and share your thoughts about our team and our plugin. We would love to hear from you.

    Thanks!

    Thread Starter simbian

    (@simbian)

    Hi @shresthauzwal,
    the issue is resolved but only with this workaround, it’s a bit annoying that i have to disable a plugin because there is a conflict.
    By User Submitted Posts the plugin dev said the errors i posted seems related to User Registration.

    https://ww.wp.xz.cn/support/topic/usp-breaks-admin-functionalities-of-user-registration-plugin/#post-15357254

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @simbian,

    Thank you for writing back,

    User Submitted Posts plugin have initiated a register_setting in admin_init action hook
    i.e., in plugins/user-submitted-posts/library/plugin-settings.php line number 24.

    If we remove the line, then our form works perfectly. The reason for this is they have removed the data-field-id attribute from our form fields, so our form builder has broken. Could you please contact USP support with these details?

    Regards!

    Thread Starter simbian

    (@simbian)

    Yes sure, i will keep you informed!

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @simbian,

    Sure, once the issue is resolved, you can close this ticket as well.

    Cheers!

    @shresthauzwal thanks for your help. You mention this:

    “User Submitted Posts plugin have initiated a register_setting in admin_init action hook. […] If we remove the line, then our form works perfectly. The reason for this is they have removed the data-field-id attribute from our form fields..”

    I see where USP registers the plugin settings hooked into admin_init. But I’m not sure about this:

    “they have removed the data-field-id attribute from our form fields”

    I am looking at the code you mention where the settings are registered, but I am not seeing anything anywhere that removes any “data-field-id attribute”. Can you let me know how registering settings somehow removes attributes?

    Thanks again for your help.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Uncaught TypeError: c(…).attr(…) is undefined’ is closed to new replies.