Support » Plugin: Pods - Custom Content Types and Fields » Migrate CPT UI Not Working

  • Resolved godvsgodvs

    (@godvsgodvs)


    I have a Custom Post Type called Restaurants that was created using CPT UI. I want to switch to Pods for all future CPT’s and I want to import the current CPT Restaurants into Pods. Supposedly I should be able to do that using the Migrate CPT UI component, but when I try it doesn’t see Restaurants and instead says No Post Types were found. It does find it however if I wanted to extend an existing post type.

    I just think it’s cleaner to totally eliminate CPT UI and just use Pods.

    https://wordpress.org/plugins/pods/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Jim True

    (@jimtrue)

    That is only a migrate tool, so once you got it in, it should be clear. If you can’t import it that way, try exporting to a CSV or look at WP All Import.

    Thread Starter godvsgodvs

    (@godvsgodvs)

    Jim, It is clear. It’s not working. The component description says “Import Custom Post Types and Taxonomies from Custom Post Type UI”. It also has a screen shot showing what it should look like. As previously stated, it does not even show or find the custom post I created with CPT UI. The component is supposed to both import the CPT into Pods and then delete it from CPT UI if you choose to. At least that’s what it says it does.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    I’ll ping @tw2113 and see what he thinks might be the issue here.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Only immediate thing I can think of is the option name change that came with 1.0.x

    Old: cpt_custom_post_types
    New: cptui_post_types

    Old option rows in the db haven’t been deleted by me, so if you’re on 1.0.x+ you should have both at this point.

    Thread Starter godvsgodvs

    (@godvsgodvs)

    CPT UI is version 1.0.7. I’ll take a look at the MySQL database table and see if I can come up with a clue.

    Thread Starter godvsgodvs

    (@godvsgodvs)

    I checked and the option is in fact named cptui_post_types. I also checked the posts themselves and they are of type “restaurants” so that seems normal to me. I don’t pretend to understand the workings of the tables in WordPress yet. I presume from what you said that Migrate CPT UI is looking at the options table for CPT’s.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Our component looks like it’s not compatible with CPT UI 1.0.x, we’ll get that fixed and reply here when you can grab a fresh copy from our GitHub.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    I’ve added the issue to our tracker here:

    https://github.com/pods-framework/pods/issues/3109

    Plugin Contributor pglewis

    (@pglewis)

    This is ready to be tested on the 2.x branch in GitHub.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    You can get the latest test version here:

    http://pods.io/latest/

    Thread Starter godvsgodvs

    (@godvsgodvs)

    That didn’t work out at all. It crashed the entire site including admin. I had to use FTP to delete the plugin folder before the site came back up. Here is the error.

    Fatal error: Call to undefined function isnull() in …/wp-content/plugins/pods-2.x/components/Migrate-CPTUI/Migrate-CPTUI.php on line 60

    Plugin Contributor pglewis

    (@pglewis)

    Sorry about that, a typo my IDE didn’t save me from. I’ve pushed a fix just now which should get merged into the latest branch soon.

    Plugin Contributor pglewis

    (@pglewis)

    Latest branch is ready to be tested again and I’ve double-checked that it does not generate a fatal error this time around.

    If you have a local or dev server I would still recommend testing there first. At the very least be sure to make a backup of your production database first, better safe than sorry always.

    Thread Starter godvsgodvs

    (@godvsgodvs)

    The migrate seemed to work but there are issues. I can see the CPT’s which are called Restaurants, in the admin ui. But the archive page doesn’t work and I checked to see that it was turned on in the settings. The address in the browser changes to mazcommunity.com/restaurants but the page remains on the home page.

    Also, when looking at the listing of restaurants in the admin ui there is no view link and the same when you edit a page. However if a create a new CPT in pods, it has the view links.

    I am guessing that there is some field in the database that didn’t get changed correctly or there is some remnant left from CPT UI even though it has now been uninstalled. Any ideas would be appreciated or I’ll just have to create a new pod and manually re-enter all the data.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    In the pod editor, try going to the Advanced options tab and see if your post type is public, has rewrite checked, and has the right rewrite slug set for you.

    Then also try going to Settings > Permalinks and then updating your site’s permalinks. Often times, rewrites have to be flushed when doing these sorts of things and sometimes the code that we have which should be flushing them doesn’t quite run as expected depending on other themes/plugins.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Migrate CPT UI Not Working’ is closed to new replies.