Quantcast
Viewing all articles
Browse latest Browse all 295752

Fix: Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities().

Symptom

Views produces loads of following errors:

html_entity_decode() expects parameter 1 to be string, array given in decode_entities().

Cause

In some cases views arguments are arrays not strings.

Fix

Flatten the array for substitution, before passed to unicode decoding.


Viewing all articles
Browse latest Browse all 295752