When running the Content check, in DuplicateTitles::calculateScore(), the method calls SafeMarkup::checkPlain() on the row title before using it as an index for the duplicate title registry.
The problem is that SafeMarkup::checkPlain() doesn't return a string it returns an HtmlEscapedText object. This is not a valid array key so an error is generated:
Illegal offset type DuplicateTitles.php:121
SafeMarkup::checkPlain() is deprecated and should be replaced with Html::escape(). Html::escape() returns a string rather than an HtmlEscapedText object so it works the same way as the D7 version of Site Audit.
Comment | File | Size | Author |
---|---|---|---|
#2 | illegal_offset_type-2881772-2.patch | 947 bytes | jroberts |
Comments
Comment #2
jroberts CreditAttribution: jroberts at DesignHammer commentedHere is a patch for the above issue.
Comment #4
FluxSauce CreditAttribution: FluxSauce as a volunteer commentedGood catch, thanks!