Hello,
Andy, the problem does not come from your script (User_Edit_Profile.)
I have just discovered that the problem is present in Links SQL.
Situation 1.
I record a new user since the sector of administration.
The obligatory fields are: Username Password Email.
If I do not give information in the fields, Links SQL give an error message.
For example: Invalid format for username.
Situation 2.
a) I record a new user since the sector of administration.
I filled all fields and I validate the recording.
b) Then, I modify the recording of the user.
I remove the data for Password and email.
No error message is turned over and the recording is validated without email and Password.
Why no error message ?
c) I removed fields username, Password and email.
Links SQL gives the error:
A fatal error has occured:
GT::SQL::Table (4662): Wrong argument passed to this subroutine. Usage: No primary key passed to modify! at /home/server/cgi-bin/LinksSQL/admin/Links/Table/Users.pm line 107.
Please enable debugging in setup for more details.
I believe that it is a bug of Links SQL (?).
Your opinion ?
How to solve this problem ?
Thank you for your assistance.
Mick
Andy, the problem does not come from your script (User_Edit_Profile.)
I have just discovered that the problem is present in Links SQL.
Situation 1.
I record a new user since the sector of administration.
The obligatory fields are: Username Password Email.
If I do not give information in the fields, Links SQL give an error message.
For example: Invalid format for username.
Situation 2.
a) I record a new user since the sector of administration.
I filled all fields and I validate the recording.
b) Then, I modify the recording of the user.
I remove the data for Password and email.
No error message is turned over and the recording is validated without email and Password.
Why no error message ?
c) I removed fields username, Password and email.
Links SQL gives the error:
A fatal error has occured:
GT::SQL::Table (4662): Wrong argument passed to this subroutine. Usage: No primary key passed to modify! at /home/server/cgi-bin/LinksSQL/admin/Links/Table/Users.pm line 107.
Please enable debugging in setup for more details.
I believe that it is a bug of Links SQL (?).
Your opinion ?
How to solve this problem ?
Thank you for your assistance.
Mick