WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Whatever I try to install as template I get one and same error
  • Print
Pages: [1]   Go Down

Author Topic: Whatever I try to install as template I get one and same error  (Read 6669 times)

Offline rumen

  • Posts: 480
  • Gender: Male
Whatever I try to install as template I get one and same error
« 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:

Code: [Select]
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:
Code: [Select]
public function escapeString(string $unescaped_string)
    {
        return \mysqli_real_escape_string($this->oDbHandle, $unescaped_string);
    }

and in functions.php it is:
Code: [Select]
                        . '`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.
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8920
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Whatever I try to install as template I get one and same error
« Reply #1 on: November 08, 2024, 09:09:30 AM »
Hi, in the info.php is this line missing:
Code: [Select]
$template_function     = 'template';
Compare with info.php from DefaultTemplate
Logged
https://onkel-franky.de

Offline rumen

  • Posts: 480
  • Gender: Male
Re: Whatever I try to install as template I get one and same error
« Reply #2 on: November 08, 2024, 09:30:57 AM »
Hm, that helped. Thanks a lot.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Whatever I try to install as template I get one and same error
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2