zirra
Member
So following from Klonera's tutorial, I get to localhost and start the steps, step 1 is fine, step 2 I get error.
TFS 1.2, latest xampp, and Gesior TFS 1.2
Step 2
Fatal error: Declaration of Database::query($statement) must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in C:\xampp\htdocs\classes\database.php on line 184
line 184 is: public function query($statement)
If I copy "query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs)" and replace "query($statement)"
it lets me pass to the next step. But with this error. Obviously going to run into a bunch of issues here.
STEP 3
Add tables and columns to DBInstaller try to add new tables and columns to database.
Warning: Undefined variable $statement in C:\xampp\htdocs\classes\database.php on line 191
Fatal error: Uncaught ValueError: PDO::query(): Argument #1 ($query) cannot be empty in C:\xampp\htdocs\classes\database.php:201 Stack trace: #0 C:\xampp\htdocs\classes\database.php(201): PDO->query('') #1 C:\xampp\htdocs\install.php(309): Database->query('ALTER TABLE `ac...') #2 {main} thrown in C:\xampp\htdocs\classes\database.php on line 191
Line 191: $ret = parent::query($statement);