Parameter must be an array or an object that implements Countable with img tag
-
Hi
I am using PHP code (actually in the snippets plugin though that is not the underlying cause) to show an HTML image:
$logohtml="<img width='15%' height='15%' src='data:image/".$eventData["LogoType"].";base64,".base64_encode($eventData["Logo"])."'/>";
$logohtml is then returned from the fucntion called by a shortcode.But it generates this error:
Parameter must be an array or an object that implements Countable in /homepages/14/*****/htdocs/*******/wp-includes/formatting.php on line 3362This seems to be the function convert_smilies() code. I found some historic references to this being being a known issue and which could be addressed by disabling smilie conversions but that is not the issue here.
Tried all sorts of fixes with out success.
Any ideas?
Thanks
- The topic ‘Parameter must be an array or an object that implements Countable with img tag’ is closed to new replies.