Message Boards

<liferay-icon menu> and javascript doesn't work

Scarletake Bwi, modified 3 Years ago.

<liferay-icon menu> and javascript doesn't work

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi

The system is liferay 6.2, db is mysql
I am not sure of the cause of the problem, so it is a very strange question to ask.
I have a development environment and a formal environment. The two environments are the same.
Two difference are that the formal environment has ssl and net name, and the development environment uses ip address.

and in production have properties in portal-ext.properties

company.security.auth.requires.https=true
session.enable.phishing.protection=false


The problem occurs in my dashboard. In this screen, I cannot switch languages, the url of <liferay-icon menu> will not work(i still can submit via form), nor can I switch site via <My Sites>.
But only in the my dashboard of the development environment, other screens or formal environments function normally.
I also tried using different browsers or different devices, all with the same result. i also add log, it did not be triggered.

any command?

thumbnail
Andrew Jardine, modified 3 Years ago.

RE: <liferay-icon menu> and javascript doesn't work

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts

Hi Scarletake, 

What's the error that you see in the console? (the chrome console I mean)

Scarletake Bwi, modified 3 Years ago.

RE: RE: <liferay-icon menu> and javascript doesn't work

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi andrew

see nothing. it seems just doesn't be trigger. but only in "My Dashboard". 

thumbnail
Andrew Jardine, modified 3 Years ago.

RE: <liferay-icon menu> and javascript doesn't work

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts

Two follow up questions. 

1. When you say "My Dashboard" are you talking about the one that Liferay provides for you out of the box, the one that can be accessed via the personal menu? Or is the "My Dashboard" a page that you have created? (can you share a screenshot?)

2. Can you look at the page source and show us the markup for the icon menu and the generated urls that are in the page but not working?

Scarletake Bwi, modified 3 Years ago.

RE: RE: <liferay-icon menu> and javascript doesn't work

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi

very sorry for reply late.

yes, provided by Liferay

and not only icon in menu, My Sites, Languages also

 

It's weird, when i try same portlet, in sub site, it works. and i try it again, same portlet in MyDashboard, it work now.

but language and "My Sites" still not working in My Dashboard. but working in other please.

now if i want switch to a sub site, i cannot use "My Sites", i have to go Control Panel, and use the "My Sites" in Control Panel.

is there because i add too many portlets in My Dashboard?

 

thank you.

 

Scarletake Bwi, modified 3 Years ago.

RE: RE: <liferay-icon menu> and javascript doesn't work

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

yes, i found that it happen because too many app in My Dashboard.

after i remove some apps, everything works.

but i'm curious, how many apps is the limit?

thumbnail
Andrew Jardine, modified 3 Years ago.

RE: <liferay-icon menu> and javascript doesn't work

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts

I don't think there is a limit on the number of apps -- I mean, I have never experienced that before anyway. What I would suggest is that you put them all back to reproduce the issue and then remove them one at a time to see if you can isolate whether or not it is one of the apps that appears to be causing the issue. It sounds like there might be something in one of your apps that is manifesting the issue. Maybe a conflict in id values that is being referenced by the Javascript or something?