sluggi icon indicating copy to clipboard operation
sluggi copied to clipboard

If $value in "processCmdmap_postProcess" is an array, it throws an error

Open ReneReiterer opened this issue 5 months ago • 0 comments

I have a custom repeat element on my pages, when i try to translate them, it give me an error

"Wazum\Sluggi\DataHandler\HandlePageCopy::processCmdmap_postProcess(): Argument #4 ($value) must be of type string|int, array given, "

It still translates the elements, you just need to reload to see them.

I "fixed" it by adding array here

string|int|array $value,

and a simple return if it is an array

if(is_array($value)) {
    return;
}

Maybe not the best solution, just needed it to work for now

ReneReiterer avatar Jul 18 '25 10:07 ReneReiterer