• Resolved Bob

    (@jamespictures)


    Getting this error in my error log

    Approx 5 a day so its filling slowly…

    [25-Jan-2016 08:36:46 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/bob/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/module.nextgen_gallery_display.php on line 137

    I googled it and it would seem others are getting it >> https://goo.gl/zhxQE8

    Any ideas ?

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

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

    (@photocrati)

    @jamespictures – Can you provide a link to the site where this is happening?

    – Cais.

    Thread Starter Bob

    (@jamespictures)

    Of course >> https://www.jamespictures.co.uk/ nice name hey ??

    Plugin Contributor photocrati

    (@photocrati)

    @jamespictures – Thanks for the link …

    … please try the following:

    Go under Gallery > Other Options > Styles … and add a (random) comment to the custom CSS section. Then save the Other Options page.

    I would suspect you will have to at least clear your site caches if not your browser caches as well but that might help to sort out the issue on your site. As it is, a custom CSS file is normally referenced but I am not seeing it in your site’s page source. Add a comment (which will do nothing essentially) and then saving the Other Options page should force the issue of saving and referencing that style sheet which should stop the warning from happening.

    Why the stylesheet is not already being referenced on your site is the real issue but it is not something we are finding a reason for at the moment.

    Thanks!

    – Cais.

    Thread Starter Bob

    (@jamespictures)

    I already have some edits made the the custom.css file

    /*
    CSS Name: Default Styles
    Description: NextGEN Default Gallery Stylesheet
    Author: Photocrati Media
    Version: 2.12

    This stylesheet is provided to allow users the ability of overriding the default styles for all display types
    */

    /* make the small icons in the popout cart white */
    #ngg_add_to_cart_container .ui-accordion-header-icon {
    color:#FFF;
    }

    #ngg_add_to_cart_container a {
    color:#FF0000;
    }

    /* hide the 1/7 image count in lightbox */
    .galleria-counter {
    display:none;
    }

    /* h3 style for the popout shop font colour*/
    span#ngg_digital_downloads_header{
    font-family:PT Sans;
    font-size:18px;
    color:#FFF;
    }
    /* shopping cart popout price text*/
    #ngg_add_to_cart_container .nggpl-cart_total{
    color:#FFF!important;
    }

    /** Hide the small icons / triggers in Pro Lightbox grid gallery*/
    .ngg-trigger-buttons{
    display: none;
    }
    /** changes the padding around the related images for blog posts*/
    .ngg-related-gallery {
    padding: 4px!important;
    }

    So i did as you asked and added some text and saved, deleted the WP Super Cache, ill let you know how it goes over the next 48 hrs

    Plugin Contributor photocrati

    (@photocrati)

    @jamespictures – My concern was the custom CSS file not being enqueued into your site (I was not seeing it in the page source) … I believe this is an aspect of the root cause. Please let us know if this does help.

    Thanks!

    – Cais.

    Thread Starter Bob

    (@jamespictures)

    Its in the page source

    View the page source and search for nggallery.css (its being referenced in the footer)

    Upon viewing the source I can also see that it is referencing the edits that I have placed in the nggallery.css

    I’m wondering if I can just delete the function fix_nextgen_custom_css_order() from module.nextgen_gallery_display.php as it just moves it to the footer ?

    I just looked in error log and there still being generated, ill check again tomorrow

    Plugin Contributor photocrati

    (@photocrati)

    @jamespictures – I would not recommend modifying the plugin’s core code … it’s not update safe and we do not provide any support for that.

    You could try adding the following to your theme’s functions.php file:

    add_filter( 'run_ngg_resource_manager', '__return_false' );

    It’s more encompassing than your suggestion as well.

    – Cais.

    Thread Starter Bob

    (@jamespictures)

    Adding

    add_filter( ‘run_ngg_resource_manager’, ‘__return_false’ );

    seems to have done the trick, thanks Cais

    Plugin Contributor photocrati

    (@photocrati)

    @jamespictures – Thanks for the update.

    – Cais.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘module.nextgen_gallery_display.php on line 137’ is closed to new replies.