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

PHP Fatal error

Scheduled Pinned Locked Moved Solved
FOG Problems
3
5
3.1k
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.
  • J
    JGeear
    last edited by May 11, 2016, 12:56 AM

    Hi I am running a FOG 1.2.0 server with Ubuntu 16.04, PHP 7.0.4-7, Mysql 5.7.12 and Apache/2.4.18 installed. When I open up firefox to configure the database I receive the white screen of death. The Apache error log is as follows:
    [Tue May 10 20:00:05.8 2016] [:error] [pid 1305] [client IP47012] PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /var/www/fog/commons/init.php:97\nStack trace:\n#0 /var/www/fog/commons/init.php(202): Initiator::startInit()\n#1 /var/www/fog/commons/base.inc.php(7): require(‘/var/www/fog/co…’)\n#2 /var/www/fog/management/index.php(3): require(‘/var/www/fog/co…’)\n#3 {main}\n thrown in /var/www/fog/commons/init.php on line 97. Any help would be appreciated!

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Wayne Workman May 11, 2016, 6:48 AM May 11, 2016, 1:14 AM

      It’s because a function that FOG 1.2.0 used in older PHP was removed from PHP 7.

      This is fixed in FOG Trunk: https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk

      If you wish to use 1.2.0 (which I would recommend against), you’ll need to install an older version of PHP and then probably re-run the installer.

      –Fixed

      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 0
      • T
        Tom Elliott
        last edited by May 11, 2016, 1:57 AM

        This is definitely not a bug. Ubuntu 16.04 always installs php 7. FOG 1.2.0 used the function you’re seeing but that function was removed from php 7. Trunk installs support php 7. Maybe you’d have better progress with it?

        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
        • J
          JGeear
          last edited by May 11, 2016, 4:11 AM

          Thanks for the info! When updating the install fails at shutting down the web service. The error generated is as follows:
          [Wed May 11 00:0 2016] [:error] [pid 1448] [client IP:56466] PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /var/www/fog/commons/init.php:97\nStack trace:\n#0 /var/www/fog/commons/init.php(202): Initiator::startInit()\n#1 /var/www/fog/commons/base.inc.php(7): require(‘/var/www/fog/co…’)\n#2 /var/www/fog/management/index.php(3): require(‘/var/www/fog/co…’)\n#3 {main}\n thrown in /var/www/fog/commons/init.php on line 97
          [Wed May 11 00:06:2016] [mpm_prefork:notice] [pid 1432] AH00169: caught SIGTERM, shutting down

          T 1 Reply Last reply May 11, 2016, 10:29 AM Reply Quote 0
          • T
            Tom Elliott @JGeear
            last edited by May 11, 2016, 10:29 AM

            @JGeear There isn’t a call to shutdown the interface. The SIGTERM, Shutting down is the message that is saying it is shutting down.

            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
            1 / 1
            • First post
              3/5
              Last post

            172

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project