Country field doesn't show in Register form

This topic contains 9 replies, has 2 voices, and was last updated by  Patrik 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #4553

    hmdadou
    Buyer
    Post count: 9

    Hi there I have just started using this plugin I love itafter using many before, unfortunately the country field doesn’t show in register form with an error in the console [Uncaught TypeError: jQuery(…).countrySelect is not a function], i have seen a post having the same problem but unfortunately no solution.

    Thank you for your assistance

    #4554

    Patrik
    Moderator
    Post count: 1971

    Hi,

    This could be due to conflicts. Can you please provide us the site and admin details in private reply so that we can do troubleshooting? We may need FTP details as well if we need to do more troubleshooting from code.

    Regards,
    Patrik

    #4556

    hmdadou
    Buyer
    Post count: 9
    This reply has been marked as private.
    #4563

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    #4569

    hmdadou
    Buyer
    Post count: 9
    This reply has been marked as private.
    #4570

    hmdadou
    Buyer
    Post count: 9

    Hi Patrik
    I’ve just disabled all plugins and reactivated one by one it turns out the litespeed cache is the culprit.
    Now I will try to find out how I could make it compatible with it as the litespeed plugin is vital for the whole site otherwise I could scrap it.

    I really appreciate your assistance and help
    this response will not be private it might help someone who has the same problem.
    Best regards
    HM Dadou

    #4572

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Good to know we found the culprit. There can be settings in the cache plugin to exclude the JS files from caching as many cache plugins provide such settings so you can exclude some files from caching. Let me know if you need any further help from our side.

    Regards,
    Patrik

    #4573

    hmdadou
    Buyer
    Post count: 9

    Good news now it’s working in the litespeed cache settings panel in the tuning tab[6] in the text box titled js excludes i’ve added these and worked fine.
    /wp-content/plugins/userswp/assets/js/countrySelect.js
    /wp-content/plugins/userswp/assets/js/countrySelect.min.js
    /wp-content/plugins/userswp/assets/js/users-wp.js
    /wp-content/plugins/userswp/assets/js/users-wp.min.js

    ideally userswp plugin should add an attribute to the script link as suggested by litespeed plugin as follow.
    Elements with attribute data-no-optimize=”1″ in HTML code will be excluded.
    Hope this will help someone and great thanks to patrik and userswp.io

    #4575

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Generally, we do not recommend exclude our scripts from cache plugins if everything works fine but in case it’s not working or causing issues then only we recommend to exclude it from the caching plugins. So we could not put data-no-optimize=1 in our core plugin for all but suggest to exclude only if required for specific sites.

    Regards,
    Patrik

    #4576

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket