• in some cases you will get a nullpointer exception with nextgen and photoswipe.

    in line 39-41 of ngg-photoswipe.php
    you have

    //Add scripts to disable additional viewers:
    			$options = get_option( 'additional_viewers' );
    			if (1 == $options['fancybox']) {

    change it into

    //Add scripts to disable additional viewers:
    			$options = get_option( 'additional_viewers' );
    			if ($options && 1 == $options['fancybox']) {

    and in line 97

    <?php checked( $options['fancybox'], 1 ); ?>

    into

    <?php if($options) checked( $options['fancybox'], 1 ); ?>

    greez
    uli mueller

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I tried your solution but it don’t work on my website.
    The message error is still here.

    Can someone help me ? Please !

    Pierre Vaillant
    France

    Replace

    //Add scripts to disable additional viewers:
    			$options = get_option( 'additional_viewers' );
    			if (1 == $options['fancybox']) {

    by

    //Add scripts to disable additional viewers:
    			$options = get_option( 'additional_viewers' );
    			if ($options && isset($options['fancybox']) && 1 == $options['fancybox']) {

    worked for me

    Hi,

    I tried both of your solutions but it didn’t worked, any other ideas ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘nextgen and photoswipe Illegal string offset’ is closed to new replies.