acf-smart-button icon indicating copy to clipboard operation
acf-smart-button copied to clipboard

Illegal Offset Warning

Open justiny opened this issue 7 years ago • 2 comments

Getting an illegal offset warning coming from line 135-139 on acf-smart-button-v5.php

/* overwrite fields with empty values to avoid warning */
$field['value']['text'] = isset($field['value']['text']) ? $field['value']['text'] : null;
$field['value']['link'] = isset($field['value']['link']) ? $field['value']['link'] : null;
$field['value']['post_id'] = isset($field['value']['post_id']) ? $field['value']['post_id'] : null;
$field['value']['use_external'] = isset($field['value']['use_external']) ? $field['value']['use_external'] : null;

justiny avatar Oct 29 '18 16:10 justiny

shouldn't impact functionality.. please open a PR if you find time to solve it before me :)..

gillesgoetsch avatar Jun 17 '19 11:06 gillesgoetsch

@justiny I'm unable to reproduce this. Can you provide the steps to replicate please, including WP, ACF and ACF Smart Button versions? The full stack trace is always helpful too :)

jameelmoses avatar Aug 20 '19 14:08 jameelmoses