Hello, sorry to chime in, but this is a very long standing bug, it's been there for years and it has never been fixed.
The problem is on the line 259 of sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php
if $element_id is an array, than it can't be the key of another array. It can happen for various cases, that $element_id is an array, let's not get in to investigating to causes of this.
The solution is to simply replace the line 253
if ( ! $element_id && ! $trid ) {
with this:
if ( is_array($element_id) || (! $element_id && ! $trid) ) {
I would really appreciate, if you would include this in your upcoming releases, because as of php8, this is not a warning any more, but a fatal error, which breaks many websites. I keep patching this file on every wp installation I managed, but since it's generating a fatal error now, an accidental update can break the whole site.
Thanks, best regards
Jozsef Burgyan
oooh.events developer
Thank you for your feedback, Jozsef. It could be different issue, to ensure that your problem gets the attention it deserves, please open a new ticket detailing your issue.
@mikaelL-10, Could you please try the following workaround? Go to wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Review/ReviewTranslation.php, right after this line 46