Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter aboother

    (@aboother)

    @raam Dev I also tried using v141110 but I still get the same errors as before I’m afraid

    Thread Starter aboother

    (@aboother)

    Hi,

    The error/notice message I get is above, I will paste it again for you:

    Notice: Trying to get property of non-object in /Users/adamboother/sites/isis-wp/wp-content/plugins/quick-cache-pro/quick-cache-pro.inc.php on line 2343

    Notice: Trying to get property of non-object in /Users/adamboother/sites/isis-wp/wp-content/plugins/quick-cache-pro/quick-cache-pro.inc.php on line 2345

    Notice: Trying to get property of non-object in /Users/adamboother/sites/isis-wp/wp-content/plugins/quick-cache-pro/quick-cache-pro.inc.php on line 2347

    Notice: Trying to get property of non-object in /Users/adamboother/sites/isis-wp/wp-content/plugins/quick-cache-pro/quick-cache-pro.inc.php on line 2347
    7673

    That then prevents the media item from uploading, as in the media does not upload…the message appears and nothing then happens. This happens when trying to upload media by clicking ‘media’ in the left hand sidebar and then ‘add new’.

    Thread Starter aboother

    (@aboother)

    Hi,

    I tried reproducing this error on a clean install as you suggested, and couldn’t replicate the issue either. I then tried de-activating and activating my plugins on my site one-by-one and figured out the error only happens when you have the ‘Enhanced Media Library’ plugin also enabled. Unfortunately my site relies on the ‘Enhanced Media Library’ plugin quite highly, do you think you could get Quick Cache Pro working with this plugin?

    Cheers.

    Thread Starter aboother

    (@aboother)

    @doublesharp – I can imagine that is the case with version tags!

    You’ll be glad to hear that all works a treat now, thanks very much.

    Thread Starter aboother

    (@aboother)

    @doublesharp please find that info below:

    Form data:

    action=validate_fields&post_id=494&click_id=publish&fields%5B0%5D%5Bid%5D=fields%5Bfield_536226330aa1f%5D&fields%5B0%5D%5Bvalue%5D=test&fields%5B0%5D%5Bvalid%5D=false

    Response:

    <b>Notice</b>: Unefined offset: 3 in <b>…/validated_field_v4.php</b> on line <b>142</b>
    [{id:fields[field_536226330aa1f], message:Test alert, valid:false}]

    0: {id:fields[field_536226330aa1f], message:Test alert, valid:false}
    id: “fields[field_536226330aa1f]”
    message: “Test alert”
    valid: false

    The PHP errors have now gone, but I still don’t get my custom validation message showing in the red bubble which I assume is down to these errors above?

    Cheers.

    Thread Starter aboother

    (@aboother)

    Excellent, thanks @doublesharp that’s fixed the issue.

    Just a small thing to note. I have made the field a ‘required field’. If I go to submit the post without any characters in the field, it flags up that the field is required which is right. I then enter just one character, and although my PHP validation should show a message if the value is less than 10 character (as per my first post), no message shows and I can save the post changes. Therefore I can save the post with less than 10 characters in this validated field.
    If I then go to save the post again without making any changes, the validation works and the message appears to say the validated field has less than 10 characters. So basically this validated message doesn’t work the first time round but does there after.

    If you can think of any reasons for this that would be great.

    Cheers.

    Thread Starter aboother

    (@aboother)

    Hi,

    I’m using a custom post. The form data returns:

    [ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]

    action=validate_fields&post_id=494&fields%5B0%5D%5Bid%5D=fields%5Bfield_536226330aa1f%5D&fields%5B0%5D%5Bvalue%5D=test&fields%5B0%5D%5Bvalid%5D=false

    Under the ‘preview’ tab when I’ve clicked on ‘admin-ajax.php’, the following is returned:

    <b>Notice</b>: Undefined variable: php in <b>/website/theme/wp-content/plugins/validated-field-for-acf/validated_field_v4.php</b> on line <b>135</b> [{id:fields[field_536226330aa1f], message:Test Alert, valid:false}]
    0: {id:fields[field_536226330aa1f], message:Test alert, valid:false}
    id: "fields[field_536226330aa1f]"
    message: "Test alert"
    valid: false

    This looks like it may be causing an issue?

    Thread Starter aboother

    (@aboother)

    @doublesharp – I’m running the latest version of Chrome, I’m getting no JS errors in the console I’m afraid. I’m using the latest versions of both the ACF plugin and the ACF validation plugin and am running WordPress 3.9 too.

    It seems like the validation partly works as the page doesn’t submit, but I just don’t get any validation messages pop-up and can’t submit the page thereafter no matter how many characters I enter into the field.

    Any ideas would be appreciated.

    Thread Starter aboother

    (@aboother)

    Great, worked a treat.

    Thank you.

    Thread Starter aboother

    (@aboother)

    Hi Matt,

    You are indeed right, not sure how I missed that! Thanks very much for your help : )

Viewing 10 replies - 1 through 10 (of 10 total)