Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Boymix81 Nick
Fix correct ? com.liferay.portal.upgrade.v6_0_5
22 de noviembre de 2010 2:41
Respuesta

Boymix81 Nick

Ranking: Junior Member

Mensajes: 42

Fecha de incorporación: 27 de agosto de 2007

Mensajes recientes

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 de noviembre de 2010 2:39
Respuesta

Boymix81 Nick

Ranking: Junior Member

Mensajes: 42

Fecha de incorporación: 27 de agosto de 2007

Mensajes recientes

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 de noviembre de 2010 7:40
Respuesta

Julio Camarero

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1622

Fecha de incorporación: 15 de julio de 2008

Mensajes recientes

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 de diciembre de 2010 6:23
Respuesta

Boymix81 Nick

Ranking: Junior Member

Mensajes: 42

Fecha de incorporación: 27 de agosto de 2007

Mensajes recientes

Thanks a lots!