• Resolved itsoakum

    (@itsoakum)


    Hello, I have created a custom post type using CPT UI. I tried to export it via the Custom Post Type UI Tools -> Post Types tab “Export Post Types settings” window and then import the data via the “Import Post Types” window on another instance of my site.

    When I click the “Import” button the page appears to background refresh, but nothing happens – i.e. the Custom Post Type is not imported. I put the site in debug mode and got the following warning to the screen:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘cptui__admin_notice’ not found or invalid function name in /wordpress/wp-includes/class-wp-hook.php on line 307

    CPT UI: 1.12.1 WordPress: 6.0.1

    Any help to help troubleshoot would be great.

    Thanks!
    Adam

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you provide your export copy of the data, I’d like to try things out on my end to see if I can recreate.

    Possible there’s something with the data that we need to account for in some way.

    Thread Starter itsoakum

    (@itsoakum)

    I think I found the issue and now can successfully export/import.. You may consider this a bug to address at some point ??

    I had entered double quotes in part of the Post Type Description field and this appears to have broken the import. Once removed, the import worked. Here’s an example:

    This is a “Post Type Description” example.

    When saved, the double-quotes are HTML encoded and the description field contains the HTML code for quotes where the quotes originally were.

    This use of double-quotes in the description field appears to break the import function.

    • This reply was modified 2 years, 4 months ago by itsoakum. Reason: Used an html code in the original message that was tranlated and made the response confusing (was trying to show the code verbatim)
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Coincidentally we have this same topic open in the last month https://github.com/WebDevStudios/custom-post-type-ui/issues/876

    We just haven’t released it quite yet as quotes in descriptions hasn’t been a huge pressing matter, but we will be getting it handled.

    Thread Starter itsoakum

    (@itsoakum)

    Thanks! Great plugin, BTW!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Import of Custom Post Type not working’ is closed to new replies.