• Resolved ArtZ91

    (@artz91)


    E_WARNING – Undefined array key “compare” in /wp-content/plugins/relevanssi/lib/search.php on line 1243

    Relevanssi 4.27.0, PHP 8.3.6

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yeah, we’ll fix that in the next version. It’s annoying to get the warning, but it’s nothing dangerous. Defining the compare in the meta query you’re using will make the warning go away.

    Thread Starter ArtZ91

    (@artz91)

    I think the reason of warning might be relation key in meta_query array:
    ['relation' => 'AND', […], […], …]

    Plugin Author Mikko Saari

    (@msaari)

    No, the warning clearly says it’s because the compare parameter is not set (it’s an optional parameter, and Relevanssi should treat it like that but doesn’t). That’s why setting it will make the warning go away. The relation parameter is not related.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.