Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Strange problem wit...
 
Notifications
Clear all

Strange problem with a new installation 8.1.2

3 Posts
2 Users
0 Reactions
2,024 Views
(@surfufu)
Posts: 4
Active Member
Topic starter
 
[#6146]

using mysql

I had been able to create 2 users, I closed the guest, for all the next users created, it was impossible to login / change the password

log :

2019-07-23 16:39:54.716 ** ERROR ** [V8.1.2] on file '/var/www/html/Prj3dRTeam/model/UserMain.php' at line (436)
2019-07-23 16:39:54.716 ** ERROR ** [V8.1.2] cause = Undefined index:
2019-07-23 16:40:33.230 ** ERROR ** [V8.1.2] ERROR **
2019-07-23 16:40:33.230
** ERROR ** [V8.1.2] on file '/var/www/html/Prj3dRTeam/model/UserMain.php' at line (436)
2019-07-23 16:40:33.230
** ERROR ** [V8.1.2] cause = Undefined index:
2019-07-23 16:40:58.731
** ERROR ** [V8.1.2] ERROR **

fix :

I realized that the problem was link to the id 123 of the table accessright with the value #10 to idAcessProfile

the last id of the table accessprofile was #9 and not #10 ... after a little research in the *.sql file i found :

-- V8.1 : remove this accessprofile which is no used
--INSERT INTO `${prefix}accessprofile` (`id`,`name`,`description`,`idAccessScopeRead`,`idAccessScopeCreate`,`idAccessScopeUpdate`,`idAccessScopeDelete`,`sortOrder`,`idle`) values 
--(10,'accessReadOwnOnly',null,2,1,1,1,900,0);

INSERT INTO `${prefix}accessright` (`idProfile`, `idMenu`, `idAccessProfile`) VALUES
(1, 91, 1),
(2, 91, 1),
(3, 91, 1),
(4, 91, 10),
(6, 91, 10),
(7, 91, 10),
(5, 91, 10);

and this look like my problem ... so i added the id #10 with
(10,'accessReadOwnOnly',null,2,1,1,1,900,0) in accessprofile

and now it's work ...

even if I don't understand where why I need the id #10 as it look like it had been removed if the 8.1

maybe it's because I canceled the guest ?

have a good day 🙂


 
Posted : 23 Jul 2019 19H11
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

It seems you "closed" an accessScope (screen "Access mode") that was still used by "Access to Data".
After closing an "access mode", you sould take care that all "Access to data" are still relevant.

We'll add a fix in next patch to avoid raising an error.


 
Posted : 25 Jul 2019 18H43
(@surfufu)
Posts: 4
Active Member
Topic starter
 

I closed the guest to avoid the guest access ... look like the problem


 
Posted : 25 Jul 2019 19H08
Share:

Scroll to Top