Error when import Post Types

Support MB Custom Post Type Error when import Post TypesResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49119
    m.stefano@digitaldomain.it[email protected]
    Participant

    I receive an error when importing a file containing the Post Types definition exported from other website. Both versions are aligned with 3.2.0.

    The error I received via email is:
    An E_ERROR error was caused on line 82 of the file /var/www/sitexyz.it/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Import.php. Messaggio di errore: Uncaught TypeError: Cannot access offset of type string on string in /var/www/sitexyz.it/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Import.php:82
    Stack trace:
    #0 /var/www/sitexyz.it/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Import.php(58): MBCPT\Import->import_json()
    #1 /var/www/sitexyz.it/htdocs/wp-includes/class-wp-hook.php(324): MBCPT\Import->import()
    #2 /var/www/sitexyz.it/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /var/www/sitexyz.it/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /var/www/sitexyz.it/htdocs/wp-admin/admin.php(176): do_action()
    #5 /var/www/sitexyz.it/htdocs/wp-admin/edit.php(10): require_once('...')
    #6 {main}
    thrown

    #49120
    m.stefano@digitaldomain.it[email protected]
    Participant

    Sorry for my mistake in trying to import a Settings Page into a Post Type.
    Everything works perfectly.

    Perhaps I'll use a header in the files to generate an alert that the wrong import type is being used...
    For distracted people, like me in this case.

    Sorry again.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.