To see this inconsistency:

1. Create a gallery and add there definite number (let's say 10) of images.
2. Go to the gallery page (node_gallery_gallery/17635 in my case) and see correct number (i.e. 10) of images there.
3. Add 5 more images to the same gallery via Views Bulk Operations' Change parent gallery options (Move from another galery)
4. Go to the same gallery page and see you have only 5 images displayed, though all 15 images are there, they all can be accessed via clicking next links.

My view uses 100 items per page pager, so no problem here. Also tried to clear cache, didn't help. I believe the appropriate function of the module for VBO forgets to change some kind of more records in DB.

Comments

justintime’s picture

Two quick questions.

1) On the view that you've built for VBO, can you make sure that caching is disabled?

2) Imagine images 1-10 are on gallery A, and images 11-15 are on gallery B.
Step 1) Gallery A shows 10 images
Step 2) Go to VBO view on Gallery B, move all 5 images to Gallery A

You're saying that Gallery A shows 5 images instead of 15, or that gallery B shows 5 images instead of 0?

3) Can you confirm that clearing caches fixes the problem?

yngens’s picture

1) Was and is disabled
2) Yes, Gallery A displays only thumbnails of 5 images (though it is set to show 100 images), but all are accesible by clicking next link. Gallery B is correctly empty.
3) Unfortunately, clearing cache does not help.

justintime’s picture

Category: bug » support

Something is incorrect in your view then. If you view the list of views available, do you see a link for "Revert" next to node_gallery_gallery_images_view? If so, click that, and see if the issue is resolved. You can make a backup of your changes to this view by exporting it, and placing that code in a notepad of some sort.

If clearing the caches and the navigator works, this is something in the view.

yngens’s picture

Hey Justin, could you please check your e-mail?

justintime’s picture

Status: Active » Fixed

The problem was that the default views were overridden, and at some point the Parent Gallery relationship was removed from the view.

yngens’s picture

Status: Fixed » Active

Sorry, but opening this issue again since reverting back to the original settings of the view did not solve the problem.

I've run some tests on a fresh install of Drupal and the module, and found out my problem is the name of the field, which is 'field_node_gallery_image' originally and in my case, since all the pictures were migrated from other modules was different from the very beginning.

So what I did was installed the module, deleted 'field_node_gallery_image', created new field with different name, however respecting all the relationships on the modules settings page and views, and tried to upload images. Al the views were broken.

I deleted the field and created new one with the name 'field_node_gallery_image'. Uploaded pictures and they displayed with no issues. I looked everywhere in the views and the modules settings page where I can change the field name and could not find. Unfortunately, it is not possible to change any field names. And I have thousands of pictures already migrated to the field with different name.

yngens’s picture

Status: Active » Fixed

After once again reverting back to the defaults and careful modifications respecting relationships it finally started to work correctly. So Justin was right. Changing this to fixed. Thank you!

yngens’s picture

Title: 'View all image thumbnails' shows incorrect number of images after updating via VBO » Gallery pages are empty despite they actually contains images
Status: Fixed » Active

After couple days it again is broken - the galleries show correct numbers of images (at summary pages), but when opening them (the gallery pages) they do not pull images, they are empty.

After last reverting the views to their default values and modifying them for my needs everything was working just wonderful, and I did not change anything since. I don't remember exactly, but I think I have updated the module after that once. However, I believe updating the module should not break custom relations set up on my site, should it?

P.S. Also editing the title of the issue as this turned out having nothing with VBO

justintime’s picture

yngens, please go back to alpha1 and test things there. If you're running in a production site, you're probably better off sticking to the NG3 releases. There haven't been any huge problems with alpha1, but there were some fairly large bugs introduced and then fixed in dev after that. Alpha2 should be just around the corner.

yngens’s picture

Status: Active » Closed (fixed)

Ok, I have reverted and rebuild the views again. Everything loks ok now, so let's keep issue closed for now, hoping this will not happen again.

yngens’s picture

Title: Gallery pages are empty despite they actually contains images » Some gallery pages are empty despite they actually contains images after adding comments count to the view
Status: Closed (fixed) » Active

Now, after trying many times different settings I've narrowed the cause of the problem with empty galleries, but could not find solution. If I add 'Node: Comment count' field on 'node_gallery_gallery_image_views' some of my galleries (which actually contain images) are empty, the other are just fine. If I delete that field all the galleries are displayed correctly. Relationships are fine.

scroogie’s picture

I can't reproduce that. All my galleries behave correctly even after adding the comment count to the images. Do you use the "node comments" module?

justintime’s picture

Neither can I. Yngens, I did see the problem on your site, but could not reproduce it against my 3.x-dev install. Try reverting the view, and start from there, but I didn't see anything standing out about your view that would cause an issue. It could be the version of views you're running too.

Whatever it is, I'm 99% positive it isn't a bug in NG3.

yngens’s picture

Justin, thanks for looking at my site. I did reverting and reconfiguring several times, unfortunately it always gives the same result - some galleries are empty. But this is only when I add comment count field. So until this is tracked down and solved I'll just live without comment count.

I also tried different versions of views. This is a convert from Gallery2 module, so I'm starting to guess that probably there are permission issues. On the other hand I can't see how any permissions could have something with comment count field causing some Node Galleries' failure to display content of the galleries. Confusing...

scroogie, no I don't use node comments.

justintime’s picture

Oh, hey, I just thought of one thing. We did change the join type from INNER to LEFT after alpha1 - I know that scroogie and I are running dev, are you by chance running alpha1? If so, try dev really quick, clear all caches, and see if it persists. alpha2 should be out today or tomorrow.

yngens’s picture

I was initially on alpha, but in order to catch up with lot's of new improvements I switched to 6.x-3.x-dev recently. So I'm having this issue with Comments Count field preventing some of the galleries to display their contents on 6.x-3.x-dev. Looking forward to use alpha2, maybe something will click on.

I also can not reproduce this on a fresh install. So this issue definitely has something with the fact that my Node Gallery is the result of migration from Gallery2.

dddave’s picture

Status: Active » Fixed

Cleaning up...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.