View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Direct acces to projects - Page 3 - ProjeQtOr
 
 

Direct acces to projects

More
03 Jan 2012 19:30 #13 by Liolic
Copy of a log file:

2012-01-01 18:25:02 ===== TRACE ===== NEW CONNECTED USER 'olivier'
2012-01-01 18:47:09 ===== TRACE ===== DISCONNECTED USER 'Olivier'
2012-01-01 18:49:32 ===== TRACE ===== NEW CONNECTED USER 'Olivier'
2012-01-01 19:09:46 ===== TRACE ===== DISCONNECTED USER 'Olivier'
2012-01-01 19:09:59 ===== TRACE ===== NEW CONNECTED USER 'Olivier'
2012-01-01 21:35:15 ===== TRACE ===== NEW CONNECTED USER 'Olivier'
2012-01-01 21:46:13 ===== TRACE ===== DISCONNECTED USER 'Olivier'
2012-01-01 21:46:26 ===== TRACE ===== NEW CONNECTED USER 'olivier'
2012-01-01 21:52:09 ===== TRACE ===== DISCONNECTED USER 'Olivier'
2012-01-01 21:52:26 ===== TRACE ===== NEW CONNECTED USER 'Olivier'
2012-01-01 21:54:33 ===== TRACE ===== DISCONNECTED USER 'Olivier'
2012-01-01 21:55:06 ===== TRACE ===== NEW CONNECTED USER 'Olivier'
2012-01-01 22:02:44 ===== TRACE ===== DISCONNECTED USER 'Olivier'
2012-01-01 22:03:25 ===== TRACE ===== NEW CONNECTED USER 'Olivier'
2012-01-01 22:15:06 ===== TRACE ===== DISCONNECTED USER 'Olivier'
2012-01-01 22:15:21 ===== TRACE ===== NEW CONNECTED USER 'bragoni'
2012-01-01 22:16:19 ===== TRACE ===== NEW CONNECTED USER 'Olivier'
2012-01-01 22:19:03 ===== TRACE ===== DISCONNECTED USER 'Bragoni'
2012-01-01 22:19:19 ===== TRACE ===== NEW CONNECTED USER 'bragoni'

Nothing more. All log files are identical (only date and hour changes)

Please Log in or Create an account to join the conversation.

More
05 Jan 2012 13:19 #14 by babynus
I registered this issue as ticket #523.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
09 Jan 2012 19:13 #15 by babynus
Hi,
I investigated about the blank alert.
It seems that a statement echos some data, without any reason.

Can you check that :

1) Content of /tool/checkAlertToDisplay.php is exactly :
<?php
// Artefact to avoid scriptLog display even if debugLog=4. Comment the line to have it displayed again.
$noScriptLog=true;
require_once "../tool/projector.php";

if (! array_key_exists('user',$_SESSION)) {
	echo "noUser";
	return;
}
$user=$_SESSION['user'];
$crit=array('idUser'=>$user->id,'readFlag'=>'0', 'idle'=>'0');
$alert=new Alert();
$lst=$alert->getSqlElementsFromCriteria($crit, false, null, 'id asc');
if (count($lst)==0) {
	return;
}
$date=date('Y-m-d H:i:s');
foreach($lst as $alert) {
	if ($alert->alertDateTime<=$date) {
	  echo '<b>' . htmlEncode($alert->title) . '</b>';
	  echo '<br/><br/>';
	  echo  $alert->message;
	  echo '<input type="hidden" id="idAlert" name="idAlert" value="' . $alert->id . ' " ./>';
	  echo '<input type="hidden" id="alertType" name="alertType" value="' . $alert->alertType . '" ./>';
	  return;
	}
}

2) there is no "echo" in your parameter.php file.

3) There is no actie "echo" command in /model/persistence/SqlElement.php

4) Check that you did not add an "echo" command in /tool/projector.php file or other file

Thanks.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
09 Jan 2012 20:15 #16 by Liolic
Hi,

I checked all files as you asked me:

1) Content of /tool/checkAlertToDisplay.php

is exactly as you described.

2) there is no "echo" in your parameter.php file

there are no echo command in this file.

3) There is no active "echo" command in /model/persistence/SqlElement.php

