Fog Installation PhP Error
-
PHP Fatal error: Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(59): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(82): HookManager->processEvent(‘SEARCH_PAGES’, Array)\n#3 [internal function]: FOGPageManager->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(23): FOGBase::getClass(‘FOGPageManager’)\n#6 {main}\n thrown in /var/www/fog/lib/db/pdodb.class.php on line 443
This happens at You still need to install/update your database schema. This can be done by opening a web browser and going to:
-
@Sudheerbattu This sounds a bit like: https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy
Which version of FOG do you have installed and on which OS are you running it?
-
Hi Sebastian
Thanks for your reply.
I tried to install Fog version 1.4.4 On three different distributions
Ubuntu 14.04.5 ====> I have the above error
Ubuntu 16.04.3 ====> I see a new error /usr/bin/lsb_release
Cannot add PPA: ‘ppa:~ondrej/ubuntu/php’.
ERROR: ‘~ondrej’ user or team does not exist.
Centos7.3 =====> Fog requires PhP Version 5.5 or > but the system have 5.4.* installedLet me know if you need more details.
Thanks
Sudheer -
@sudheerbattu All branches of the fog installer is currently passing the installer tests on those mentioned distributions: http://theworkmans.us:20080/fog_distro_check/installer_dashboard.html
Must be your environment or firewall or web filter.
-
Hi,
Finally I was able to install the Fog on Centos7 with little tweaks. Because of Proxy server remiphp56 was not installed so after the fog installation I have to uninstall Php5.4.6 and Install PhP 5.6 for fog 1.4.4 to work.
Thanks
Sudheer