WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
NextGEN-gallery: sticky post problem (10 posts)

  1. actualcolors
    Member
    Posted 3 years ago #

    Hi dear folks,

    we encounter a problem with the NextGEN-gallery on our site http://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

  2. actualcolors
    Member
    Posted 3 years ago #

    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

  3. burrowsja
    Member
    Posted 2 years ago #

    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..

  4. actualcolors
    Member
    Posted 2 years ago #

    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

  5. burrowsja
    Member
    Posted 2 years ago #

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

  6. burrowsja
    Member
    Posted 2 years ago #

    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 ?

  7. actualcolors
    Member
    Posted 2 years ago #

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

  8. burrowsja
    Member
    Posted 2 years ago #

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

  9. actualcolors
    Member
    Posted 2 years ago #

    no problem! happy to help!

  10. Elan42.com
    Member
    Posted 2 years ago #

    I had this problem too ... commented line #352

    It's strange that I have the last version .... 1.9.3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.