Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Haris Tasawar
java script minifier error
August 29, 2012 6:36 AM
Answer

Haris Tasawar

Rank: Junior Member

Posts: 35

Join Date: June 4, 2012

Recent Posts

hello all,
i recently created a custom portlet but when i run it, it gives me an error :

13:07:07,320 ERROR [MinifierUtil:108] 29: 38: missing ; before statement
13:07:07,322 ERROR [MinifierUtil:108] 51: 38: missing ; before statement
13:07:07,324 ERROR [MinifierUtil:108] 1: 0: Compilation produced 2 syntax errors.
13:07:07,326 ERROR [MinifierUtil:74] JavaScript Minifier failed for

the whole javascript is too long to print but i found the extra 'semi-colon' in the javascript but i dont know whether i can edit this javascript or not. Can anyone tell me that how to edit this Or how do i solve this error.

Thanks,
Oliver Bayer
RE: java script minifier error
August 29, 2012 7:27 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 870

Join Date: February 18, 2009

Recent Posts

Hi Haris,

as you've created a custom portlet I assume that the javascript is custom too. So you should fix those two js errors and redeploy the portlet.

HTH Oli
Haris Tasawar
RE: java script minifier error
August 29, 2012 7:36 AM
Answer

Haris Tasawar

Rank: Junior Member

Posts: 35

Join Date: June 4, 2012

Recent Posts

iver, but where are these js located in the portlet.... i find only one which is named main.js but it is of 0kb
Haris Tasawar
RE: java script minifier error
August 30, 2012 12:42 AM
Answer

Haris Tasawar

Rank: Junior Member

Posts: 35

Join Date: June 4, 2012

Recent Posts

also i havnt created any js in my portlet
Oliver Bayer
RE: java script minifier error
August 30, 2012 1:09 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 870

Join Date: February 18, 2009

Recent Posts

Hi,

ok, so if it's not your portlet I would guess that this error message is maybe raised by a custom theme. Try your portlet with the default liferay theme and check if the error is occurring too.

Greets Oli
Haris Tasawar
RE: java script minifier error
August 30, 2012 1:15 AM
Answer

Haris Tasawar

Rank: Junior Member

Posts: 35

Join Date: June 4, 2012

Recent Posts

ok i`ll try that
Haris Tasawar
RE: java script minifier error
August 30, 2012 1:16 AM
Answer

Haris Tasawar

Rank: Junior Member

Posts: 35

Join Date: June 4, 2012

Recent Posts

also for references, here is my error:



08:07:43,936 ERROR [MinifierUtil:108] 29: 38: missing ; before statement
08:07:43,938 ERROR [MinifierUtil:108] 51: 38: missing ; before statement
08:07:43,939 ERROR [MinifierUtil:108] 1: 0: Compilation produced 2 syntax errors.
08:07:43,939 ERROR [MinifierUtil:74] JavaScript Minifier failed for

// <![CDATA[

Liferay.Portlet.onLoad(
{
canEditTitle: false,
columnPos: 0,
isStatic: 'end',
namespacedId: 'p_p_id_103_',
portletId: '103',
refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d32801\x26p_p_id\x3d103\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3d\x26p_p_col_pos\x3d0\x26p_p_col_count\x3d0\x26p_p_isolated\x3d1\x26currentURL\x3d\x252F'
}
);

Liferay.provide(
window,
'_mms_WAR_mmsportlet610${pluginversion}_curupdateCur',
function(box) {
var A = AUI();

var cur = A.one(box).val();

if (true) {
var href = "http://localhost:8070/web/guest/home?p_p_id=mms_WAR_mmsportlet610%24%7Bpluginversion%7D&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_mms_WAR_mmsportlet610${pluginversion}_delta=10&_mms_WAR_mmsportlet610${pluginversion}_keywords=&_mms_WAR_mmsportlet610${pluginversion}_advancedSearch=false&_mms_WAR_mmsportlet610${pluginversion}_andOperator=true&_mms_WAR_mmsportlet610${pluginversion}_resetCur=false&_mms_WAR_mmsportlet610${pluginversion}_cur=" + cur + "";

location.href = href;
}
else {
document._mms_WAR_mmsportlet610${pluginversion}_fm.cur.value = cur;

;
}
},
['aui-base']
);

Liferay.provide(
window,
'_mms_WAR_mmsportlet610${pluginversion}_deltaupdateDelta',
function(box) {
var A = AUI();

var delta = A.one(box).val();

if (true) {
var href = "http://localhost:8070/web/guest/home?p_p_id=mms_WAR_mmsportlet610%24%7Bpluginversion%7D&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_mms_WAR_mmsportlet610${pluginversion}_keywords=&_mms_WAR_mmsportlet610${pluginversion}_advancedSearch=false&_mms_WAR_mmsportlet610${pluginversion}_andOperator=true&_mms_WAR_mmsportlet610${pluginversion}_resetCur=false&_mms_WAR_mmsportlet610${pluginversion}_delta=" + delta + "";

location.href = href;
}
else {
document._mms_WAR_mmsportlet610${pluginversion}_fm.delta.value = delta;

;
}
},
['aui-base']
);

Liferay.Portlet.onLoad(
{
canEditTitle: false,
columnPos: 0,
isStatic: 'end',
namespacedId: 'p_p_id_mms_WAR_mmsportlet610\x24\x7bpluginversion\x7d_',
portletId: 'mms_WAR_mmsportlet610\x24\x7bpluginversion\x7d',
refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d32801\x26p_p_id\x3dmms_WAR_mmsportlet610\x24\x7bpluginversion\x7d\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dcolumn-1\x26p_p_col_pos\x3d0\x26p_p_col_count\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252F'
}
);
AUI().use('aui-base', 'liferay-form', 'liferay-menu', 'liferay-notice', 'liferay-poller', 'liferay-search-container', function(A) {(function() {
Liferay.Form.register(
{
id: '_mms_WAR_mmsportlet610${pluginversion}_fm'


, fieldRules: [



]



}
);
})();(function() {
new Liferay.SearchContainer(
{
classNameHover: 'hover',
hover: true,
id: 'itro',
rowClassNameAlternate: 'portlet-section-alternate',
rowClassNameAlternateHover: 'portlet-section-alternate-hover',
rowClassNameBody: 'portlet-section-body',
rowClassNameBodyHover: 'portlet-section-body'
}
).render();
})();(function() {
Liferay.Util.addInputType();

Liferay.Portlet.ready(
function(portletId, node) {
Liferay.Util.addInputType(node);
}
);
})();(function() {
new Liferay.Menu();

var liferayNotices = Liferay.Data.notices;

for (var i = 1; i < liferayNotices.length; i++) {
new Liferay.Notice(liferayNotices);
}


})();});
// ]]>
Haris Tasawar
RE: java script minifier error
September 14, 2012 8:36 AM
Answer

Haris Tasawar

Rank: Junior Member

Posts: 35

Join Date: June 4, 2012

Recent Posts

Please can someone help me, i am not any custom java scripts and still i get this error.