• Hi!

    I was using nextgen for almost a year on another website withour any problems and now on my new site I have a strange problem.

    While the gallery is working perfectly when a post is “private” it breaks when i publish it.

    It says…

    Warning: reset() expects parameter 1 to be array, null given in /mnt/webh/d1/67/53188067/htdocs/wp-content/plugins/nextgen-gallery/nggfunctions.php on line 704 Warning: current() expects parameter 1 to be array, null given in /mnt/webh/d1/67/53188067/htdocs/wp-content/plugins/nextgen-gallery/nggfunctions.php on line 705 …

    And it goes on and on like that.

    Would be nice to get some help on this. Any idea?

    regards

    Mac800

Viewing 1 replies (of 1 total)
  • Thread Starter mac800

    (@mac800)

    After a lot of trial and error (a lot of ERROR), i finally found a solution.

    So for anybody who can’t get nggShowImageBrowser () to work in PHP here is my solution:

    <?php
    $gallery = get_post_meta($post->ID, 'gallery_id', true);
    echo nggShowImageBrowser($gallery);
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] Gallery doesn't work when not "private"’ is closed to new replies.