Linked types do not migrate

This topic contains 31 replies, has 5 voices, and was last updated by  Kiran 5 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #455621

    Nick Gardener
    Full Member
    Post count: 101

    I’ve just run a v2 test update and linked data is not staying linked. Am i missing something or is this feature not supported yet?

    #455658

    Alex Rollin
    Moderator
    Post count: 27815

    Can you say more? What addon are you updating, V what to what?

    #455667

    Nick Gardener
    Full Member
    Post count: 101

    I can give you a login too, but:

    gd_blogs -> links to -> gd_places
    gd_events -> links to -> gd_places

    But when I upgrade to v2, that connection is gone.

    1. It doesn’t set up the custom field to reflect how the linking works in v2
    2. If you add the custom field ‘Linked post: places’ the data doesn’t show
    3. The connections don’t exist in the geodir_cp_link_posts table

    #455670

    Nick Gardener
    Full Member
    Post count: 101

    Rather.. there is *some* data in geodir_cp_link_posts, but the linkedID doesn’t exist.

    #455762

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I’ll flag this for kiran to look at on Monday, as far as i know the conversion was done and that should work.

    Thanks,

    Stiofan

    #455764

    Nick Gardener
    Full Member
    Post count: 101

    Dang I was really hoping to get this done over the weekend. I’ll run a few more test upgrades and see if I can work out the pattern. Thanks!

    #455783

    Nick Gardener
    Full Member
    Post count: 101

    Curiouser and curiouser.. I just ran another migration and the geodir_cp_link_posts table doesn’t exist at all.

    I do wonder if it’s something to do with packages, and or the non-creation of the appropriate custom field to link them before populating the data.

    #455785

    Nick Gardener
    Full Member
    Post count: 101

    And neither category nor linked posts are saving.

    #455944

    Nick Gardener
    Full Member
    Post count: 101

    gentle nudge 🙂

    #455948

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #455952

    Nick Gardener
    Full Member
    Post count: 101

    Hi

    That’s okay I’ll wait for the updated code. I’m happy to be a tester for you too if you want to send zips. Any idea of a timeline on this?

    If I export all and reimport all, is that a viable workaround?

    #455955

    Kiran
    Moderator
    Post count: 7069

    Hello,

    That’s okay I’ll wait for the updated code. I’m happy to be a tester for you too if you want to send zips. Any idea of a timeline on this?

    The script will run if you are going v1 to v2 conversion 1st time. For existing converted site i need to do it manually. That’s way i asked for FTP & DB credentials, so i can apply patch on your site.

    If I export all and reimport all, is that a viable workaround?

    Can you clarify what data you asking about export/reimport?

    Kiran

    #455956

    Nick Gardener
    Full Member
    Post count: 101

    That’s okay — I’ve only been running this on clone sites so far until it’s right — I didn’t want to take any risks with the data!

    With export > import I was thinking that perhaps it would handle the data more cleanly this rather than a direct upgrade; but ignore it, it was just a thought.

    #456074

    Kiran
    Moderator
    Post count: 7069

    Hello Nick,

    Here is patch to fix link post types v1 to v2 conversion data. Patch: https://github.com/AyeCode/geodirectory/pull/521/commits/e621ec1d38c8cd32722c83867b9d6eaf902c0f5d
    After applying this patch, you can try v1 to v2 conversion on your clone site which have not performed v1 to v2 conversion before.

    Please follow instructions given here for conversion: https://wpgeodirectory.com/docs-v2/geodirectory/installation/#convert

    Kiran

    #456094

    Nick Gardener
    Full Member
    Post count: 101

    Is this patch included in .38?

Viewing 15 posts - 1 through 15 (of 32 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket