Liferay import from wordpress throws ArticleTitleException on content

I am trying to import wordpress content into liferay 6.1 using the wordpress importer plugin 1.2
It works fine on blogs , but fails on the page content – page is created in the structure however the content throws an exception:

Starting the WordPress importer
Creating page  "Hello world!"
com.liferay.portlet.journal.ArticleTitleException
at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validate(JournalArticleLocalServiceImpl.java:3280)
at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validate(JournalArticleLocalServiceImpl.java:3370)
at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.addArticle(JournalArticleLocalServiceImpl.java:187)

If i edit the wordpress exported XML file and change from
<wp:post_type>page</wp:post_type>
to
<wp:post_type>post</wp:post_type>
import is successfull.

Read More

Any ideas what might be the case? Please help

Related posts

Leave a Reply

1 comment

  1. I checked the source code and found that this exception is occuring because of the condition

    if ((classNameId == 0) &&
        (titleMap.isEmpty() ||
         Validator.isNull(titleMap.get(defaultLocale)))) {
    
        throw new ArticleTitleException();
    }
    

    So, in your case, the JournalArticle which you are importing has some flaws either of the following

    1. The article’s classNameId is not available at the time of import
    2. No title is available for any locale or no title is available for defaultLocale

    Could you please check this particular article in word press?