Bullseye Debian 11 PHP7.4 (PHP8.2 was available on this release)
Having upgraded from V2.12 to V15 latest, which works ok, but had this error
“Fatal error: Uncaught 0 Smarty: Smarty4_clearTemplateCache() undefined method > thrown in /var/www/piwigo/include/smarty/libs/sysplugins/smarty_internal_undefined.php on line 64”
I then proceeded to upgrade Debian 11 (Bullseye) to Debian 12 (Bookworm) in anticipation of upgrading to Debian 13 (Trixie) later this year.
The upgrade trashed PHP7.4, so I sneakily did this
apt-mark hold libapache2-mod-php7.4
apt-mark hold php7.4*
I don’t really want to go to Debian 13 using apt-hold, as it may not be possible.
My question is, how do i get Piwigo to use the later php version, ie PHP8.2 or higher?
Tks
Aimee
Offline
Hi Aimee,
Piwigo 15 should work fine on PHP 7.4 and PHP 8.2 (actually I know it does work, we have many Debian 12 installs and still a few Debian 11).
I [...] upgrade Debian 11 [...] to [...] 12 [...] The upgrade trashed PHP7.4
It's more a Debian question than a Piwigo question :-)
Remove completely PHP 7.4. It has nothing to do on Debian 12. Then install PHP 8.2 (the default version on Debian 12)
Offline
Hi
apt list shows PHP7.3, PHP7.4 and PHP8.2 installed on the Debian12 system.
If I remove the 7.* versions (apt purge), how will piwigo 'find' the PHP8.2 version?
Tks
Aimee
Offline
Hi
Bullseye
Upgrade Pwigo from 2.? to 15.? (latest), running under PHP7.4
Upgraded to Bookworm
Removing all PHP* and associated Apache Mods, and assigning PHP8.2 as the default PHP, a2enmod php8.2
gets it working.
Upgraded from Bookworm to Trixie
After the upgrade, all PHP reference were set to 8.4, Pwigo working so far, still testing!!
Tks
Aimee
Offline
Hi
Spoke too soon
A slight annoyance which does no prevent operation, is that occasionally I get a series of messages
Deprecated
: Smarty::_getTemplateId(): Implicitly marking parameter $template as nullable is deprecated, the explicit nullable type must be used instead in
/var/www/piwigo/include/smarty/libs/Smarty.class.php
on line
1048
on the screen, above the actual Piwigo page.
This disappears on a refresh.
Safari on Macosx 15.5
Server Debian 13
I have tried all the available options on the admin page, no luck.
Offline
It's (only) a deprecation, either disable displaying deprecated and warning messages (because it effectively may break functionality of a page even if nothing else is broken), in local config
$conf['show_php_errors_on_frontend'] = false;
or fine tune message classes to display, see [Forum, post 183126 by erAck in topic 31852] Menubar tags issue after 12.2.0 upgrade, or better, log to file instead.
See [Forum, post 180778 by erAck in topic 31258] Error Message.
Offline