[v2.0] Can't execute SQL

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
MPH2008
Posts: 33
Joined: Thu Sep 04, 2008 12:58 pm

[v2.0] Can't execute SQL

Post by MPH2008 »

Hi folks,

I'm trying to add users to Hesk as an administrator but am getting the above message on submission. I'm not too hot with SQL - is it this to do with permissions?
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Turn on the debug mode in settings and try again. Than compare the error message you get with similar error messages (and solutions) on the forum.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
MPH2008
Posts: 33
Joined: Thu Sep 04, 2008 12:58 pm

Post by MPH2008 »

Can't execute SQL: INSERT INTO `hesk_users` (`user`,`pass`,`isadmin`,`name`,`email`,`signature`,`categories`,`heskprivileges`) VALUES ('','7c9c32a35c441053e73171151492943f3befccf5','0','','','','1,','can_view_tickets,can_reply_tickets,can_change_cat,')

MySQL said:
Field 'ratingneg' doesn't have a default value

I've editted out some of the password/user details, but that is the debugged error in it's entirety. I'm assuming something about the technician/helper/feedback rating is causing this on initial account creation.
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try searching:
viewtopic.php?t=2338
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
MPH2008
Posts: 33
Joined: Thu Sep 04, 2008 12:58 pm

Post by MPH2008 »

D'oh! Thanks Klemen. Image
Post Reply