Piwigo / piwigo-bootstrap-darkroom

A mobile-ready and feature-rich theme for Piwigo photo gallery, based on Bootstrap 4
Apache License 2.0
83 stars 40 forks source link

Album with more than 999 pictures does not open in full screen view #332

Closed kuzco1 closed 2 years ago

kuzco1 commented 2 years ago

Hello, I am using piwigo 12.3.0 (PHP 7.4.6, MySQL: 5.5.5-10.4.17-MariaDB) and the latest bootstrap theme 2.5.8. I have seen the follwing issue: Normally when using this theme and I "open" an an album and click on a picture, the picture is shown in full-screen mode and I can wipe left and right. In case the album has more than 999 picture, the click on a picture does not open the picture in full screen. I do not have also the icon for full screen view. Any hint is welcome.

My first idea was the plugin GThumbs+, but i do get the same issue with an disabled GThumbs+ plugin.

Many thanks.

f00b4r0 commented 2 years ago

Confirmed with Piwigo 12.3.0, PHP 7.4.30 & Bootstrap Darkroom up-to-date as of today.

Active plugins:

HWFord commented 2 years ago

This functionnality in bootstrap was disabled, it is related to issue #301

This is what is written for photoswipe in the bootstrap darkroom doc:

Be aware that each images data is extracted from the file directly when the page is loaded (category, thumbnails, picture page). If you have albums with tens of thousands of images in one single album, this could cause your server to crash, burn your house, kill your cat, etc. You have been warned.

Therefore for large albums the descision was taken to disable this functionnality

kuzco1 commented 2 years ago

Ok, I understand the problem. My biggest album has 1600 pictures - so can you please give me a hint, where I can "enable" this functionality ?

KR kuzco

kuzco1 commented 2 years ago

Have found it :-) in themecontroller.php :-).

   if (count($page['items']) > 1000)
    {
      $this->config->slick_enabled = false; 
      $this->config->photoswipe = false; 

      return;
    }