1
0
-1

After I install open-audit,
I can not log in normally.

The logs displayed on the browser are as follows.

--------------------------------------------
A PHP Error was encountered

Severity: 8192

Message: __autoload () is deprecated, use spl_autoload_register () instead

Filename: config / config.php

Line Number: 349

--------------------------------------------
As a way of installation,
It is default.

Is there a problem with how to write config.php?

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      I'm guessing you have upgraded PHP to 7.2 on that machine.

      I've just run up a Centos 7 machine, fully patched it and installed Open-AudIT. It works as expected. I then upgraded PHP and it breaks as you describe.

      Use the standard shipped PHP (5.4.16) and your issue will be resolved.

      I'll look into PHP 7.2 support.

      1. Takahiro SUZUKI

        Hi Mark. I have completed the installation, Because your advice was accurate! My implementation procedure is as follows. 1.erase php7 module # yum erase php 2.install php5.4 # yum install php54 php54-mbstring php54-mysql 3.copy 04omk-proxy.conf # cp /usr/local/omk/install/04omk-proxy.conf /etc/httpd/conf/. 4.edit httpd.conf and restart httpd # echo "ServerName <HOSTNAME>" >> /etc/httpd/conf/httpd.conf # vi /etc/httpd/conf/httpd.conf <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> <IfModule dir_module> DirectoryIndex index.html index.html.var index.php </IfModule> # chsh -s /bin/bash apache# systemctl restart httpd 5.re-install open-audit # ./OAE-Linux-x86_64-release_2.2.6.run Thank you very much!

      CommentAdd your comment...
    2.  
      1
      0
      -1

       

      Hi Mark.
      Thank you for your reply
      • >Was this a new install of Open-AudIT or an Upgrade; 
      • if an upgrade what version did you upgrade from and to? 
      This was clean install.
      This version is
      OAE-Linux-x86_64-release_2.2.6.run

       

       

      > What is the operating system this is installed on?

      # more /etc/redhat-release 

      CentOS Linux release 7.5.1804 (Core) ( on VirtualBox )

       

      > Are there any errors in the Open-AudIT logs?

      ------------------------------------------------------------------------------------------------------

       /usr/local/omk/log/open-audit.log

      </div>

      [Tue Jul 31 00:29:05 2018] [error] 32008 OMK::oae->get: Invalid JSON returned in response from OAC.

      [Tue Jul 31 00:29:05 2018] [error] 32008 OMK::oae->get: URL: http://127.0.0.1/open-audit/index.php/widgets

      [Tue Jul 31 00:29:05 2018] [error] 32008 OMK::oae->get: <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

       

      <h4>A PHP Error was encountered</h4>

       

      <p>Severity: 8192</p>

      <p>Message:  __autoload() is deprecated, use spl_autoload_register() instead</p>

      <p>Filename: config/config.php</p>

      <p>Line Number: 349</p>

       

      </div>

      [Tue Jul 31 00:29:09 2018] [error] 32007 OMK::oae->get: Invalid JSON returned in response from OAC.

      [Tue Jul 31 00:29:09 2018] [error] 32007 OMK::oae->get: URL: http://127.0.0.1/open-audit/index.php/widgets

      [Tue Jul 31 00:29:09 2018] [error] 32007 OMK::oae->get: <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

       

      <h4>A PHP Error was encountered</h4>

       

      <p>Severity: 8192</p>

      <p>Message:  __autoload() is deprecated, use spl_autoload_register() instead</p>

      <p>Filename: config/config.php</p>

      <p>Line Number: 349</p>

       

       

      </div>

      ------------------------------------------------------------------------------------------------------
      Thank you.
        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hello Takahiro,

        Just a couple questions so we can help sort this out;

        • Was this a new install of Open-AudIT or an Upgrade; if an upgrade what version did you upgrade from and to?
        • What is the operating system this is installed on?
        • Are there any errors in the Open-AudIT logs?

        Remember, if you are a supported customer please send your questions in to support@opmantek.com.

        Thanks,

        Mark H

        1. Takahiro SUZUKI

          Hi Mark. Thank you for your reply >Was this a new install of Open-AudIT or an Upgrade; if an upgrade what version did you upgrade from and to? This was clean install. This version is OAE-Linux-x86_64-release_2.2.6.run > What is the operating system this is installed on? # more /etc/redhat-release CentOS Linux release 7.5.1804 (Core) ( on VirtualBox ) > Are there any errors in the Open-AudIT logs? ------------------------------------------------------------------------------------------------------ /usr/local/omk/log/open-audit.log </div> [Tue Jul 31 00:29:05 2018] [error] 32008 OMK::oae->get: Invalid JSON returned in response from OAC. [Tue Jul 31 00:29:05 2018] [error] 32008 OMK::oae->get: URL: http://127.0.0.1/open-audit/index.php/widgets [Tue Jul 31 00:29:05 2018] [error] 32008 OMK::oae->get: <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>A PHP Error was encountered</h4> <p>Severity: 8192</p> <p>Message: __autoload() is deprecated, use spl_autoload_register() instead</p> <p>Filename: config/config.php</p> <p>Line Number: 349</p> </div> [Tue Jul 31 00:29:09 2018] [error] 32007 OMK::oae->get: Invalid JSON returned in response from OAC. [Tue Jul 31 00:29:09 2018] [error] 32007 OMK::oae->get: URL: http://127.0.0.1/open-audit/index.php/widgets [Tue Jul 31 00:29:09 2018] [error] 32007 OMK::oae->get: <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>A PHP Error was encountered</h4> <p>Severity: 8192</p> <p>Message: __autoload() is deprecated, use spl_autoload_register() instead</p> <p>Filename: config/config.php</p> <p>Line Number: 349</p> </div> ------------------------------------------------------------------------------------------------------ Thank you.

        CommentAdd your comment...