SOLVED PHP7 fatal error fresh install

  • Server
    • FOG Version: 1.3
    • OS: Ubuntu 14.04
    • Service Version:
    • OS:

    hi everybody,

    i got this fatal error, i dont understand what is the problem, anyone can help me to fix this ?

    [php7:error] [pid 60126] [client] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/db/pdodb.class.php:227\n
    Stack trace:\n#0 /var/www/html/fog/lib/db/pdodb.class.php(168): PDODB::currentDb(Object(PDODB))\n
    #1 /var/www/html/fog/lib/db/pdodb.class.php(177): PDODB->_connect(false)\n
    #2 /var/www/html/fog/lib/db/pdodb.class.php(100): PDODB->_connect()\n
    #3 /var/www/html/fog/lib/db/databasemanager.class.php(43): PDODB->__construct()\n
    #4 /var/www/html/fog/lib/fog/loadglobals.class.php(42): DatabaseManager->establish()\n
    #5 /var/www/html/fog/lib/fog/loadglobals.class.php(79): LoadGlobals::_init()\n
    #6 /var/www/html/fog/commons/ LoadGlobals->__construct()\n
    #7 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...')\n
    #8 {main}\n  thrown in /var/www/html/fog/lib/db/pdodb.class.php on line 227

    i followed this process :

    Update and then Install git (or 'yum' instead of 'apt-get' if you are running a RedHat based OS)
    sudo apt-get update && apt-get install git
    Initial checkout and installation
    sudo -i
    git clone /root/fogproject
    cd /root/fogproject
    git checkout dev-branch
    cd bin
  • Senior Developer

    If you repull and install the latest version of the working-1.3.4 branch you should have the error thrown corrected for now.

    Thanks for reporting.

    @Wayne-Workman The info he is showing is from the “” file.

    While we are not in “stable” form yet, the readme’s are updated so when I pull in the working-1.3.4 into the master branch I don’t have to remember to edit these files.

  • Want to point out that 1.3.4 is not released as of yet. Release candidates exist, yes, but not a release deemed worthy of everyone upgrading for - yet.

  • fixed, use :

    Install Stable (1.3.4)

    Install and update your chosen linux server

    Download the file(s)

    All that is needed to start installation is to download the files to perform the install. Choose one of the following methods you prefer;

    tar/zip wget | tar -xzfC fog_1.3.4/

    SVN svn checkout fog_1.3.4/
    git git clone fog_1.3.4/
    Go into the downloaded source/bin folder

    cd fog_1.3.4/bin
    Run the Install and follow all prompts accordingly

    sudo ./