-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal string offset #12
Comments
Looks like this can be resolved by returning the array, rather than just the value. However, this seems like a bug so perhaps can be investigated for future releases. |
Thank you for reporting this. That makes sense, I'll see what I can do |
I believe I've fixed the issue, would you mind testing it out (install via the git repository, master branch)? You should be able to return the value without issue now. |
Hi Nick. Plugin updated and the error being printed on the page has disappeared, however the error still appears in the DOM. |
Could you elaborate about the DOM issue? Is there a javascript error? Or something is not rendering properly? Thanks! |
Hi Nick, great addon to ACF ! Same error for me when I don't choose to return result as an array. I see you fixed the problem on your GitHub repo but I'm using composer... Could you update your wpackagist repo please ? Thanks |
Hey @nickforddesign - This still seems to be an issue, and in fact the plugin seems to only return the 'value', regardless of wether the return is set to be 'value', 'label' or 'both'. Do you have any suggestions of why this might be? Thanks. |
@kaleidografik did you install the plugin via the repo or composer? i haven't touched this project in quite a while, happy to try to fix it though |
@mb79 sorry it took a while, i pushed the newest release to packagist so you should be fine to use with composer, let me know https://packagist.org/packages/nickford/acf-swatch |
Thank you Nick, much appreciated! Seems to be working OK now after er-installing form the master repo. Surely this is an in-demand feature that should be rolled into ACF Pro core? I wonder if they’d be interested in your extension? Thank again.
---
<http://kaleidografik.com/>
Pete Dungey
Digital Director
+44 (0)117 329 0708
Tobacco Factory
Raleigh Road, Bristol BS3 1TF
Twitter <http://twitter.com/kaleidografik> Instagram <http://instagram.com/kaleidografik>
kaleidografik.com
<http://kaleidografik.com/>
Kaleido Grafik Limited. Company No. 08971848
Registered in England and Wales. VAT No. 255 8204 02
… On 28 Nov 2018, at 22:28, Nick Ford ***@***.***> wrote:
@mb79 <https://github.com/mb79> sorry it took a while, i pushed the newest release to packagist so you should be fine to use with composer, let me know https://packagist.org/packages/nickford/acf-swatch <https://packagist.org/packages/nickford/acf-swatch>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#12 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Af50IhkBHosU63tR_KiP7uwDW2ElgKRYks5uzw4BgaJpZM4TdoY8>.
|
Thank you ! It's resolve in this Github repo and in the packagist repo https://packagist.org/packages/nickford/acf-swatch. At the beginning, I found your plugin here : https://wordpress.org/plugins/acf-color-swatches/ One last thing, the plugin directory are not the same : |
@kaleidografik @mb79 Thank you for those details, that was really helpful. I just set up an integration to make deploying to the Wordpress plugins store much easier, the 1.0.7 release is pending there right now. I have no idea what the 2.0.6 release was about, probably I messed up when I was trying to figure out how SVN works so I could publish to the plugins store. Thank you both for your feedback and patience on this issue! |
Hi, love the plugin.
I'm receiving the following error when returning a value form a colour swatch field:
Warning: Illegal string offset 'value' in /app/public/wp-content/plugins/acf-swatch-master/acf-swatch-v5.php on line 394
Is it possible to help debug?
Thanks.
The text was updated successfully, but these errors were encountered: