Forum

impossible to creat...
 
Notifications
Retirer tout

impossible to create user

7 Posts
3 Utilisateurs
0 Reactions
3,934 Vu
(@franck73)
Posts: 2
New Member
Début du sujet
 
[#7184]

Hello,

I would try the project so I have download the version v9.0.2 of projeqtor.
I have installed it on my server apache v2.4.38 and php 7.3.
The database is postgreSQL v11.9.
When I try to create an user(or something else) by clicking on the save button, the button appears unavailable but nothing append (Capture1.png).
There is no data in the database.

In the log file, no action reported by clicking on the save button:
2021-01-12 08:09:23.007 ===== TRACE ===== NEW CONNECTED USER 'admin'

I have a mistake on JavaScript debbuger (Capture.PNG) :
Erreur sur loadContent('../tool/saveObject.php', 'resultDivMain', 'objectForm', 'true').
La destination 'resultDivMain' n'est pas un 'node' ou pas un 'widget'.

Is there someone already have this issue and maybe the way to repair this issue?

Many thanks for your help!


 
Posté : 12/01/2021 10:49 am
(@babynus)
Posts: 14952
Membre Admin
 

Please look for errors in log file and post errors here.


 
Posté : 12/01/2021 6:45 pm
(@tanguy-daniel)
Posts: 12
Eminent Member
 

Fichier model/persistence/SqlElement.php
Ligne 1068, enlever l'espace entre control () et control() :$control = $this->control ();Devient :$control = $this->control();
Toujours le même fichier :
Ligne 4591, il manque un paramètre à la fonction :$right = securityGetAccessRightYesNo ( 'menu' . get_class ( $this ), (($this->id) ? 'update' : 'create'), $this );$right = securityGetAccessRightYesNo ( 'menu' . get_class ( $this ), (($this->id) ? 'update' : 'create'), $this, $user );Le paramètre $user est a rajouter à la fin comme ci dessus.

 


 
Posté : 15/01/2021 8:10 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Thanks for your fix proposale

1) space before parenthesis : I don't think it may be an issue. It apppears on meny other lines without issue.
2) add $user parameter : it should not be an issue, it is optional parameter,$user value will be set if not passed.

It updated like proposed, but I'm not sure it will fix Franck73 issue

NB : Please follow Forum rules and post your message in english


 
Posté : 17/01/2021 3:23 pm
(@franck73)
Posts: 2
New Member
Début du sujet
 

HI,

First of all, many thanks to try to find a solution to my issue!

I tried the solution proposed by tanguy.daniel but it did not resolve the problem.

Nothing append and log file is the same as before.

always same mistake in .js file :"Erreur sur loadContent('../tool/saveObject.php', 'resultDivMain', 'objectForm', 'true').
La destination 'resultDivMain' n'est pas un 'node' ou pas un 'widget'." -> projeqtor.js:180:11


 
Posté : 18/01/2021 10:32 am
(@tanguy-daniel)
Posts: 12
Eminent Member
 

I 'm agree with you.
But something is strange, when you give null as parameter it's end on an "exit()".
THe workaround i gave solve a issue i have encountered trying to create a new account. The user cannot log in the first time because of the "exit()' . When i set parameter to $user it works.


 
Posté : 20/01/2021 12:31 pm
(@babynus)
Posts: 14952
Membre Admin
 

Please check for errors in PHP error log file.
Or possibly you have other errors on the browser console.
Please look for any error to post here to give us some cliue.

NB ;: which browser / version are you using ?


 
Posté : 23/01/2021 2:19 pm
Share:
Retour en haut