Foros de discusión

Fix correct ? com.liferay.portal.upgrade.v6_0_5

thumbnail
Boymix81 Nick, modificado hace 13 años.

Fix correct ? com.liferay.portal.upgrade.v6_0_5

Junior Member Mensajes: 42 Fecha de incorporación: 27/08/07 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.
thumbnail
Boymix81 Nick, modificado hace 13 años.

RE: Fix correct ? com.liferay.portal.upgrade.v6_0_5

Junior Member Mensajes: 42 Fecha de incorporación: 27/08/07 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 ;)
thumbnail
Julio Camarero, modificado hace 13 años.

RE: Fix correct ? com.liferay.portal.upgrade.v6_0_5

Liferay Legend Mensajes: 1668 Fecha de incorporación: 15/07/08 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!
thumbnail
Boymix81 Nick, modificado hace 13 años.

RE: Fix correct ? com.liferay.portal.upgrade.v6_0_5

Junior Member Mensajes: 42 Fecha de incorporación: 27/08/07 Mensajes recientes
Thanks a lots!