Skip to Content Skip to Menu

CB Gallery 4.0.0 — Issues with audio file upload and template "panels" function

  • Oishiku
  • Oishiku
  • ONLINE
  • Posts: 19
  • Thanks: 4
  • Karma: 2
16 hours 4 minutes ago - 15 hours 52 minutes ago #343766 by Oishiku
Hello,

I have noticed that after upgrading to CB Gallery 4.0.0, audio items added by upload render without title or description in the album grid, while audio items added by URL render correctly.

Environment
  • Joomla 5.4.5
  • Community Builder 2.11.0+build.2026.01.12.21.55.56.a25ef0f6c
  • CB Gallery 4.0.0 (installed 2026-04-16 as a clean package upgrade from 2.11.0)
  • PHP 8.2, MySQL
  • Active template: panels
 The data appears to be stored correctly in #__comprofiler_plugin_gallery_items — the title and description columns both contain the values I  typed in the share-media modal

 It seems that in templates/panels/gallery/item.php, $title and $description are both empty for item 102 and the entire galleryItemContainerDetails div is omitted from the DOM for an uploaded audio. ItemsHelper::layoutData() appears to be returning empty title and description entries for upload-type audio items (type = audio, file column = original filename, value column = stored hashed filename) but items shared through URL, URL-type audio items (type = audio, file = URL, value = URL) work fine through the same helper.

I’ve come up with a work around by patching templates/panels/gallery/item.php locally to re-read title and description directly from $row when the helper returns empty strings
Code:
extract( $layoutData, EXTR_REFS ); if ( empty( $title ) )       { $title = (string) $row->get( 'title' ); } if ( empty( $description ) ) { $description = (string) $row->get( 'description' ); }

This adjustment works and the title and description of the uploaded mp3 in the album now appears.

  FFmpeg 8.x compatibility

Before encountering the title bug, I spent some time trying to figure out why mp3 uploads failed with a generic "Something Went Wrong" error banner and no frontend console errors.  I figured out that it may be related to an FFmpeg compatibility problem.   My webhost SiteGround rolled to FFmpeg 8.1 in their container, and CB Gallery's FFmpeg shellout doesn’t seem to work well with the  8.1 syntax.  Or does it? 

The upload directory gets created and the index.html written, then rollback seems to occur  without logging.   Setting FFMPEG Path to a non-existent path (e.g. /nonexistent/) works around it and uploads succeed but without waveform thumbnails.

Additional issue — panels template auto-plays all audio items simultaneously on album load

On the same album used above, with template "panels", all audio items render with their <audio> element live and autoplay attribute set as soon as the album loads, instead of displaying the hover-to-preview behavior the template is documented for.  The result is multiple audio streams playing at the same time. 

DOM inspection shows each audio item has two .galleryMediaToggleDisplay blocks — one correctly inside <template class="galleryMediaToggleTmpl"> (inert), and a duplicate copy rendered directly into the DOM outside the template tag (live, with autoplay).   The live copies all start playing immediately.  The .galleryMediaToggle parent element has class galleryMediaToggleOpen rather than the expected galleryMediaHoverToggle, suggesting the template is treating all audio items as already-activated.   happens on all three audio items in the album regardless of whether they were added by URL or by upload. 

Thank you for your assistance.

  
Attachments:
Last edit: 15 hours 52 minutes ago by Oishiku. Reason: Formatting for legibility

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

  • Oishiku
  • Oishiku
  • ONLINE
  • Posts: 19
  • Thanks: 4
  • Karma: 2
15 hours 11 minutes ago #343767 by Oishiku
Follow-up — Like / Comment / Share row missing from media item modal

After further testing, I also noticed that clicking into a media item (either on profile gallery or inside an album) opens the modal with title/description/views displayed correctly in the right panel, but the Like / Comment / Share button row and the comment input field are missing. The same site running CB Gallery 2.11 (production) renders all three action buttons and the comment input correctly in the same modal.  See Screenshots

This happened to our staging site after the Gallery 2.11 → 4.0.0 upgrade without any configuration changes on my end. The CB Activity and CB Privacy plugins are installed and at current versions.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50357
  • Thanks: 8621
  • Karma: 1472
14 hours 46 minutes ago #343770 by krileon

It seems that in templates/panels/gallery/item.php, $title and $description are both empty for item 102 and the entire galleryItemContainerDetails div is omitted from the DOM for an uploaded audio. ItemsHelper::layoutData() appears to be returning empty title and description entries for upload-type audio items (type = audio, file column = original filename, value column = stored hashed filename) but items shared through URL, URL-type audio items (type = audio, file = URL, value = URL) work fine through the same helper.

That's not possible. $title is just $row->getString( 'title', '' ) but passed through the onDisplayGalleryItem trigger. So unless you've overridden the template file with your own and there's something wrong in your custom template file or you're acting on onDisplayGalleryItem the title should display fine. What type of media it is is also irrelevant. They all go through the same display logic except for the media itself. Was not able to confirm any issues here.

FFmpeg 8.x compatibility

The documentation doesn't show any changes with the ffmpeg command lines. Are you sure your ffmpeg path is configured correctly or that your host has it installed correctly?

Additional issue — panels template auto-plays all audio items simultaneously on album load

I was able to confirm this and am working on a fix.


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: 50357
  • Thanks: 8621
  • Karma: 1472
13 hours 53 minutes ago #343771 by krileon

After further testing, I also noticed that clicking into a media item (either on profile gallery or inside an album) opens the modal with title/description/views displayed correctly in the right panel, but the Like / Comment / Share button row and the comment input field are missing.

Please be sure you've the latest CB Activity build release installed. A stable release is not out yet with compatibility. You must be on the latest build release. If you're still having issues compare your CB Gallery > Galleries and CB Activity > Streams > Comments configuration to our demo site below where all of this is working as expected.

demo.cbdemosites.com/


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: 50357
  • Thanks: 8621
  • Karma: 1472
13 hours 44 minutes ago - 13 hours 38 minutes ago #343773 by krileon
A new CB Gallery build release is now available with the panels template display issues fixed.

In regards to ffmpeg I've retested with latest 8.1 and appears working fine. CB Gallery 3.0.0 had implemented 8.0 so I don't suspect there's any serious changes there to cause a problem.


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: 13 hours 38 minutes ago by krileon.

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

  • Oishiku
  • Oishiku
  • ONLINE
  • Posts: 19
  • Thanks: 4
  • Karma: 2
6 hours 58 minutes ago #343781 by Oishiku
Hi,

Thank you  for the thorough response and guidance, the clarification for how the gallery item is processed and ffmpeg, and for the quick fix on the "panels" gallery template.

We have come a long way upgrading this site from Joomla 3 to 5 in the past months so there definitely are opportunities for something environment-specific to be interfering on my end.  

We will continue to investigate using the information you provided and the demo site for comparison.

 

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

Moderators: beatnantkrileon
Powered by Kunena Forum