Piwigo / Piwigo-Fotorama

3 stars 8 forks source link

"Unknown backend" error after update (14b) #28

Open prolibre opened 11 months ago

prolibre commented 11 months ago

White screen with Unknown backend '". on photo pages since the last update (14b). If it helps, here is my configuration: Piwigo 14.0.0 on PHP: 8.2.13

Other extensions activated : Batch Manager, Description Copyrights Download by Size Download Counter Exif View Exiftool GPS FCK Editor Grum Plugins Classes.3 ImageMagick GPS LocalFiles Editor Most Downloaded OpenStreetMap Perso About Perso Footer Photo Update PhotoSphere Read Metadata rightClick RV sitemap RV Thumb Scroller SmartAlbums SortOrders Statistics Stop Spammers Tag To Keyword Thumbnail Tooltip Write Metadata

tnovak007 commented 11 months ago

Hi!

I had the same problem today.

Solution: Just go to Fotorama settings page and click "Save Settings" button (no need to change anything).

Reason: The new settings (in this new version) variables are probably not initialized to default values during update. Saving did that.

Hope it helps you.

UPDATE: Yes, it seems they forgot to add a code for initializing of the new settings. I would solve it by adding something like this to main.inc.php to Fotorama_init() function:

  // Upgrade params from 12.b
  if (!isset($conf['Fotorama']['mobile_backend'])) {
    $conf['Fotorama']['mobile_backend'] = 'fotorama';
    $conf['Fotorama']['desktop_backend'] = 'fotorama';
  }

UPDATE 2: I also had the problem that after starting the slideshow it took very, very long time until it really started (and browser seemed to be hanging). I solved it by changing "$split_limit" in main.inc.php from 4000 to 400 (just like in previous versions). Don't know why they changed it...

prolibre commented 11 months ago

@tnovak007 Thank you! Your solution works very well.