Jump to content

Adding image to image field (within repeater) being removed upon save...


Recommended Posts

Posted

Hi folks,

I'm running PW 3.042 on one of my sites and all was working well but I've received a weird bug/issue from a client. I have a page which has a repeater with two fields (image field and an options field) and they've managed to add 32 rows, no problem, but now when you upload an image... it shows that it's uploaded but when I click 'Save' it seems to clear out the image?

I checked the logs... no errors and then checked the assets folder to that repeater row and the image is in there! Weird!

If I try to add the image again... does same thing again. However, if I go to Admin > Repeaters and find the page that is related to the row and if I add the image in there it works no problem!

I am at a loss... any ideas? I followed Ryan's idea here to checking the AJAX response...

And there is no error (this is what I get)

[{"error":false,"message":"Added file: marika_hackman_w3.jpg","file":"\/site\/assets\/files\/1192\/marika_hackman_w3.jpg","size":570776,"markup":"<li id='file_f35023be4d35b02a8417fe344d56c6b1' class='ImageOuter gridImage ui-widget'><div class='gridImage__tooltip'><table><tr><th>Dimensions<\/th><td>1129x1500<\/td><\/tr><tr><th>Filesize<\/th><td>557&nbsp;kB<\/td><\/tr><tr><th>Variations<\/th><td>0<\/td><\/tr><\/table><\/div>\n\t\t\t<div class='gridImage__overflow'>\n\t\t\t\t<img src=\"\/site\/assets\/files\/1192\/marika_hackman_w3.260x0.jpg?nc=1496787004\" alt=\"\" data-original=\"\/site\/assets\/files\/1192\/marika_hackman_w3.jpg?nc=10\"  \/>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<div class='gridImage__hover'>\n\t\t\t\t\t<div class='gridImage__inner'>\n\t\t\t\t\t\t<label for='' class='gridImage__trash'>\n\t\t\t\t\t\t\t<input class='gridImage__deletebox' type='checkbox' name='delete_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' value='1' title='Delete' \/>\n\t\t\t\t\t\t\t<span class='fa fa-trash-o'><\/span>\n\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t<a class='gridImage__edit'>\n\t\t\t\t\t\t\t<span>Edit<\/span>\n\t\t\t\t\t\t<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<div class='ImageData'>\n\t\t\t\t\t<h2 class='InputfieldImageEdit__name'><span contenteditable='true'>marika_hackman_w3<\/span>.jpg<\/h2>\n\t\t\t\t\t<span class='InputfieldImageEdit__info'>557&nbsp;kB, 1129&times;1500 <\/span>\n\t\t\t\t\t<div class='InputfieldImageEdit__errors'><\/div>\n\t\t\t\t\t<div class='InputfieldImageEdit__buttons'><small>\n\t\t\t<button type='button' data-href='\/login\/page\/image\/edit\/?id=1192&file=1192,marika_hackman_w3.jpg&rte=0&field=journal_image' class='InputfieldImageButtonCrop ui-button ui-corner-all ui-state-default pw-modal-large pw-modal' data-buttons='#non_rte_dialog_buttons button' data-autoclose='1' data-close='#non_rte_cancel'>\n\t\t\t\t<span class='ui-button-text'>\n\t\t\t\t\t<span class='fa fa-crop'><\/span> Crop\n\t\t\t\t<\/span>\n\t\t\t<\/button>\n\t\t\t<button type='button' data-href='\/login\/page\/image\/variations\/?id=1192&file=marika_hackman_w3.jpg&modal=1&varcnt=varcnt_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' class='ui-button ui-corner-all ui-state-default pw-modal-large pw-modal' data-buttons='button'>\n\t\t\t\t<span class='ui-button-text'>\n\t\t\t\t\t<span class='fa fa-files-o'><\/span> \n\t\t\t\t\tVariations\n\t\t\t\t\t<span class='ui-priority-secondary'>(0)<\/span>\n\t\t\t\t<\/span>\n\t\t\t<\/button>\n\t\t\t<\/small><\/div>\n\t\t\t\t\t<div class='InputfieldImageEdit__core'><div class='InputfieldFileDescription'><label for='description_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' class='detail'>Description<\/label><input type='text' name='description_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' id='description_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' value='' \/><\/div><\/div>\n\t\t\t\t\t<div class='InputfieldImageEdit__additional'><div class='InputfieldImageEdit__additional--keywords'><label for='keywords_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' class='detail'>Keywords<\/label><input id=\"keywords_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1\" class=\"InputfieldMaxWidth\" name=\"keywords_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1\" type=\"text\" maxlength=\"2048\" \/><\/div><\/div>\n\t\t\t\t\t<input class='InputfieldFileSort' type='text' name='sort_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' value='0' \/>\n\t\t\t\t\t<input class='InputfieldFileReplace' type='hidden' name='replace_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' \/>\n\t\t\t\t\t<input class='InputfieldFileRename' type='hidden' name='rename_journal_image_repeater1192_f35023be4d35b02a8417fe344d56c6b1' \/>\n\t\t\t\t<\/div>\n\t\t\t<\/li>","replace":false,"overwrite":0}]

I'm at a loss what to do... any thoughts?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...