I've extended the WordpressBlogEntry class using the instructions at https://drupal.org/node/1593478. However, I'm getting a number of error messages on most page loads now. They look something like:

Notice: Undefined index: post_type in WordPressBlogEntry->__construct() (line 805 of [XXX]/sites/all/modules/contrib/wordpress_migrate/wordpress_item.inc).
Notice: Undefined index: text_format in WordPressItemMigration->__construct() (line 168 of [XXX]/sites/all/modules/contrib/wordpress_migrate/wordpress_item.inc).
Notice: Undefined index: path_action in WordPressItemMigration->__construct() (line 179 of [XXX]/sites/all/modules/contrib/wordpress_migrate/wordpress_item.inc).
Notice: Undefined index: tag_vocabulary in WordPressItemMigration->__construct() (line 226 of [XXX]/sites/all/modules/contrib/wordpress_migrate/wordpress_item.inc).
Notice: Undefined index: category_vocabulary in WordPressItemMigration->__construct() (line 227 of [XXX]/sites/all/modules/contrib/wordpress_migrate/wordpress_item.inc).
Notice: Undefined index: podcast_field in WordPressItemMigration->__construct() (line 242 of [XXX]/sites/all/modules/contrib/wordpress_migrate/wordpress_item.inc).
Notice: Undefined index: attachment_field in WordPressItemMigration->__construct() (line 249 of [XXX]/sites/all/modules/contrib/wordpress_migrate/wordpress_item.inc).

Debugging the __construct() function for my class, these are the arguments its receiving that throw an error, as they don't include a number of arguments needed for WordPressBlogEntry:

Array
(
    [filename] => wordpress://[XXX].xml
    [group_name] => default
    [machine_name] => [XXX]BlogEntry
)

Comments

dafeder’s picture

Status: Active » Closed (duplicate)