In PHP 8.2 On click of Update Synonyms displays fatal error

[ad_1]

Hi, PHP 8.2 I am trying to update Synonyms on “Manage Synonyms” Page ( wp-admin/admin.php?page=elasticpress-synonyms ) when I try to submit the form without entering Comma separated list of terms for both Sets and Alternatives on click of “update Synonyms” it display fatal error. when I cross check on my logs there is a error on \includes\classes\Feature\Search\Synonyms.php line no 481
so I have modified this line
if($this->get_synonym_filter_name()!=” && !empty($filters)){ $setting[‘index’][‘analysis’][‘analyzer’][‘default_search’][‘filter’] = array_values(                       array_unique(  array_merge( [ $this->get_synonym_filter_name() ],   $filters    ) )  );
}else{
$setting[‘index’][‘analysis’][‘analyzer’][‘default_search’][‘filter’] =array();
}
can you please look into this issue on next release.
thanks

  • This topic was modified 17 minutes ago by rambispl.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer