I am trying out the SO theme which looks quite neat. I need to run the fossil-stats-table.php to populate the database. I am just trying out the script as stand-alone on the desktop and have added the full path to my repos by adjusting L28 to $repos = .

I am running into he following error. I am not familiar with PHP but can't see anything obvious wrong with this. Any advice?

This is the output I am getting:
<pre>
&#60 li &#62Kicad2PK
PHP Warning:  PDO::query(): SQLSTATE[HY000]: General error: 11 malformed database schema (artifact) - near "(": syntax error in on line 105

PHP Fatal error:  Call to a member function fetchAll() on boolean in on line 105</pre>

Configuration:
macOS 10.12.6 / Fossil 2.5
[Built with  --with-tcl=1 --with-tcl-private-stubs=1 --with-th1-hooks=1]

PHP 5.6.30 (cli) (built: Oct 29 2017 20:30:32)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies