Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Advanced troubleshooting PHP fatal errors and warnings in /var/www/html/pandora_console/pandora_console.log

  • PHP fatal errors and warnings in /var/www/html/pandora_console/pandora_console.log

    Posted by xyros on March 18, 2019 at 18:56

    Not sure if you guys actually examine the contents of /var/www/html/pandora_console/pandora_console.log, but there a lot of PHP errors and warnings and logs there.  Here is a sample:

    [14-Mar-2019 17:31:52 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): No such file or directory in /var/www/html/pandora_console/include/db/mysql.php on line 46
    [14-Mar-2019 17:31:53 UTC] PHP Warning:  require_once(/var/www/html/pandora_console/include//include/functions_ui.php): failed to open stream: No such file or directory in /var/www/html/pandora_console/general/login_page.php on line 22
    [14-Mar-2019 17:31:53 UTC] PHP Fatal error:  require_once(): Failed opening required ‘/var/www/html/pandora_console/include//include/functions_ui.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/html/pandora_console/general/login_page.php on line 22
    [15-Mar-2019 13:24:27 UTC] PHP Warning:  Creating default object from empty value in /var/www/html/pandora_console/godmode/modules/manage_network_components.php on line 635
    [15-Mar-2019 11:01:50 UTC] PHP Warning:  Creating default object from empty value in /var/www/html/pandora_console/godmode/agentes/agent_conf_gis.php on line 62
    [15-Mar-2019 11:29:27 UTC] PHP Warning:  array_merge(): Argument #1 is not an array in /var/www/html/pandora_console/godmode/menu.php on line 427
    [18-Mar-2019 06:57:28 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in /var/www/html/pandora_console/include/functions_api.php on line 270
    [18-Mar-2019 06:57:28 UTC] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/pandora_console/include/functions_api.php on line 275

    Running:
    Pandora FMS v7.0NG.732 – Build PC190227 – MR 12

    PHP version: 7.2.16-1.el7.remi

    eduardo-corral replied 5 years, 7 months ago 2 Members · 3 Replies
  • 3 Replies
  • eduardo-corral

    Member
    March 19, 2019 at 13:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Not sure if you guys actually examine the contents of /var/www/html/pandora_console/pandora_console.log, but there a lot of PHP errors and warnings and logs there.  Here is a sample:

    [14-Mar-2019 17:31:52 UTC] PHP Warning:  mysqli_connect(): (HY000/2002): No such file or directory in /var/www/html/pandora_console/include/db/mysql.php on line 46
    [14-Mar-2019 17:31:53 UTC] PHP Warning:  require_once(/var/www/html/pandora_console/include//include/functions_ui.php): failed to open stream: No such file or directory in /var/www/html/pandora_console/general/login_page.php on line 22
    [14-Mar-2019 17:31:53 UTC] PHP Fatal error:  require_once(): Failed opening required ‘/var/www/html/pandora_console/include//include/functions_ui.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/html/pandora_console/general/login_page.php on line 22
    [15-Mar-2019 13:24:27 UTC] PHP Warning:  Creating default object from empty value in /var/www/html/pandora_console/godmode/modules/manage_network_components.php on line 635
    [15-Mar-2019 11:01:50 UTC] PHP Warning:  Creating default object from empty value in /var/www/html/pandora_console/godmode/agentes/agent_conf_gis.php on line 62
    [15-Mar-2019 11:29:27 UTC] PHP Warning:  array_merge(): Argument #1 is not an array in /var/www/html/pandora_console/godmode/menu.php on line 427
    [18-Mar-2019 06:57:28 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in /var/www/html/pandora_console/include/functions_api.php on line 270
    [18-Mar-2019 06:57:28 UTC] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/pandora_console/include/functions_api.php on line 275

    Running:
    Pandora FMS v7.0NG.732 – Build PC190227 – MR 12

    PHP version: 7.2.16-1.el7.remi

    Greetings, xyros

    As I explained in your other post, please try to update your MR to prevent possible failures. 

    Let us know when you’ve done it. 

    Best regards, 

    Eduardo.

  • xyros

    Member
    March 19, 2019 at 18:15
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I replied in the other post that I had already applied all of those .sql files, in order. The only step I had never done before is the “tconfig” step.

    I did not know, till your post, that I had to do the “tconfig” step. I have now done it, but still have the error messages.

    Alternately, is there a good way to transfer all my settings to a clean new server?

  • eduardo-corral

    Member
    March 20, 2019 at 15:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I replied in the other post that I had already applied all of those .sql files, in order.  The only step I had never done before is the “tconfig” step.

    I did not know, till your post, that I had to do the “tconfig” step.  I have now done it, but still have the error messages.

    Alternately, is there a good way to transfer all my settings to a clean new server?

    Good morning, xyros

    Can you please send us your config.php file? You can find it in /var/www/html/pandora_console/include

    The values contained in that file should match to those related to the database parameters in pandora_server.conf. 

    About the transference to another server, please do take a look to this article in the wiki: Migrating to another system

    Best regards, 

    Eduardo.