Home Forums Plugin Support WP User Frontend Pro Featured Image upload JS error: "Uncaught ReferenceError: res is not defined"

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  towhid 3 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44485

    Alexander
    Member
    Post count: 5

    I have a form which includes the facility to upload the featured image. This was working fine on a test site, but after transfer to the live hosting, the upload fails.

    On completion of the loading bar, the thumbnail preview doesn't appear, and the text simply reverts to the previous. Javascript console gives ‘Uncaught ReferenceError: res is not defined' at this point. Source of the error is wp-content/plugins/wp-user-frontend-pro/assets/js/upload.js?ver=4.2.2 at line 137.

    The new site's hosting may have a slightly different php version to that of the old site, but apart from that I can't see any difference.

    What should permissions be on the destination folders (wp-content/uploads)? Would that make a difference?

    All other plugins are disabled, and I'm still getting this problem.

    Site due to go live later today, so I'm keen to get this resolved promptly.

    #44488

    Alexander
    Member
    Post count: 5

    New site now running on the same php version, no difference. FYI: the new site requires SSH, old one doesn't – could this be part of the problem?

    #44504

    Alexander
    Member
    Post count: 5

    Never mind – I found the problem: legacy info in settings/media/Store uploads in this folder – wasn't updated to reflect the new hosting.

    #44507

    towhid
    Participant
    Post count: 4505

    Hello Alexander,

    I am very glad to know that you have got the solution. I am going to mark the topic as resolved and closed.

    Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Featured Image upload JS error: "Uncaught ReferenceError: res is not defined"’ is closed to new replies.