Skip to content

support for PHP8 #19

@laurent-martin

Description

@laurent-martin

I upgraded ubuntu to 21.10 : patatras, knxweb stops working

PHP Fatal error: Uncaught SmartyException: Unable to load template file 'design_view.tpl'

resolution turns out to be very simple: the constructor of MySmarty in include/tpl.php still uses the old style constructor name.

fixed like this:

...
	public function __construct()
	{
		parent::__construct();
		global $_config;
...

Now, all good again.

Although not necessary probably , I installed the latest version of smarty like this:
1- installed "composer" : apt install composer
2- created file: composer.json

{
    "require": {
        "smarty/smarty": "*"
    }
}

then executed composer install

3- changed paths in include/tpl.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions