Jump to content

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


Recommended Posts

Posted (edited)

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
  • Administrators
Posted

As stated in Discord, we need additional info.....

 

phpVMS version

PHP version

MySQL or MariaDB version

Skin used

Addon modules used

 

This is most probably a StrictMode issue.

  • Administrators
Posted

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?

Posted (edited)
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
Posted

Ok guys,

with some tests i find a solution.

 

In phpvms_acarsdata and in column lat and lng VARCHAR(15), i change to LONG TEXT and acarsmap works fine.

 

Thanks for your time reading my post.

Regards,

Miguel

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

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

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...