Data truncated for column 'overdue_email_sent' at row 1

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
OCReactive
Posts: 45
Joined: Wed Apr 01, 2015 10:33 am

Data truncated for column 'overdue_email_sent' at row 1

Post by OCReactive »

Script URL:
Version of script: 3.2.2
Hosting company: own server
URL of phpinfo.php: https://justpaste.it/8d72m
URL of session_test.php: OK: PHP sessions work fine
What terms did you try when SEARCHING for a solution: Data truncated for column, Can't execute SQL

Write your message below:

I'm having this error when trying to modify the due date, if I set a due date when creating the ticket it works well.

Code: Select all

Error

Can't execute SQL: UPDATE `hesk_tickets` SET `due_date` = '2021-04-29', `overdue_email_sent`=0, `history`=CONCAT(`history`,'

2021-04-28 17:47:13 | due date updated to 2021-04-29 by John Smith(jsmith)
') WHERE `trackid`='HS2-REZ-48EQ' AND (`due_date` IS NULL OR `due_date` != '2021-04-29')

MySQL said:
Data truncated for column 'overdue_email_sent' at row 1
 

WARNING
Debug mode is enabled. Make sure you disable debug mode in settings once HESK is installed and working properly.
Óscar
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Data truncated for column 'overdue_email_sent' at row 1

Post by Klemen »

What is the structure of your hesk_tickets table? Can you check in phpMyAdmin and post it here (export just structure, no data)?
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
OCReactive
Posts: 45
Joined: Wed Apr 01, 2015 10:33 am

Re: Data truncated for column 'overdue_email_sent' at row 1

Post by OCReactive »

Hope I've done rigth, I'm not an expert in DDBB https://justpaste.it/8rfsa
Óscar
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Data truncated for column 'overdue_email_sent' at row 1

Post by Klemen »

Looks like your database was from Mods for Hesk and as such not properly updated to Hesk 3 style.

Try this:
1. go to phpMyAdmin
2. BACKUP existing hesk_tickets table
3. on the "Structure" tab, change overdue_email_sent type from ENUM to TINYINT. Set default value to 0 (no quotes)
4. save and test
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
OCReactive
Posts: 45
Joined: Wed Apr 01, 2015 10:33 am

Re: Data truncated for column 'overdue_email_sent' at row 1

Post by OCReactive »

It worked like a charm, thank you so much ;)
Óscar
Post Reply