View Single Post
  #11  
Old 17th July 2012, 18:26
sotourda sotourda is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Now I have the next error:

error_log:

[Tue Jul 17 18:09:45 2012] [error] [client 192.168.1.2] PHP Warning: nl2br() expects parameter 1 to be string, array given in /usr/local/ispconfig/interface/web/monitor/show_log.php on line 127, referer: https://192.168.1.101:8080/index.php#

/* fetch the Data from the DB */
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = '" . $app->db->quote($logId) . "' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");

if(isset($record['data'])) {
$data = unserialize($record['data']);

$logData = nl2br($data);

$app->tpl->setVar("log_data", $logData);
} else {
$app->tpl->setVar("log_data", $app->lng("no_logdata_txt"));
}

$app->tpl->setVar("list_head_txt", $title);
$app->tpl->setVar("log_id",$logId);
$app->tpl->setVar("list_desc_txt", $description);
$app->tpl->setVar("time", getDataTime($logId));
$app->tpl->setVar("monTransDate", $monTransDate);
$app->tpl->setVar("monTransRefreshsq", $monTransRefreshsq);

$app->tpl_defaults();
$app->tpl->pparse();


access_log:

192.168.1.2 - - [17/Jul/2012:18:21:59 +0200] "GET /monitor/show_data.php?type=fail2ban HTTP/1.1" 200 261 "https://192.168.1.101:8080/index.php#" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"

Last edited by sotourda; 17th July 2012 at 23:36.
Reply With Quote
Sponsored Links