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.

impossible to creat...
 
Notifications
Clear all

impossible to create user

7 Posts
3 Users
0 Reactions
3,935 Views
(@franck73)
Posts: 2
New Member
Topic starter
 
[#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!


 
Posted : 12 Jan 2021 10H49
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

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


 
Posted : 12 Jan 2021 18H45
(@tanguy-daniel)
Posts: 12
Active 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.

 


 
Posted : 15 Jan 2021 20H10
babynus
(@babynus)
Posts: 14954
Main Contributor 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


 
Posted : 17 Jan 2021 15H23
(@franck73)
Posts: 2
New Member
Topic starter
 

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


 
Posted : 18 Jan 2021 10H32
(@tanguy-daniel)
Posts: 12
Active 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.


 
Posted : 20 Jan 2021 12H31
babynus
(@babynus)
Posts: 14954
Main Contributor 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 ?


 
Posted : 23 Jan 2021 14H19
Share:

Scroll to Top