• Resolved panon

    (@panon)


    I have created a Custom Post Type in domainA (which is a demo website).

    Moving the installation to domainB (live website) everything works EXCEPT Custom Post Type which is completely lost in admin. When i am trying to create again the same post type with tha same slug i am getting an error (which sound fair) that some other post type uses this slug!!!

    How can i get back the Custom Post Type and the posts created in this?

    PS: I have updated permalinks of course and changed the old url to new in any instance in db

    • This topic was modified 11 months, 1 week ago by panon.
    • This topic was modified 11 months, 1 week ago by panon.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    To be certain, did the settings for CPTUI get migrated as well? They’d be stored in the wp_options table.

    Also, what do you mean by “lost” ? The permalinks give you a 404 error?

    If you have the settings still in place without having had to touch them, and the 404 part above is true, you may just need to flush your permalink rules, which can be done by visiting the permalinks settings page, and clicking save without making any changes to the actual settings there.

    Thread Starter panon

    (@panon)

    I am not aware of the mentioned “migration”. What i am supposed to do.

    I am not seeing the Post Type when i choose “Add/Edit Post Types” and of course there is no Post Type on the left side in the administration.

    I have saved the Permalinks page several times

    Thread Starter panon

    (@panon)

    The created CPT is lost in every possible place (like menus for example). It is like there is not created at all.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The migration would be this:

    I have created a Custom Post Type in domainA (which is a demo website).

    Moving the installation to domainB (live website)

    If you’re not seeing anything when visiting the CPTUI settings, and perhaps more readily, visiting CPT UI > Tools menu and the textarea on the right, then something happened with the settings during the migration. You should be able to use the demo website to visit that same admin menu and get the settings from there. Just copy/paste that blob of text into the left panel and click the “import” button. This won’t handle the content itself, which should still be in the database, but it will handle settings. If you registered taxonomies as well, repeat the same process with the “Taxonomies” tabs.

    Thread Starter panon

    (@panon)

    Unfortunately i am not seeing anything in Tools menu and the demo website (domainA) is deleted and not accessible anymore.
    Is there anything else to do to recover Port Type and posts included?

    • This reply was modified 11 months, 1 week ago by panon.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If the originating source has already been removed, then you’ll need to re-create the settings manually, especially if you don’t have a backup available.

    Thankfully post type settings are typically pretty straightforward. If you’re on the latest CPTUI, the “I’m trying to migrate things in to CPTUI, let me save this” checkbox should allow you to save even if there are slug conflicts.

    That said I’m curious what the slug in question is on that part.

    Thread Starter panon

    (@panon)

    When i am trying to recreate the Post Type i am getting the same error

    Please choose a different post type name.?downloads?matches an existing page slug, which can cause conflicts.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    To be certain, did you see my comment about the “I’m trying to migrate things in to CPTUI, let me save this” bit?

    Is it possible you have Easy Digital Downloads active? I know they use “downloads” post type.

    Thread Starter panon

    (@panon)

    yes i have checked this and still have the same error.

    By the way i have recreated the demo website and i was able to copy the post type in tools of the demo website and migrated to new.
    The CPT is now shown on the left area of the administration but now i have another issue.

    When i am choosing the CPT on the left side to see the posts inside i have a critical error.

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.

    Thread Starter panon

    (@panon)

    No i dont have “Easy Digital Downloads” installed and the slug of the CPT is “down”

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    You’ll need to check your error logs for the source of the error, we’re not going to have any way to know what that is.

    Thread Starter panon

    (@panon)

    Thank you. I think i am gonna take the whole move website from beginning. I suppose something gone really bad from the beginning.

    I will get back if anything appeared again on a new clean migration of the whole installation.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Custom Post Type lost after domain change’ is closed to new replies.