Same problem here. Problem seems to only affect the back end. HELP!!!
-
This reply was modified 7 years, 4 months ago by jamminjames.
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:
- Go to
nextcellent-folder/admin/manage/class-ngg-image-list-table.php
, where nextcellent-folder
is the install directory of NextCellent.
- Go to line 206. See which line it is here: code.
- 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).
Thank you niketniko, it worked for me!
Thankyou for the fix. It worked just fine.
Fixed for me too, thanks so much.
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.
@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