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 Download Attached files – Project

  • error Download Attached files – Project

    Posted by bangbang on December 17, 2010 at 07:16

    When i click link of Attached File of Project, i get error below:

    Cannot add or update a child row: a foreign key constraint fails (temp file operation failed) (‘INSERT INTO tsesion (ID_usuario, accion, fecha, IP_origen,descripcion, utimestamp) VALUES (“”,”ACL Violation”,”2010-12-17 10:11:30″,”172.16.10.49″,”Trying to access Downloads”, 1292555490)’) in /data/web/integria/include/functions_db.php on line 162

    miguel replied 13 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • bangbang

    Member
    December 22, 2010 at 07:04
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    caused:
    it caused create new session, so session when login not valid here.

    solution:
    modified integria/operation/projects/project_download_file.php
    then move session_start();

    before

    session_start();
    require_once (‘../../include/config.php’);
    require_once (‘../../include/functions.php’);
    require_once (‘../../include/functions_db.php’);

    after

    require_once (‘../../include/config.php’);
    require_once (‘../../include/functions.php’);
    require_once (‘../../include/functions_db.php’);
    session_start();
  • miguel

    Member
    March 25, 2011 at 13:40
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok, thanks for the tip.