WebsiteBaker Community Forum
WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: rumen on November 08, 2024, 08:15:11 AM
-
Hi there, WB 2.13.5 r220
When I try to install any template I get one and the same error message:
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):
in class.database.php that is:
public function escapeString(string $unescaped_string)
{
return \mysqli_real_escape_string($this->oDbHandle, $unescaped_string);
}
and in functions.php it is:
. '`function`=\''.$database->escapeString($template_function).'\', '.PHP_EOL
What doesn't like in the templates? They are from the web site WB templates. I attach one.
-
Hi, in the info.php is this line missing:
$template_function = 'template';
Compare with info.php from DefaultTemplate
-
Hm, that helped. Thanks a lot.