Skip to Content Skip to Menu

Photo Gallery module randomly disappears after 3.0.1 update

  • boyjahq
  • boyjahq
  • ONLINE
  • Posts: 482
  • Thanks: 33
  • Karma: 3
5 days 29 minutes ago #342416 by boyjahq
We use the CB Gallery module to show 1 random photo from a gallery. After 3.0.1 plugin update, the module shows a photo sometimes, other times it disappears. Previously we could refresh a page that contained the module and we would see a different photo each time. Now refreshing the page may show a different photo 2 or 3 times, then the module may disappear for the next couple of page refreshes, eventually returning and showing a photo.

Gallery plugin 3.0.1
Joomla 4.4.14
PHP 8.3.23
MySQL 8.4.3-3

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49778
  • Thanks: 8511
  • Karma: 1465
4 days 12 hours ago #342417 by krileon
If the media it chose failed access permission checks it's not going to show anything. For example if you're showing random profile photos and that profile is set to private. You can alleviate this somewhat by ensuring the gallery used for the module under its Integrations > CB Privacy tab is configured to query filter privacy.

With that said I recommend switching modules like that to the new Media gallery mode, which doesn't require a gallery and bypasses a lot of checks.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • boyjahq
  • boyjahq
  • ONLINE
  • Posts: 482
  • Thanks: 33
  • Karma: 3
1 day 1 hour ago - 1 day 53 minutes ago #342467 by boyjahq
We do not have privacy settings enabled on our site, so it is not possible for a user to set their profile to "private". This module used to show a single random photo from the same gallery as is used for the photo gallery page that you recently fixed. Reloading the page or visiting another page that included the module would always show a single random photo from the specified gallery.

After 3.0.1 update, it may show an image or the module disappears. You can see this in action if you go to  www.wwoofjapan.com/home

There should be a single photo showing at the top right side of the page. If you see one, refresh the page. It should show a different photo. It may do that 1 or 2 times, then the module will disappear for 1 or more page refreshes. At some point after numerous page refreshes, a photo will be visible.

Trying to upload a screenshot of the module settings to this post, but keep getting an Upload failed error

I believe the issue may be that some of the photos in the gallery are associated with user subscriptions that have expired. Is there a way to filter out images that are on expired user profiles?
Last edit: 1 day 53 minutes ago by boyjahq.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49778
  • Thanks: 8511
  • Karma: 1465
12 hours 28 minutes ago - 12 hours 17 minutes ago #342470 by krileon
Expired subscription shouldn't matter unless their profile was disabled and made inaccessible, is that the case? If so all their media should've also been disabled, but that may not have been the case on CB Gallery 2.5, but absolutely is on CB Gallery 3.0. I can take a look with the credentials you've already provided for your other issue if you'd like.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 12 hours 17 minutes ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49778
  • Thanks: 8511
  • Karma: 1465
11 hours 56 minutes ago #342472 by krileon
Ok, have verified that's the issue. You've users with disabled accounts, but published media. You ideally need to unpublish their media. CB Gallery 3.0 does this automatically on disabling of a user, but CB Gallery 2.5 did not. What's happening is their media is being removed during server side aggregation because it's not accessible.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49778
  • Thanks: 8511
  • Karma: 1465
11 hours 47 minutes ago #342473 by krileon
The below database query ran on your database should fix the mismatch published states for you.
Code:
UPDATE `jos_comprofiler_plugin_gallery_items` as i LEFT JOIN `jos_users` as j ON j.`id` = i.`user_id` SET i.`published` = 4 WHERE i.`published` = 1 AND j.`block` = 1

Be sure to replace the "jos_" prefix with whatever your database table prefix is. You shouldn't need to do this ever again though since CB Gallery 3.0 will handle it automatically. I'll also add this to the migration code for future migrations for everyone else.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum