[PHP 8.1] Can't update my extensions #1453

Open
opened 2026-10-05 00:44:26 +02:00 by adam · 5 comments
Owner

I run Piwigo 13.0.0 beta 2, upgraded from 11 to 12 to 13. Visiting /admin.php?page=updates&tab=ext won't let me come through - alongside with a bunch of deprecation warnings, I get one fatal error:

Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception) in /(REDACTED)/include/smarty/libs/sysplugins/smartycompilerexception.php on line 8

I could imagine that this is just another PHP 8.1 problem...?

Environment:

$ php --version
PHP 8.1.5 (cli) (built: Apr 12 2022 16:19:58) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.1.5, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.5, Copyright (c), by Zend Technologies
I run Piwigo 13.0.0 beta 2, upgraded from 11 to 12 to 13. Visiting `/admin.php?page=updates&tab=ext` won't let me come through - alongside with a bunch of deprecation warnings, I get one fatal error: ``` Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception) in /(REDACTED)/include/smarty/libs/sysplugins/smartycompilerexception.php on line 8 ``` I could imagine that this is just another PHP 8.1 problem...? Environment: ``` $ php --version PHP 8.1.5 (cli) (built: Apr 12 2022 16:19:58) (NTS gcc x86_64) Copyright (c) The PHP Group Zend Engine v4.1.5, Copyright (c) Zend Technologies with Zend OPcache v8.1.5, Copyright (c), by Zend Technologies ``` <!-- github-sync-id:1237784209 -->
Author
Owner

Hi
Piwigo is not compatible php 8.1 but or maybe smarty version 3. Try install version 4 or master instead of version 3

https://github.com/smarty-php/smarty
In piwigo

Regards

Hi Piwigo is not compatible php 8.1 but or maybe smarty version 3. Try install version 4 or master instead of version 3 https://github.com/smarty-php/smarty In piwigo Regards <!-- github-comment-id:1128215527 -->
Author
Owner

I'd rather not play with the packaged dependencies - but I thought that the Piwigo project could be interested in keeping track of compatibility issues. :-)

I'd rather not play with the packaged dependencies - but I *thought* that the Piwigo project could be interested in keeping track of compatibility issues. :-) <!-- github-comment-id:1128216693 -->
Author
Owner

It works updating smarty to the last version in github.

updates_ext.tpl needs and update too because an unclosed {if].

It works updating smarty to the last version in github. updates_ext.tpl needs and update too because an unclosed {if]. <!-- github-comment-id:1172863170 -->
Author
Owner

@DickeyFuller @dertuxmalwieder still a problem with current master or build 13.0.0RC4 ?

@DickeyFuller @dertuxmalwieder still a problem with current master or build 13.0.0RC4 ? <!-- github-comment-id:1260823923 -->
Author
Owner

13.0.0RC4 looks good on PHP 8.1.11.

13.0.0RC4 looks good on PHP 8.1.11. <!-- github-comment-id:1261247340 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1453