• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    PHP7 fatal error fresh install

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    4
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      laintimes
      last edited by laintimes

      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```
      1 Reply Last reply Reply Quote 0
      • L
        laintimes
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman
          last edited by Wayne Workman

          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.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 1
          • Tom ElliottT
            Tom Elliott
            last edited by

            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.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            142

            Online

            12.1k

            Users

            17.3k

            Topics

            155.3k

            Posts
            Copyright © 2012-2024 FOG Project