PHP7 fatal error fresh install



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

    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 192.168.0.101:60794] 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/base.inc.php(49): 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 :

    Git
    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 https://github.com/FOGProject/fogproject.git /root/fogproject
    cd /root/fogproject
    git checkout dev-branch
    cd bin
    ./installfog.sh```

  • 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 “readme.md” 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.


  • Moderator

    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 : https://github.com/FOGProject/fogproject/tree/dev-branch

    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 http://downloads.sourceforge.net/project/freeghost/FOG/1.3.4/fog_1.3.4.tar.gz | tar -xzfC fog_1.3.4/

    SVN svn checkout https://svn.code.sf.net/p/freeghost/code/tags/1.3.4/ fog_1.3.4/
    git git clone https://github.com/fogproject/fogproject.git 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 ./installfog.sh
    Enjoy


Log in to reply
 

457
Online

38715
Users

10544
Topics

99817
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.