• Resolved rb285

    (@rb285)


    Dear all,
    During the registration process, some users have to upload a pdf or jpg for identification. The upload itself is working, but when the user clicks on “save” or “cancel” afterwards, nothing happens and a Javascript error occur:

    um-responsive.min.js?ver=2.8.4:1 Uncaught TypeError: jQuery(…).cropper is not a function
    at um-responsive.min.js?ver=2.8.4:1:163
    at dispatch (jquery-3.7.1.min.js?ver=3.7.1:2:40035)
    at v.handle (jquery-3.7.1.min.js?ver=3.7.1:2:38006)

    I read that the problem could be caused by other plugins, but when I copy the whole productive environment to a staging environment, it works without any problems with all plugins! So I’m not able to make tests, because the staging environment is working, which is 1:1 the same as the productive environment.

    Our Environment has the newest WP version 6.4.3 and all plugins are up-to-date.

    Any ideas?

    Thank you for your help.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Anything that is caching or minifying JavaScript on your production website that maybe needs to be regenerated, which could be causing this, but not causing it on the staging environment?

    Thread Starter rb285

    (@rb285)

    Our shop is hosted at Seravo. On this plattform you can create an 1:1 clone of your productive environment. All databases, scripts etc. are the same. I already thought that this could be a cache related issue and cleared the cache an disabled caching at UM, but no improvement.

    @rb285

    Which theme are you using?

    Thread Starter rb285

    (@rb285)

    Avada theme, current version with all patches.

    @rb285

    I have reported this issue with reference to an old Cropper issue with the Avada theme.

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

    Thread Starter rb285

    (@rb285)

    I got the upload working now. Reason for the problem:

    jquery-cropper.js was not available/integrated for any reason.

    I have downloaded jquery-cropper.js here:

    https://github.com/fengyuanchen/jquery-cropper/blob/master/dist/jquery-cropper.js

    and copied the file jquery-cropper.js on our system to directory:

    /data/wordpress/htdocs/wp-content/plugins/ultimate-member/assets/libs/cropper

    With a plugin which allows custom JavaScript I added the following JS code:

    <script src="....../ulitmate-member/assets/libs/cropper/jquery-cropper.js"></script>

    And upload is working now.

    Final question: Why was jquery-cropper.js missing and which plugin is responsible for that?

    Plugin Support andrewshu

    (@andrewshu)

    Hello @rb285

    I checked my local site and I can’t reproduce this issue with the Avada. Maybe you are using some special theme settings?

    Regards.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @andrewshu

    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 8 replies - 1 through 8 (of 8 total)
  • The topic ‘File upload: Uncaught TypeError: jQuery(…).cropper is not a function’ is closed to new replies.