All "echo" commands are like commentaries
//echo
or
/*echo

4) Check that you did not add an "echo" command in /tool/projector.php file or other file

here are all echo commands:
if ( ! is_file($parametersLocation) ) {
    echo "*** ERROR ****<br/>";
    echo " parameter file not found at '" . $parametersLocation . "'<br/>";
    echo " Check file '/tool/parametersLocation.php' or remove it to use '/tool/parameters.php'.<br/>";
    echo " <br/>";
    echo " If problem persists, you may get some help at the forum at <a href='http://projector.toolware.fr/'>projectOr web site </a>.";
    exit;
______________________________________________________________
if (is_file("login.php")) {
      include "login.php";
    } else {
      echo '<input type="hidden" id="lastOperation" name="lastOperation" value="testConnection">';
      echo '<input type="hidden" id="lastOperationStatus" name="lastOperationStatus" value="ERROR">';    
      echo '<span class="messageERROR" >' . i18n('errorConnection') . '</span>';
    }
    exit;
______________________________________________________________
if ( $changePassword ) {
		      if (is_file("passwordChange.php")) {
		        include "passwordChange.php";
		      } else {
		        echo '<input type="hidden" id="lastOperation" name="lastOperation" value="testPassword">';
		        echo '<input type="hidden" id="lastOperationStatus" name="lastOperationStatus" value="ERROR">';    
		        echo '<span class="messageERROR" >' . i18n('invalidPasswordChange') . '</span>';
		      }
		      exit;
______________________________________________________________
function throwError($message, $code=null) {
	global $globalCatchErrors;
  echo '<span class="messageERROR" >ERROR : ' . $message . '</span>';
  echo '<input type="hidden" id="lastSaveId" value="" />';
  echo '<input type="hidden" id="lastOperation" value="ERROR" />';
  echo '<input type="hidden" id="lastOperationStatus" value="ERROR" />';
  if (! $globalCatchErrors) {
    exit();
______________________________________________________________
if ( ! file_exists($dir) ) {
      echo '<br/><span class="messageERROR">' . i18n("invalidLogDir",array($dir)) . '</span>';   
    } else if ( ! is_writable($dir)) {
      echo '<br/><span class="messageERROR">' . i18n("lockedLogDir",array($dir)) . '</span>';   
    } else {
      writeFile( $msg,$file);
    }
______________________________________________________________
The others are like commentaries
//echo

I added nothing by myself. The oly transformations that I did are in lang. file,
$firstPage="planningMain.php";
in main.php file, change the menu order in tables and finally as you asked me, I changed the receivers list (checkboxes) in "Parameters"/"Controls & automations"/"Indicators" - and deleted old messages.

Perhaps I can send to you all my php files. I did not upgrade yet to the new version, as I had no time.

That's all.
Thank you for your help.
Best regards,
Olivier

Please Log in or Create an account to join the conversation.

More
10 Jan 2012 09:38 #17 by babynus
Hi,

Here is just a workaround.
Replace in /view/js/projectorDialog.php
function checkAlertRetour(data) {
  if (data) {
	var reminderDiv=dojo.byId('reminderDiv');
	var dialogReminder=dojo.byId('dialogReminder');
	reminderDiv.innerHTML=data;
	//dojo.parser.parse(reminderDiv);
	dojo.style(dialogReminder, {visibility:'visible', display:'inline', bottom: '-200px'});
	//alertDisplayed=true;
	var toColor='#FFCCCC';
    if (dojo.byId('alertType') && dojo.byId('alertType').value=='WARNING') {
		toColor='#FFFFCC';
	}
	if (dojo.byId('alertType') && dojo.byId('alertType').value=='INFO') {
		toColor='#CCCCFF';
	}
	dojo.animateProperty({
        node: dialogReminder,
        properties: {
            bottom: { start: -200, end: 0 },
            right: 0,
            backgroundColor: { start: '#FFFFFF', end: toColor }
        },
        duration: 2000
    }).play();
	
  } else {
	setTimeout('checkAlert();',alertCheckTime*1000);  
  }
}
with
function checkAlertRetour(data) {
  if (data) {
	var reminderDiv=dojo.byId('reminderDiv');
	var dialogReminder=dojo.byId('dialogReminder');
	reminderDiv.innerHTML=data;
	if (dojo.byId('alertType')) {
		//dojo.parser.parse(reminderDiv);
		dojo.style(dialogReminder, {visibility:'visible', display:'inline', bottom: '-200px'});
		//alertDisplayed=true;
		var toColor='#FFCCCC';
	    if (dojo.byId('alertType') && dojo.byId('alertType').value=='WARNING') {
			toColor='#FFFFCC';
		}
		if (dojo.byId('alertType') && dojo.byId('alertType').value=='INFO') {
			toColor='#CCCCFF';
		}
		dojo.animateProperty({
	        node: dialogReminder,
	        properties: {
	            bottom: { start: -200, end: 0 },
	            right: 0,
	            backgroundColor: { start: '#FFFFFF', end: toColor }
	        },
	        duration: 2000
	    }).play();
     }
  } else {
	setTimeout('checkAlert();',alertCheckTime*1000);  
  }
}
if this fixes the issue, it will be included in V2.0.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
12 Jan 2012 01:06 #18 by Liolic
Hi Babynus,

There is no such files
/view/js/projectorDialog.php
but I foud a
/view/js/projectorDialog.js
so I tried to modify this file and it seems that alerts have disapeared.
It seems that you got it!
I you think that version 2.0 will be ready soon, I will wait to upgrade and forget the 1.9.1 version that seems not to be a major update. The 1.9.0 works fine for me now.
Thanks for your help.

Best regards,
Liolic

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.040 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.