• Hi dear folks,

    we encounter a problem with the NextGEN-gallery on our site https://www.actualcolorsmayvary.com/blog. If we want to make a post sticky to appear as a featured post, the NextGEN-gallery creates the following error: “Fatal error: Call to a member function get_permalink() on a non-object in /mnt/web7/10/92/5520092/htdocs/blog/wp-content/plugins/nextgen-gallery/nggfunctions.php on line 351”.

    We’re using WordPress 3.1.3, NextGEN-gallery 1.8.1, Thematic theme with Neutica+ 1.5.2 child theme. We already tried to downgrade to NGG 1.7.3 and also tried to change the permalink structure but the error was the same.

    Can somebody please help us, that we would be terrific, thanks a lot in advance!

    Greetings from Berlin,
    Oliver & Julia

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter actualcolors

    (@actualcolors)

    Hello everybody,

    it would be awesome if somebody could help us with our problem…anybody there who has the slightest idea?

    Thanks so much,
    Oliver & Julia

    i can’t help, but I’m having the same issue when I try to update the tags: Fatal error: Call to a member function get_permalink() on a non-object in /home//wp-content/plugins/nextgen-gallery/nggfunctions.php on line 351

    Also need help..

    Thread Starter actualcolors

    (@actualcolors)

    Hi!
    We just found out: if you just delete or deactivate this exact line of code (351) in the /home//wp-content/plugins/nextgen-gallery/nggfunctions.php file, then everything worked fine for us!
    Hope that helps!
    ??
    Best wishes,
    Oliver & Julia

    one potential, though unsatisfactory, fix is to deactivate the gallery, make your changes, and then reactivate

    this is the line of code I see on line 351:

    $picturelist[$key]->pidlink = $nggRewrite->get_permalink( $args );

    and it’s in this block:

    // create link for imagebrowser and other effects
    $args [‘nggpage’] = empty($nggpage) ? false : $nggpage;
    $args [‘pid’] = ($ngg_options[‘usePermalinks’]) ? $picture->image_slug : $picture->pid;
    $picturelist[$key]->pidlink = $nggRewrite->get_permalink( $args );

    did you get rid of the whole block of code ?

    Thread Starter actualcolors

    (@actualcolors)

    no, we just deactivated this one line:
    $picturelist[$key]->pidlink = $nggRewrite->get_permalink( $args );
    not the whole block! it works fine for us.

    cool; thanks guys,appreciate the help and quick responses…

    Thread Starter actualcolors

    (@actualcolors)

    no problem! happy to help!

    I had this problem too … commented line #352

    It’s strange that I have the last version …. 1.9.3

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘NextGEN-gallery: sticky post problem’ is closed to new replies.