• Resolved Zardon

    (@zardon)


    I get the following error:

    Warning: in_array() expects parameter 2 to be array, null given in /home/funnykit/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/class.displayed_gallery.php on line 657

    Warning: in_array() expects parameter 2 to be array, null given in /home/funnykit/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/class.displayed_gallery.php on line 662
    no images were found

    I’ve deactivated all plugins except this one.
    I’ve deleted all image cache.
    I’ve deactivated, deleted, then reuploaded the plugin files via FTP, and then activated it again but no success.
    Tried repairing and optimizing the database via PHPMyAdmin….no success

    I created a child theme under Pinstrap (the theme I was using) and put this code in the loop file:

    <?php echo do_shortcode ('[nggallery=1]'); ?>

    Server Settings:

    Operating System : Linux (64 Bit)
    Server : Apache
    Memory usage : 37.06 MByte
    MYSQL Version : 5.5.40-cll
    SQL Mode : Not set
    PHP Version : 5.3.29
    PHP Safe Mode : On
    PHP Allow URL fopen : On
    PHP Memory Limit : 256
    PHP Max Upload Size : 40M
    PHP Max Post Size : 40M
    PCRE Backtracking Limit : 1000000
    PHP Max Script Execute Time : 600s
    PHP Exif support : Yes ( V1.4 )
    PHP IPTC support : Yes
    PHP XML support : Yes
    Graphic Library

    GD Version : bundled (2.1.0 compatible)
    FreeType Support : Yes
    FreeType Linkage : with freetype
    T1Lib Support : No
    GIF Read Support : Yes
    GIF Create Support : Yes
    JPEG Support : Yes
    PNG Support : Yes
    WBMP Support : Yes
    XPM Support : Yes
    XBM Support : Yes
    JIS-mapped Japanese Font Support : No

    NextGEN Gallery by Photocrati Version 2.0.66.37

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @zardon – Try changing: <?php echo do_shortcode ('[nggallery=1]'); ?>

    .. to <?php echo do_shortcode ('[nggallery id=1]'); ?> (this would be more correct for a NextGEN Legacy shortcode and should solve the problem).

    Thanks!

    – Cais.

    Thread Starter Zardon

    (@zardon)

    damn…..seriously?? one tweak in the code was the fix?? lol hate it when minor errors in code can cause huge problems. but yea, it works. now my problem is editing the CSS so that the images and pagination fit in the middle of the site because it is overlapping the footer. need to put the footer below the images area. I also want to implement the Masonry grid into the gallery layout and implement social media into the images so that users can see how many views each image has gotten and how many likes, tweets, pins, etc. an image has gotten. Any ideas?

    Plugin Contributor photocrati

    (@photocrati)

    @zardon – Adding “Share” style icons/details is going to most likely require some significant customizations. At the moment, though, our current version of the NextGEN Pro Lightbox (in NextGEN Plus and NextGEN Pro) offer social sharing icons but no metrics like you are describing.

    You are welcome to share your thoughts and ideas on this as a Feature Request here: https://nextgen-gallery.com/feature-voting/

    Thanks!

    – Cais.

    Hey Cais
    I′ve got a similiar problem – in witch ngg file the shortcode should be changed?
    PROBLEM:
    Warning: in_array() expects parameter 2 to be array, null given in /******/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/class.displayed_gallery.php on line 657

    Warning: in_array() expects parameter 2 to be array, null given in /******/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/class.displayed_gallery.php on line 662
    +++++++++++++++++++++
    @zardon – Try changing: <?php echo do_shortcode (‘[nggallery=1]’); ?>
    .. to <?php echo do_shortcode (‘[nggallery id=1]’); ?> (this would be more correct for a NextGEN Legacy shortcode and should solve the problem).
    Thanks!
    – Cais.
    +++++++++++++++++++++

    Plugin Contributor photocrati

    (@photocrati)

    @stanko – Please start your own topic so we can try to help you with your specific issue on your specific site.

    See https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post

    Thanks!

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NextGen Gallery Error on Lines 657 and 652’ is closed to new replies.