View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Cannot login - Cannot use a scalar value as an array - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Cannot login - Cannot use a scalar value as an array

More
01 Juil 2021 23:59 #1 by projeqtor-user
I downloaded  V9.1.5  last night and installed it between last night and today. I installed this on Bitnami wampstack-7.4.9-0 on Windows 10 Home.

I am getting the following error when trying to login for the first time.

2021-07-01 17:33:46.671 ***** ERROR ***** [V9.2.0] ERROR *****
2021-07-01 17:33:46.672 ***** ERROR ***** [V9.2.0] on file 'C:\Bitnami\wampstack-7.4.9-0\apache2\htdocs\project\tool\projeqtor.php' at line (4611)
2021-07-01 17:33:46.672 ***** ERROR ***** [V9.2.0] cause = Cannot use a scalar value as an array

I tried to search for a solution with no success.

Any ideas?

Please Connexion or Create an account to join the conversation.

More
02 Juil 2021 16:40 #2 by babynus
I have a real concern with your issue as in V9.1.5 projeqtor.php file does not show any possible issue on line 4611.
But looking at log file I saw you are using V9.2.0 (note : we just deployed V9.2.1 ;) )

Your issue is strange, I never faced it.
Possibly it is linke to PHP version and log level.
Please try and change line 4609 in projeqtor.php, from

  if (! isset($_SESSION[$projeqtorSession]) ) {

to

  if (! isset($_SESSION[$projeqtorSession]) or !is_array($_SESSION[$projeqtorSession])) {

Does it solve the issue ?

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
02 Juil 2021 20:36 #3 by projeqtor-user
Many Thanks for the quick reply!

I made the change. I got the same error.

2021-07-02 14:31:25.459 ***** ERROR ***** [V9.2.0] ERROR *****
2021-07-02 14:31:25.461 ***** ERROR ***** [V9.2.0] on file 'C:\Bitnami\wampstack-7.4.9-0\apache2\htdocs\project\tool\projeqtor.php' at line (4611)
2021-07-02 14:31:25.461 ***** ERROR ***** [V9.2.0] cause = Cannot use a scalar value as an array

I took the version number from the web page... I did not see the version number in the log. ;-)

Cheers!!

Please Connexion or Create an account to join the conversation.

More
05 Juil 2021 15:31 #4 by babynus
Try and change lines 4602-4613 (or about) in tool/projeqtor.php with

function setSessionValue($code, $value, $global=false) {
  global $paramDbName, $paramDbPrefix;
  echo "setSessionValue(code=$code) to value ";
  var_dump($value);
  echo "<br/>";
  if ($global) {
    $projeqtorSession='ProjeQtOr';
  } else {
    $projeqtorSession='ProjeQtOr_'.$paramDbName.(($paramDbPrefix)?'_'.$paramDbPrefix:'');
  }
  if (! isset($_SESSION[$projeqtorSession]) or !is_array($_SESSION[$projeqtorSession])) {
    $_SESSION[$projeqtorSession]=array();
    echo "initialise array for _SESSION[$projeqtorSession]<br/>";
  }
  echo "   > store value for _SESSION[$projeqtorSession][$code]<br/>";
  $_SESSION[$projeqtorSession][$code]=$value;
  echo "   >OK<br/>";
}

Then in parameters.php, change value for variable $logLevel

$logLevel='3';

Then try and connect.
You should get some messages, please post them here
(you can then comment / remove lines wiht echo added in projeqtor.php) 
 

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
05 Juil 2021 20:22 - 05 Juil 2021 20:25 #5 by projeqtor-user
From the log file.

2021-07-05 14:19:36.450
DEBUG
loginCheck : current db version = 'V9.2.0'
2021-07-05 14:19:36.457
DEBUG
User->authenticate('admin', 'owHgPDhN42Bsv5IEnA==')
2021-07-05 14:19:36.461
DEBUG
User->authenticate : md5 encryption
2021-07-05 14:19:36.462
DEBUG
User->authenticate : wrong password ba0267c642f635ef7535aada214a6a98!=owHgPDhN42Bsv5IEnA== (exit)
2021-07-05 14:19:36.463
DEBUG
loginCheck : unidentified incorrect authentification
2021-07-05 14:19:36.463 ===== TRACE ===== Login error for user 'admin'

It is interesting that it is saying wrong password - I have not yet been able to change the password yet. Can I change the password manually temporarily?

Do you want me to download the newest release?

Cheers!!
Last edit: 05 Juil 2021 20:25 by projeqtor-user.

Please Connexion or Create an account to join the conversation.

More
06 Juil 2021 19:43 #6 by projeqtor-user
I should have posted this too.

setSessionValue(code=lang) to value string(2) "en"
> store value for _SESSION[ProjeQtOr_projeqtor][lang]
>OK
setSessionValue(code=globalParametersArray) to value array(0) { }
> store value for _SESSION[ProjeQtOr_projeqtor][globalParametersArray]
>OK
setSessionValue(code=triggeredEventList) to value array(0) { }
> store value for _SESSION[ProjeQtOr_projeqtor][triggeredEventList]
>OK
Invalid login parameters

I apologize for the formatting of the log data.

I am a retired systems internal engineer. I opened the database and checked that a password did exist and that is was indeed admin. All is well.

I am not familiar with PHP. Sorry.

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.043 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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