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 Error in exporting CSV? Bug?

  • Error in exporting CSV? Bug?

    Posted by Robb11 on February 26, 2009 at 13:41

    Hi! I have installed Pandora FMS 2.0 and I am configuring it.

    I have tried to export data in CSV and I got the following error after I have clicked on “Download file” (next to the floppy image):

    blank page with this error in big black font:

    Warning: require(include/config.php) [function.require]: failed to open stream: No such file or directory in /var/www/pandora/operation/agentes/export_csv.php on line 21

    Fatal error: require() [function.require]: Failed opening required ‘include/config.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/pandora/operation/agentes/export_csv.php on line 21

    I thought that was a permissions mistake error.

    I have found, instead, that in the /var/www/pandora/operation/agentes/export_csv.php file there is this requirement:

    require (“include/config.php”);

    I have corrected it in

    require (“../../include/config.php”);

    and it seems to work. Is it a right thing? Did anybody of you encouter this problem?

    After this correction, another error occurred:

    Fatal error: Call to undefined function safe_input() in /var/www/pandora/include
    /functions_db.php on line 141

    What about these two issues?

    Thanks in advance,

    Robb.

    raul replied 15 years, 12 months ago 3 Members · 5 Replies
  • 5 Replies
  • daniels

    Member
    March 2, 2009 at 11:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    This doesn’t work for me either.. But I got no error… Just the blank screen…

  • Robb11

    Member
    March 2, 2009 at 12:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I don’t know why you see it as blank. Permissions on some files or dir?

    Mmm… Try to do that on the online demo of Pandora: http://scorpia.artica.es/pandora/

    user demo password demo.

    That’s the thing which happens to me to. The first workaround works but move the problem on another problem.

    safe_input() is not defined in functions_db.php!

  • raul

    Member
    March 2, 2009 at 13:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi!

    Looks like the demo code is get from SVN, but not all the functions were updated. Let me check that.

    daniels: Probably you don’t get the error due to the error level set in php.ini

    We’ll check and fix ASAP.

    Thanks Robb

  • Robb11

    Member
    March 2, 2009 at 13:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Raul but the same problem is occurred in my installation! And I have installed with the installer which is in the tar.gz downloaded from sourceforge!

    Why?

  • raul

    Member
    March 3, 2009 at 09:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Roberto, I’ve answered you by email. I write it again:

    We have solved the issue, you can download the file from:

    http://pandora.svn.sourceforge.net/viewvc/pandora/branches/pandora_2.0/pandora_console/operation/agentes/export_csv.php?revision=1498&pathrev=1498

    and change your version with this one.

    THIS BUG IS ALSO CONFIRMED ON 2.1 VERSION. Just download the file using the url above and replace it. Sorry about that

    Raúl