Support » Plugin: WP Go Maps (formerly WP Google Maps) » Cant migrate data table due to corruption.

  • Resolved Michael

    (@mgparisi)


    We are able to export the data with PHPMyAdmin, but sadly our import fails…

    ERROR 1416 (22003) at line 94056 in file: ‘micwil211_dream_press.sql’: Cannot get geometry object from data you send to the GEOMETRY field

    I suspect this is this plugin, and from what I can tell it happens when trying to create the index. Strange its working at all on production and I wonder what is going on…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Michael

    (@mgparisi)

    This also prevents us from using Automated migration tools.

    Thread Starter Michael

    (@mgparisi)

    mysqli_query(): (22023/3037): Invalid GIS data provided to function st_astext.

    When visualizing the data in wc_wpgmza of row longlat with MyPHPAdmin

    This is the same table and row causing the issue.

    • This reply was modified 3 years, 1 month ago by Michael.
    Thread Starter Michael

    (@mgparisi)

    Very good chance this fixes the issue. I do not see any side effects, yet.
    UPDATE wc_wpgmza SET lnglat = POINT( lng, lat )

    Plugin Author DylanAuty

    (@dylanauty)

    Hi @mgparisi,

    Thank you for reaching out, we do appreciate your time. Our apologies for the trouble experienced.

    Yes, that is correct, we make use of spatial data for our positioning storage, while a duplicate of this data is stored in the lat/lng data as well as a backup of location data in a non-spatial format, as well as backwards compatibility for older versions of the plugin.

    Unfortunately, exporting this data or making use of an automated migration system may cause the export SQL to fail due to the spatial data not being set, or in some cases not being encoded as it is exported.

    As such, for migration, we do recommend excluding the spatial data columns to allow the export to complete without the column.

    We would also like to thank you for sharing your solution, we will definitely look into some automated steps which include this in the future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cant migrate data table due to corruption.’ is closed to new replies.