ProjeQtOr free project management software - [SOLVED] Error when login as Team Member - ProjeQtOr
 

[SOLVED] Error when login as Team Member

More
05 Jan 2020 13:23 #1 by jmu
Hello,
When login for the first time as Team Member the following error occurs
2020-01-03 12:59:36.254 ===== TRACE ===== NEW CONNECTED USER 'SN2-IAI'
2020-01-03 13:00:01.317 ***** ERROR ***** [V8.3.1] ERROR *****
2020-01-03 13:00:01.350 ***** ERROR ***** [V8.3.1] on file 'C:\laragon\www\projeqtor\model\UserMain.php' at line (435)
2020-01-03 13:00:01.382 ***** ERROR ***** [V8.3.1] cause = Undefined index:
2020-01-03 13:00:17.283 ***** ERROR ***** [V8.3.1] ERROR *****
2020-01-03 13:00:17.289 ***** ERROR ***** [V8.3.1] on file 'C:\laragon\www\projeqtor\model\UserMain.php' at line (435)
2020-01-03 13:00:17.298 ***** ERROR ***** [V8.3.1] cause = Undefined index:

There is no issue when login at the first time as Project Manager.

Regards
JMU

Please Connexion or Create an account to join the conversation.

More
06 Jan 2020 14:56 #2 by Damian.sd
Hello,

we can't reproduce your issue.
Can you send screenshot of this user definition and user profil definition.

Please Connexion or Create an account to join the conversation.

More
07 Jan 2020 10:35 #3 by babynus
Hi,

We cannot reproduce this issue.
It looks like some default configuration is not correctly done.
If it was a first install, please check if errors are logged in projeqtor log file during install process.

What you can do as a workaround :
=> open screen "acces rights" > "access to forms" and save (without any change)
=> open screen "acces rights" > "access to data (project dependant)" and save (without any change)
This may fix your issue.

It it still does not work, try and change code in model/UserMain.php, lines 434 and after from
        if ($arObj->idAccessProfile<1000000) {
          $scopeArray=array( 'read' =>  $accessScopeList[$accessProfile->idAccessScopeRead],
                           'create' => $accessScopeList[$accessProfile->idAccessScopeCreate],
                             'update' => $accessScopeList[$accessProfile->idAccessScopeUpdate],
                             'delete' => $accessScopeList[$accessProfile->idAccessScopeDelete],
                             'report' =>  $accessScopeList[$accessProfile->idAccessScopeRead], );
          if ($accessScopeList[$accessProfile->idAccessScopeRead]=='ALL') {
            if (!$obj) $this->_accessControlVisibility='ALL';
          }
        } else {
to
        if ($arObj->idAccessProfile<1000000) {
          if ($accessProfile->id) {
            $scopeArray=array( 'read' =>  $accessScopeList[$accessProfile->idAccessScopeRead],
                               'create' => $accessScopeList[$accessProfile->idAccessScopeCreate],
                               'update' => $accessScopeList[$accessProfile->idAccessScopeUpdate],
                               'delete' => $accessScopeList[$accessProfile->idAccessScopeDelete],
                               'report' =>  $accessScopeList[$accessProfile->idAccessScopeRead], );
            if ($accessScopeList[$accessProfile->idAccessScopeRead]=='ALL') {
              if (!$obj) $this->_accessControlVisibility='ALL';
            }
          }
        } else {    
This is a fix we'll add in next patch

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
08 Jan 2020 17:22 #4 by jmu
Saving access rights forms did not solve the issue.
Changing code solves it.

Thank you

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.031 seconds