Uncaught Drupal.AjaxError uploading an image

Created on 6 April 2017, over 7 years ago
Updated 16 August 2023, over 1 year ago

Using Drupal 8.2.7, we are not seeing this issue in 8.2.6

We have a content type that includes a required image field. Alt field is enabled and required, as well as the Title field. When we attempt to add new content of this type, we will select an image for upload from our local drive, and after we choose we notice that no preview or alternative text field appears. After attempting to save the content, we will be prompted for the alt text and we do see a thumbnail preview. Right after selecting the file for upload, our console is showing an AJAX error:

Uncaught 
Drupal.AjaxError
message: "↵An AJAX HTTP error occurred.↵HTTP Result Code: 200↵Debugging information follows.↵Path: /node/add/product?element_parents=field_product_image/widget/0&ajax_form=1↵StatusText: OK↵ResponseText: "name: "AjaxError"
__proto__: Error
    at http://<our_site>/sites/default/files/js/js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:2890:32
    at http://<our_site>/sites/default/files/js/js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:4053:3
Drupal.Ajax.error @ js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:3674
complete @ js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:3219
t.complete @ js_ZGVf7yyqX4XiBdN49CivMYwoCyt-AJMaBxLWwhfPoxk.js:565
i @ js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:2
fireWith @ js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:2
z @ js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:4
(anonymous) @ js_KozRDxBErHUfJMA7BgEUnamnTZc671T13mIssv8-wXY.js:4

We have tried changing the thumbnail sizes in the form-display settings for this content type to no avail.

The two pictures attached show before and after attempting to save, with form validation and thumbnail appearing after.

🐛 Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
Ajax 

Last updated about 16 hours ago

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    Since there has not been a follow up going to close this one for now.

    If still a valid issue please reopen updating issue summary with additional steps.

    Thanks everyone!

Production build 0.71.5 2024