Hello,
by updating FooGallery I got an Error 500 only on FIRST (intro) side on other pages is everything OK.
By checking Error log I got three errors.
1.ERROR
array_key_exists() expects parameter 2 to be array, string given in …/plugins/foogallery/extensions/default-templates/image-viewer/class-image-viewer-gallery-template.php on line 311
2.ERROR
Illegal string offset ‘crop’ in …/plugins/foogallery/extensions/default-templates/image-viewer/class-image-viewer-gallery-template.php on line 312
3.ERROR
Illegal string offset ‘crop’ in …/plugins/foogallery/extensions/default-templates/image-viewer/class-image-viewer-gallery-template.php on line 314
FUNCTION with an error (** marked lines with error)
function build_gallery_template_arguments( $args ) {
$args = foogallery_gallery_template_setting( ‘thumbnail_size’, ‘thumbnail’ );
** if ( !array_key_exists( ‘crop’, $args ) ) {
** $args[‘crop’] = ‘1’; //we now force thumbs to be cropped by default
}
** $args[‘link’] = foogallery_gallery_template_setting( ‘thumbnail_link’, ‘image’ );
return $args;
}
SPECIFICATIONS
FooGallery version: 1.6.17
WP version: 5.1.1
PHP version: 7.1.27
Does anyone know how to solve it?