WebsiteBaker Support (2.13.x) > General Help & Support

Whatever I try to install as template I get one and same error

(1/1)

rumen:
Hi there, WB 2.13.5 r220

When I try to install any template I get one and the same error message:


--- Code: ---There was an uncatched exception
database::escapeString(): Argument #1 ($unescaped_string) must be of type string, bool given, called in /var/www/html/test/framework/functions.php on line 1166
in line (259) of (/framework/class.database.php):
--- End code ---

in class.database.php that is:

--- Code: --- public function escapeString(string $unescaped_string)
    {
        return \mysqli_real_escape_string($this->oDbHandle, $unescaped_string);
    }
--- End code ---

and in functions.php it is:

--- Code: ---                        . '`function`=\''.$database->escapeString($template_function).'\', '.PHP_EOL

--- End code ---

What doesn't like in the templates? They are from the web site WB templates. I attach one.

dbs:
Hi, in the info.php is this line missing:

--- Code: ---$template_function     = 'template';
--- End code ---

Compare with info.php from DefaultTemplate

rumen:
Hm, that helped. Thanks a lot.

Navigation

[0] Message Index

Go to full version