• Resolved sanjaybhardwaj90

    (@sanjaybhardwaj90)


    Hello,

    We are using a “File / Image / Video” field type for creating tour gallery on the website.
    It was working fine before update the plugin, when we updated this plugin, it is displaying a text box at the place of “File Upload” field on the post screen and displaying only attachment ids in this, we cannot able to add or update this field value.
    We have checked this field type at the back office and DataBase and it is displaying and saved with File field type, please check screenshot on this “Screenshot” link.
    We try to debug our end in your plugin and check this “Find” function which is exist the “Post_Type.php” file, in this function first time we are geeting a valid object with file type value but second time it is returning the text type.

    Check below json script which is displaying with this field.

    {“htmlAttr”:{“id”:”pods-form-ui-pods-meta-tour-gallery”,”class”:”pods-form-ui-field pods-form-ui-field-type-text pods-form-ui-field-name-pods-meta-tour-gallery”,”name”:”pods_meta_tour_gallery”,”name_clean”:”pods-meta-tour-gallery”},”fieldType”:”text”,”fieldItemData”:[],”fieldConfig”:{“object_type”:”field”,”object_storage_type”:”post_type”,”name”:”pods_meta_tour_gallery”,”id”:67,”parent”:39,”group”:”group\/39\/more_fields”,”label”:”Gallery”,”description”:””,”weight”:5,”type”:”text”,”required”:”0″,”pick_post_status”:[“publish”],”admin_only”:”0″,”restrict_role”:”0″,”restrict_capability”:”0″,”hidden”:”0″,”read_only”:”0″,”roles_allowed”:[“administrator”],”rest_read”:”0″,”rest_write”:”0″,”rest_pick_response”:”array”,”rest_pick_depth”:”2″,”unique”:”0″,”post_status”:”publish”,”sister_id”:”– Select One –“,”class”:”gallery”,”file_format_type”:”multi”,”file_uploader”:”attachment”,”file_attachment_tab”:”upload”,”file_upload_dir”:”wp”,”file_edit_title”:”1″,”file_show_edit_link”:”0″,”file_linked”:”0″,”file_limit”:”0″,”file_type”:”images”,”file_field_template”:”tiles”,”file_add_button”:”Add File”,”file_modal_title”:”Attach a file”,”file_modal_add_button”:”Add File”,”help”:””,”default”:null,”attributes”:null,”grouped”:0,”text_repeatable”:0,”output_options”:null,”text_allowed_html_tags”:”strong em a ul ol li b i”,”text_max_length”:255,”text_placeholder”:””,”groups”:[],”fields”:[],”item_id”:67,”placeholder”:””},”fieldEmbed”:true,”fieldValue”:””}

    We have lots of entries on the our website so, we can not create a new field for this, kindly check this issue and provide relevant solutions for this.

    Thanks

    • This topic was modified 3 years, 3 months ago by sanjaybhardwaj90. Reason: displaying wrong link
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Paul Clark

    (@pdclark)

    The screenshot isn’t loading here; a Pods package export would be helpful in reproducing the issue.

    See https://support.pods.io/chat/ or https://pods.io/submit for ways to send a bug report that both support screenshots and package exports.

    I have the same issue. I haven’t been able to update since 2.8.4. Has anything been worked out here?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @sanjaybhardwaj90 and @nixonnotes

    I tried to reproduce this issue but I cannot,
    What settings are you using for the gallery/image/file field?

    Cheers, Jory

    It happens in all scenarios of settings. Most common one I use is Single File, Upload/select, restrict files to jp,pjeg, png, gif, List Style: Rows, and some css in the advanced tab.

    I saw a similar issue report on github (#6326) and noticed that the website was in Spanish. Similarly, the only website I have this issue with is in Spanish. I use Pods on several sites. I’d be interested to know the language on @sanjaybhardwaj90 website.

    Thread Starter sanjaybhardwaj90

    (@sanjaybhardwaj90)

    Hello Paul Clark,

    Thank you for your response.

    We have debug the issue and found that issue generated due to this “pods_group_add” function.
    We were passing file type field name within this function for seperate meta box and this function was changing that field type from file to text format and displaying text field at the back office.
    Now, we have comment our our code and it is working fine.

    @jessie Bee, we are using the English language on the our website.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @sanjaybhardwaj90

    Great to hear you’ve found this issue, thanks for letting us know!

    Cheers, Jory

    I’d like to know what you added to the function to make it work. I am using the pods_group_add also.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @nixonnotes

    Please share your full code (and package) so we can try to reproduce.
    You can create a new issue here: pods.io/submit

    Cheers, Jory

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Generating Wrong field Type on Post Screen’ is closed to new replies.