Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Boymix81 Nick
Fix correct ? com.liferay.portal.upgrade.v6_0_5
22. November 2010 02:41
Antwort

Boymix81 Nick

Rang: Junior Member

Nachrichten: 42

Eintrittsdatum: 27. August 2007

Neue Beiträge

Hi,

few days ago, I posted this :

http://www.liferay.com/community/forums/-/message_boards/message/6472014

about a upgrade failure from LR 5.2.3 CE to LR 6.1.0 CE .

Today I think to fix modifing the following source :

Source : com.liferay.portal.upgrade.v6_0_5.UpgradeLayout.java
Origin Line 123 - 128 :

String uuid = rs.getString("uuid_");

runSQL(
"update Layout set uuid_ = '" + uuid + "' where plid = " +
plid);


New Line 123 - 129 :

if(rs.next())
{
String uuid = rs.getString("uuid_");
runSQL(
"update Layout set uuid_ = '" + uuid + "' where plid = " +
plid);
}


I compiled my version and I upgrade with Success but now whene I use for example control pannell I have many javascript Error :

Error: LiferayAUI.getJavaScriptRootPath is not a function
Source: /html/js/liferay/modules.js

Error: Liferay.Menu is not a constructor
Source: /

Liferay's Developer Staff, Do you think that my Patch is correct or that javascript error is caused by my patch ?

Thank a lot ,
Best Regards.
Boymix81 Nick
RE: Fix correct ? com.liferay.portal.upgrade.v6_0_5
22. November 2010 02:39
Antwort

Boymix81 Nick

Rang: Junior Member

Nachrichten: 42

Eintrittsdatum: 27. August 2007

Neue Beiträge

Boymix81 Nick:

I compiled my version and I upgrade with Success but now whene I use for example control pannell I have many javascript Error :

Error: LiferayAUI.getJavaScriptRootPath is not a function
Source: /html/js/liferay/modules.js

Error: Liferay.Menu is not a constructor
Source: /

Liferay's Developer Staff, Do you think that my Patch is correct or that javascript error is caused by my patch ?


Ok, It is My Javascript Error, I have deployed a Hook to integrate last version of jQuery for LR 6.0.5 and I must upgrade it to LR 6.1.0 .... emoticon

Now My Question is : Is my fix to upgrade correct ? Now for me work ;)
Julio Camarero
RE: Fix correct ? com.liferay.portal.upgrade.v6_0_5
29. November 2010 07:40
Antwort

Julio Camarero

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1609

Eintrittsdatum: 15. Juli 2008

Neue Beiträge

Hi,

you can see the solution we provided in the ticket LPS-14068, in the tab "All".

It's very similar to yours, but there was one situation in your code that would break the migration. I think this should be fine for any situation now.

Thanks a lot!
Boymix81 Nick
RE: Fix correct ? com.liferay.portal.upgrade.v6_0_5
20. Dezember 2010 06:23
Antwort

Boymix81 Nick

Rang: Junior Member

Nachrichten: 42

Eintrittsdatum: 27. August 2007

Neue Beiträge

Thanks a lots!