Schema update issues RC-9
-
Keep getting the following error when trying to update schema after updating to RC-9
PHP Fatal error: Call to undefined method PDODB::insertId() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 524
-
Pinging @Tom-Elliott
-
@Wayne-Workman pdodb insertId() does exist and is working from what I can tell.
-
-
@kpeterson As you can see in the code two lines before
insertId
is called it saysself::$DB->query
. This is not failing, so why shouldself::$DB->insertId
fail?My guess is something is wrong with the repo checkout. Please check your /var/www/html/fog/lib/db/pdodb.class.php (around line 400). Do you see the function definition??
-
@Sebastian-Roth said in Schema update issues RC-9:
/var/www/html/fog/lib/db/pdodb.class.php
The function is indeed there, this is what I have
public function insertId()
{
return self::$_link->lastInsertId();
}Anything else I should check?
-
@kpeterson Might be worth checking out the SQL server log. Will be somewhere in /var/log/mysql afaik.
-
SQL logs all look good, like Sebastian said probably a problem with the checkout but I have no idea what to do. I guess first thing I will try is pull down a fresh copy of RC9
-
@kpeterson said in Schema update issues RC-9:
I guess first thing I will try is pull down a fresh copy of RC9
As well as deleting /var/www/fog and /var/www/html/fog and then re-running the installer.
-
@Wayne-Workman
I feel dumb now, should have tried that yesterday. Simply deleting those folders/doing another git clone and everything is working fine now. Thanks a lot for the help!