• I’ve seen several people having trouble with uploading files, but haven’t found the right solution yet.

    In my case, I’m working with version 2.0.25, and the files will upload to the uploads/ultimatemember/temp/ folder (this is using both the image uploader and file uploader options in the form builder). One the file uploads, however, an error message is displayed… “ERROR: SyntaxError: Unexpected token e in JSON at position 1”

    I also checked the console, and there do not appear to be any errors there. After the item uploads, the console does log a JSON object from um-functions.min.js?ver=4.9.8:1.

    Any suggestions or advice would be AMAZING!

    Thanks in advance

    • This topic was modified 7 years, 9 months ago by fifthstory.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @fifthstory,

    Do you have WordPress multisite?
    This issue can be caused by some conflicts with your theme or other plugins, please try to do a quick conflict test and see if this issue goes away. Here is the doc on how to do a conflict test if you are not sure how to do it.

    Regards.

    Thread Starter fifthstory

    (@fifthstory)

    So, it turns out that there is an error with a custom function that I was using in my child theme…

    add_action(‘um_before_upload_db_meta’, ‘my_before_upload_db_meta’, 10, 2);

    function my_before_upload_db_meta($user_id, $key) {
    print_r($key);
    }

    Once I commented out the print_r($key); the uploads began to work. The only problem is that this disabled the ability to upload images at the time of registration.

    Any advice on how to make this work again would be amazing! Thanks!

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

The topic ‘Uploads failing to refresh lightbox / “ERROR: SyntaxError: Unexpected token…”’ is closed to new replies.