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

    More PHP errors after upgrade to trunk

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    5
    1.4k
    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.
    • apathetic_adminA
      apathetic_admin
      last edited by apathetic_admin

      Update: On Tom’s recommendation I blew away /var/www/fog and /var/www/html and reran the installer and all is well.

      Going from Github 7254 to 8140.

      Previously while upgrading to 7254 I had issues which Tom helped me resolve.

      Currently, when I run the installfog script, I get to the part where I need to do the database update. Apache returns 500, and tailing the error log file shows an unending stream of errors:

      [Thu Jun 16 13:59:56.565405 2016] [:error] [pid 4925] [client 172.16.0.215:57046] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.586163 2016] [:error] [pid 5158] [client 172.16.0.117:56988] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.589868 2016] [:error] [pid 5095] [client 172.16.0.215:57047] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/management/index.php(2): require('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.593972 2016] [:error] [pid 5055] [client 172.16.0.246:63319] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.613829 2016] [:error] [pid 5081] [client 172.16.0.246:63320] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/management/index.php(2): require('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.638648 2016] [:error] [pid 5158] [client 172.16.0.95:59207] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.639778 2016] [:error] [pid 5118] [client 172.16.0.117:56989] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.668276 2016] [:error] [pid 5081] [client 172.16.0.95:59208] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.693870 2016] [:error] [pid 5096] [client 172.16.0.117:56990] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      [Thu Jun 16 13:59:56.700321 2016] [:error] [pid 5055] [client 172.16.0.95:59209] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/service/servicemodule-active.php(2): require_once('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      

      This entry is specifically from me accessing the page http://fog.domain.com/fog/management for the update:

      [Thu Jun 16 14:00:37.408236 2016] [:error] [pid 5118] [client 172.16.7.34:65250] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/fog/lib/fog/fogcore.class.php:87\nStack trace:\n#0 /var/www/fog/commons/init.php(132): FOGCore::setSessionEnv()\n#1 /var/www/fog/commons/base.inc.php(9): require_once('/var/www/fog/co...')\n#2 /var/www/fog/management/index.php(2): require('/var/www/fog/co...')\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/fogcore.class.php on line 87
      

      I did run updates on by Ubuntu server before trying to upgrade FOG, however in the past month I attempted this without doing an update to Ubuntu beforehand and encountered the same issues, however I rolled back my VM snapshot because I didn’t have time to troubleshoot then.

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

        What do you see in the file on line 87?

        Specifically: /var/www/html/fog/lib/fog/fogcore.class.php on line number 87

        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
        • apathetic_adminA
          apathetic_admin
          last edited by

                 $_SESSION['PluginsInstalled'] = (array)$this->getActivePlugins();
          
          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @apathetic_admin
            last edited by

            @apathetic_admin do me (and yourself) a favor.

            If you have any special files in your fog web folder, make a backup somewhere else.

            Delete /var/www/fog and /var/www/html/fog

            Rerun the installer. Your error should go away.

            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

            apathetic_adminA 1 Reply Last reply Reply Quote 2
            • apathetic_adminA
              apathetic_admin @Tom Elliott
              last edited by

              @Tom-Elliott Man, it’s always just that easy.

              Muchas gracias.

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

              164

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project