• Resolved MaPu

    (@mapu)


    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?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bradvin

    (@bradvin)

    Hi there

    You also submitted 2 tickets to our support system. I will answer you there.

    I asked if you could edit the gallery in question and save it again. It seems the gallery data has become corrupt.

    Resolving this duplicate.

    Thread Starter MaPu

    (@mapu)

    Hello,
    Thank you for quick response.
    Problem was in update of a theme.

    Best regards, Marjety

    • This reply was modified 5 years ago by MaPu.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error 500 by updating Foogallery to version’ is closed to new replies.