Error in SmartPocket theme #1419

Open
opened 2026-10-05 00:43:09 +02:00 by adam · 3 comments
Owner

Not sure how to recreate this, was present in the Errors.txt file:

Undefined variable $row_height in /home1/behuntne/public_html/px/themes/smartpocket/themeconf.inc.php on line 61

Piwigo: "curent version"

Themes (all current):
Modus (default)
Elegant
Smart Pocket

Not sure how to recreate this, was present in the Errors.txt file: `Undefined variable $row_height in /home1/behuntne/public_html/px/themes/smartpocket/themeconf.inc.php on line 61` Piwigo: "curent version" Themes (all current): Modus (default) Elegant Smart Pocket <!-- github-sync-id:1159797007 -->
Author
Owner
[Piwigo](https://piwigo.org/) 12.2.0
Operating system: Linux
PHP: 8.0.16 [2022-03-04 15:48:30]
MySQL: 5.7.23-23 [2022-03-04 15:48:30]
Graphics Library: ImageMagick 6.9.10-68
Cache size 121.48 Mo
``` [Piwigo](https://piwigo.org/) 12.2.0 Operating system: Linux PHP: 8.0.16 [2022-03-04 15:48:30] MySQL: 5.7.23-23 [2022-03-04 15:48:30] Graphics Library: ImageMagick 6.9.10-68 Cache size 121.48 Mo ``` <!-- github-comment-id:1059588194 -->
Author
Owner

Running into this one too. Happens when I try to view an album on mobile. Viewing same album works fine on desktop.
Config:

[Piwigo](https://piwigo.org/) 12.2.0
Operating system: Linux
PHP: 8.0.2  [2022-06-04 09:50:05]
MySQL: 8.0.28-0ubuntu0.20.04.3 [2022-06-04 09:50:05]
Graphics Library: ImageMagick 6.9.7-4
Cache size 1918.88 Mo

IMG_95DA898A76CE-1

Running into this one too. Happens when I try to view an album on mobile. Viewing same album works fine on desktop. Config: ``` [Piwigo](https://piwigo.org/) 12.2.0 Operating system: Linux PHP: 8.0.2 [2022-06-04 09:50:05] MySQL: 8.0.28-0ubuntu0.20.04.3 [2022-06-04 09:50:05] Graphics Library: ImageMagick 6.9.7-4 Cache size 1918.88 Mo ``` ![IMG_95DA898A76CE-1](https://user-images.githubusercontent.com/6105333/172017181-6c11c60b-6771-4418-ab9b-d36727554811.jpeg) <!-- github-comment-id:1146648701 -->
Author
Owner

I added then following above line 61:

      if (!isset($row_height)) {
        $row_height = 80;
      }

Most probably not the "right" way.., it works for me.

I added then following above line 61: ``` if (!isset($row_height)) { $row_height = 80; } ``` Most probably not the "right" way.., it works for me. <!-- github-comment-id:1166646332 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1419