• Hello,

    unfortunately NextCellent doesn’t function properly under WordPress 4.7. When I try to edit a gallery, only the first image is visible. I cannot edit the thumbnail and I cannot sort the images, either. Can we expect any update in the future?

    Cheers,

    weigertj

Viewing 15 replies - 1 through 15 (of 23 total)
  • Same problem here. Problem seems to only affect the back end. HELP!!!

    • This reply was modified 7 years, 4 months ago by jamminjames.

    Same problem.

    Unfortunately, this is an unannounced (as far as I know) change in WordPress.

    A temporary solution, until an update with a fix is available, is simple:

    1. Go to nextcellent-folder/admin/manage/class-ngg-image-list-table.php, where nextcellent-folder is the install directory of NextCellent.
    2. Go to line 206. See which line it is here: code.
    3. Replace
      $item->tags = wp_get_object_terms( $item->pid, 'ngg_tag', 'fields=names' );
      with
      $item->tags = wp_get_object_terms( $item->pid, 'ngg_tag', array('fields' => 'names') );

    This should fix it (or at least did it for me).

    Thread Starter weigertj

    (@weigertj)

    Thank you niketniko, it worked for me!

    Thankyou for the fix. It worked just fine.

    Thanks, works great.

    Fixed for me too, thanks so much.

    Andy

    (@andywilmot)

    Thanks niknetniko!

    I am still using an old legacy version of NextGEN Gallery, because of other plugin dependencies, but I managed to tweak your fix slightly to work with legacy.

    If anyone’s interested, go to…

    nextgen-gallery > admin > manage-images.php

    Line 489, change:

    $picture->tags = wp_get_object_terms($pid, 'ngg_tag', 'fields=names');

    to:

    $picture->tags = wp_get_object_terms( $picture->pid, 'ngg_tag', array('fields' => 'names') );

    • This reply was modified 7 years, 4 months ago by Andy.
    • This reply was modified 7 years, 4 months ago by Andy.

    @andywilmot Don’t forget to make a similar edit line 355 of manage.php

    I’ll chime in: Thanks a lot! It’s great to find a fix posted so quickly.

    Andy

    (@andywilmot)

    @theape Thanks for the heads up

    Just faced this problem, last evening.
    Seems like this temp fix is working. Thanks!

    Thank you very much niknetniko,

    i change NextCellent Gallery V1.9.13
    from nextgen-gallery > admin > manage-images.php

    Line 529, change:
    $picture->tags = wp_get_object_terms($pid, 'ngg_tag', 'fields=names');
    with:
    $picture->tags = wp_get_object_terms( $item->pid, 'ngg_tag', array('fields' => 'names') );

    I dont’t like the “thumbnail Edit” from Version 1.9.27.

    • This reply was modified 7 years, 4 months ago by anna-blume.

    Sorry, i change Version 1.9.27 . I dont’t like the “thumbnail Edit” from Version 1.9.31.

    Actually, to fix this problem you must search for ALL occurrences of calls to wp_get_object_terms() in your current nextgen-gallery files and do the replace like:

    $this->xxx = wp_get_object_terms(yyy, 'ngg_tag', array('fields=zzz'));
    with
    $this->xxx = wp_get_object_terms(yyy, 'ngg_tag', array('fields' => 'zzz'));

    On my nextgen-gallery version, 4 files are concerned with the change:

    \nextcellent-gallery-nextgen-legacy\admin\manage\class-ngg-image-list-table.php
    \nextcellent-gallery-nextgen-legacy\admin\manage\class-ngg-manager.php
    \nextcellent-gallery-nextgen-legacy\lib\image.php
    \nextcellent-gallery-nextgen-legacy\lib\tags.php

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘NextCellent Gallery is broken under WordPress 4.7’ is closed to new replies.