留言板

Remove old portlets from layout - Portlet not found for ...

Matthew Ellis,修改在16 年前。

Remove old portlets from layout - Portlet not found for ...

Junior Member 帖子: 36 加入日期: 06-9-4 最近的帖子
In our portal we have recently rearranged all of our portlets and now we are getting a lot of errors that look like the following:

06-11 23:44:59,676 ERROR [com.liferay.portal.service.impl.PortletLocalServiceImpl] Portlet not found for blah.com Apply_WAR_myportlet layout-template-id=2_columns_iii

Is there a way to update the layouts to remove these missing portlets without so we stop getting error msgs? Can I do this directly in the database?

Thanks in advance,
Matt.
Matthew Ellis,修改在16 年前。

RE: Remove old portlets from layout - Portlet not found for ...

Junior Member 帖子: 36 加入日期: 06-9-4 最近的帖子
any ideas on this guys?
Charles M Moore,修改在16 年前。

RE: Remove old portlets from layout - Portlet not found for ...

Junior Member 帖子: 26 加入日期: 07-1-5 最近的帖子
Matthew Ellis:
In our portal we have recently rearranged all of our portlets and now we are getting a lot of errors that look like the following:

06-11 23:44:59,676 ERROR [com.liferay.portal.service.impl.PortletLocalServiceImpl] Portlet not found for blah.com Apply_WAR_myportlet layout-template-id=2_columns_iii

Is there a way to update the layouts to remove these missing portlets without so we stop getting error msgs? Can I do this directly in the database?

Thanks in advance,
Matt.



emoticon Warning: this may impact your DB's referencial integrityemoticon


Here's what I've done in the past.

Using Toad, I browsed to the PORTLETPREFERENCES table, and deleted the entries for the portlet from the database. I may have deleted the entries from the LAYOUT table, but I can't remember.
Eric Dennis Fields,修改在16 年前。

RE: Remove old portlets from layout - Portlet not found for ...

New Member 帖子: 4 加入日期: 07-8-13 最近的帖子
I think i just ran into a similar situation.

21:22:53,186 WARN  [PortletLocalServiceImpl:143] Portlet not found for liferay.com searchResults_WAR_myappportlets_INSTANCE_TEZZ
21:22:53,264 ERROR [jsp:52] 
java.lang.NullPointerException


I added a 'google adsense' instance merely to test out a design, and that seemed to blow the whole operation. i tried removing it from the portletspreferences db, but no luck. any suggestions?
thumbnail
Jorge Ferrer,修改在16 年前。

RE: Remove old portlets from layout - Portlet not found for ...

Liferay Legend 帖子: 2871 加入日期: 06-8-31 最近的帖子
Hi,

Currently the way described by Charles is the only way. If you keep seeing warnings it's because there is still a reference to the portlet in the table.
thumbnail
Mike A Lawrence,修改在16 年前。

RE: Remove old portlets from layout - Portlet not found for ...

New Member 帖子: 3 加入日期: 07-11-25 最近的帖子
It might be better to add a new portlet with the same ID so it will appear on the page.
Then use the GUI to remove this portlet.
Test Test Test,修改在15 年前。

RE: Remove old portlets from layout - Portlet not found for ...

Junior Member 帖子: 38 加入日期: 08-3-21 最近的帖子
Can anyone tell which tables we need to do clean up to remove portlets references? I did delete entries from PORTLETREFERENCE, RESOURCE_, RESOURCECODE tables. But I am still getting portlet not found error.

Thanks
UA
thumbnail
Brian Scott Schupbach,修改在15 年前。

RE: Remove old portlets from layout - Portlet not found for ..

Expert 帖子: 329 加入日期: 08-10-23 最近的帖子
Layout.typeSettings will also need to be edited.

Be careful because there is a lot of other information in this column.
cengiz gunes,修改在7 年前。

RE: Remove old portlets from layout - Portlet not found for ..

New Member 帖子: 11 加入日期: 16-6-28 最近的帖子
I get same errors.

PortletLocalServiceImpl Portlet not found for CompanyId PORTLETPREFERENCES.PORTLETID


so, I must make ;
delete PORTLETPREFERENCES, RESOURCE_, RESOURCECODE table
and delete rocord if have PORTLETID value in fields into LAYOUT.TYPESETTINGS ?
thanks.