• Resolved macwinson

    (@macwinson)


    Hi Roland! such a long time!

    Today I found two issues after many months doing PdB updates but without the need to submit new records in a site created a few years ago. I mean, I updated PdB but not really tested on the real world on that site.

    1) In a “Link Field” I was getting the Invalid Field Error Message: “The (my field) field appears to be incorrect.” The value was a valid Google Drive URL.
    I went to Manage DB Fields and changed that field form “Required” to “Not required” and problem solved (maybe that way no validation is performed).
    The field have a “click here” text in the Default Value and a “target::_blank” in the Attributes, nothing new. Not sure what is causing the validation issue here.

    2) In a “Image Upload Field”, I was getting a similar validation error.
    I went to Manage DB Fields and found in Attributes “allowed:: ” (empty), so any file extension was allowed. I changed it to “allowed::jpg” and problem solved… Seems like in a PdB update the default value of Attributes was automatically set to “allowed::”

    Hope it helps. Best regards!

    Wordpress 6.0.2
    PdB: 2.1.10

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Thanks for this, yes, there is a bug in the validation for the “link” type field, I’m issuing an update to fix that pronto.

    Your second point is an interesting one, it is supposed to convert a plain, unlabeled list of file extensions into the “allowed” attribute, but in your case, this seems to have resulted in the “allowed::” setting you saw. Yes, that would allow any file with an extension that matched one in the global allowed file extensions setting. I’ll need to look into this more closely.

    Thanks for your post, it’s helpful.

    Thread Starter macwinson

    (@macwinson)

    Hi, thanks for the reply!!
    In the case of the “Image Upload Field”, I meant, it does NOT accept any type of file (with Attributes “allowed::” empty). So, I changed it to “allowed::jpg”

    Thanks again !!!

    Plugin Author xnau webdesign

    (@xnau)

    Thanks for the clarification…yes that is correct, I has assumed otherwise.

    Update should be out by tonight.

    Thread Starter macwinson

    (@macwinson)

    Hi!

    Updated to 2.1.11 and tested… seems to be working fine now.

    By the way, the update says:

    "fixed issue with blank “allowed” attribute in upload field"

    The fix was applied to “Image Upload Field” too?

    Many thanks for the urgent update. Glad to help!

    Plugin Author xnau webdesign

    (@xnau)

    The blank allowed attribute issue only affects upload fields that have the spurious “allowed::” in the attributes string. It’s not going to change anything if you’ve fixed that by deleting it or adding a list of allowed file extensions.

    This applies to both upload field types, “file” and “image”.

    Let me know if you’re seeing an issue with this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“Link Field” and “Image Upload Field” validations issues after update PdB’ is closed to new replies.