Home › Forums › ACF PRO › Illegal string offset › Reply To: Illegal string offset
It’s as if the plugin is causing ACF to behave as if you have the field set to return the image ID rather than an image array.
Well, I can help you with a hack, but not finding the cause of or fixing the incompatibility. I’m afraid that fixing it will take several hours of debugging.
Here is a hack to try, no guarantee it will work though
$image = get_field('logo', 'option');
if (!is_array($image)) {
$image = acf_get_attachment($image);
}
$url = $image['url'];
To get this fixed properly, you should probably contact the plugin author for the filter plugin. You might get a run-a-round unless you can point to a bug in their code though.
You can also thy submitting a new ticket here http://support.advancedcustomfields.com/new-ticket/. The ACF support staff may be able to help you, but that I can’t say. I only help out here of the forum.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.