Error in core.php / v4.2.8

[ad_1]

Hi, after the update to 4.2.8 I’m getting the following error on
https://phtn.net/corona/galerie/

[Sun Nov 27 14:18:42.016529 2022] [php7:emerg] [pid 21985] [...] PHP Parse error: syntax error, unexpected ')' in /.../plugins/meow-gallery/classes/builders/core.php on line 87, referer:

which is this code

if ( empty( $image_size ) || $image_size === 'srcset' ) {
                        $imgSrc = wp_get_attachment_image( $id, $this->size, false,
                                $this->layout === 'carousel' ?
                                        [ 'class' => 'skip-lazy' ] :
                                        [ 'class' => 'wp-image-' . $id ],
                        );
                }

Removing the extra “,” after “$id ]” fixes the problem.

The page I need help with: [log in to see the link]

 

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