htmlspecialchars warning during Reindex
Closed this issue · 2 comments
Hi,
I recognized that we have several of these warnings in our log:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /...../IntegerNet_Solr/src/lib/IntegerNet_Solr/Apache_Solr/Service.php on line 868
So it might happen that $multivalue
is an array on this line here.
I just threw a quick debug in there to find out what a $multivalue can be and this resulted in:
array ( 0 => 'Eifrei', 1 => 'Erdnussfrei', 2 => 'Fischfrei', 3 => 'Gelatinefrei', 4 => 'Glutenfrei', 5 => 'Hefefrei', 6 => 'Nussfrei', 7 => 'Ohne Konservierung', 8 => 'Ohne Zuckeraustausch', 9 => 'Schalentierfrei', 10 => 'Vegetarisch', 11 => 'Weizenfrei', 12 => 'Zuckerfrei', )
As I'm not quite sure how the XML structure should look like, I did not fix it yet. Please have a look :)
Sorry, can't reproduce that. I assume the attribute in question is a multiselect attribute which get indexed correctly in my test cases. Could you log the whole $document
for the case where this is happening? Is it happendning for all products, or only few? Currently, I can't think of a case where '$value' is an array with more than one dimension.