Jump to content

Error: (1406) - Data too long for column 'lat' at row 1 (SOLVED)


mt007

Recommended Posts

phpVMS version : Simpilot 5.5.2
PHP version: php5.6
MySQL or Maria DB version: MariaDB 10.4.17
Skin used: Crystal

 

 

Hi,

using kACARS or CCFTracker i see this error:

 

Error: (1406) - Data too long for column 'lat' at row 1

 

In phpmyadmin i have a table phpvms_acarsdata and in column lat and lng VARCHAR(15).

 

I change to VARCHAR(7) but error remain.

 

In log.txt for see error i find coordinates like this one; '39.8207508932871','-8.88761192976597'

 

How to fix this, anyone know's?

 

Thanks guys.

Regards.

Miguel

 

 

Edited by mt007
Link to comment
Share on other sites

27 minutes ago, ProAvia said:

I see you edited your post above with some of the info.

 

What MySQL version?

Are you using the default crystal skin or another?

Any addon modules?

Im testing with Crystal.

And MySQL or Maria DB version: MariaDB 10.4.17

 

And modules below:

 

IMG_20201201_172239.jpg

Edited by mt007
Link to comment
Share on other sites

  • mt007 changed the title to Error: (1406) - Data too long for column 'lat' at row 1 (SOLVED)
  • Administrators

The real issue is probably MariaDB 10.4 and Strict Mode.

 

We know that phpVMS  5.5.2 will work under MariaDB 10.1 . Some users have reported issues with MariaDB 10.2 and above. Some of these issues were related to Strict Mode. Search here for "strict mode".

 

Your work-around may work. There may be other DB tables that may need the same adjustments. Only time will tell. Keep us advised in this thread if you notice other similar issues.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...