-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Debian smarty package bug] PHP Parse error: syntax error, unexpected token "class" in /usr/share/php/smarty3/sysplugins/smarty_internal_templateparser.php on line 24 #681
Comments
Hello, the bug seems to be in Smarty, you should report this to ubuntu packagers |
@vgdko You might want to switch to ubuntu 22.04. ubuntu impish (21.10) was an interim release and is currently end of life since July 14, 2022. source : https://wiki.ubuntu.com/Releases?_ga=2.133627726.173820398.1658294831-1596732122.1658294831 |
This problem still exists in 22.04 package. There is now a bug report for it : https://bugs.launchpad.net/ubuntu/+source/smarty3/+bug/1986916 Since this smarty3 package is broken in 22.04. It should be installed manually from source |
here a hacky way to replace smarty3 broken package with source based one, this is a temporary hack until ubuntu version gets fixed. Warning it does not uninstall package smarty3 at all, just overwrite it. bash script
|
We could also install Smarty in another location (for example /usr/local/smarty3) and change the configuration in conf/config.inc.local.php : define("SMARTY", "/usr/local/smarty3/Smarty.class.php"); |
Oh this is an unfortunate bug seeing as it has been fixed upstream months ago. A less ugly fix is to use smarty3 from Debian unstable: # wget http://ftp.us.debian.org/debian/pool/main/s/smarty3/smarty3_3.1.47-2_all.deb
# dpkg -i smarty3_3.1.47-2_all.deb This is working for me in Ubuntu 22.04.2. I'm not sure if I want to do this long term, but it works for now... |
browser shows only blank main-page
in the apache-log following error pops up on every web-page-access …
OS="Ubuntu 21.10"
smarty ... "smarty3/impish-updates,impish-security,now 3.1.39-2ubuntu0.21.10.1 all [installed]"
misc php-packages are installed, eg…
php-common/impish,now 2:82~0build1
php8.0-common/impish-updates
The text was updated successfully, but these errors were encountered: