Foren

Liferay 7 buttons are not working

thumbnail
Syed Nasar, geändert vor 7 Jahren.

Liferay 7 buttons are not working

Junior Member Beiträge: 64 Beitrittsdatum: 03.09.15 Neueste Beiträge
Hi,

In my liferay 7 application, I added Message boards portlet in one of the page. The buttons ( for eg. Post New Thread) in portlet are not working. Whenever I click on that button, it is not redirecting and also there is no error in browser console. I can't figure out the problem. Please help me out.
thumbnail
Juan Gonzalez, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
Syed Nasar:
Hi,

In my liferay 7 application, I added Message boards portlet in one of the page. The buttons ( for eg. Post New Thread) in portlet are not working. Whenever I click on that button, it is not redirecting and also there is no error in browser console. I can't figure out the problem. Please help me out.


One of the most common issues when accesing Liferay on a server. Please read here: https://web.liferay.com/community/forums/-/message_boards/message/17438884.
Thirumal Reddy, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Regular Member Beiträge: 216 Beitrittsdatum: 03.12.15 Neueste Beiträge
Hi Juan,
I am also facing problem with cancel button in form-navigator(ex:org/managesite--> cancel).
this is getting in UAT but in my local machine working fine.

so can i add
direct.url.ips.allowed=server ip address,127.0.0.1,SERVER_IP

propertie in my portal-ext.prop's file.

Thanks,
Thirumal
Thirumal Reddy, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Regular Member Beiträge: 216 Beitrittsdatum: 03.12.15 Neueste Beiträge
Hi Juan,
I tried with, adding below property in portal-ext.prop's file
direct.url.ips.allowed=server ip address,127.0.0.1
but it doesn't work.emoticon

Thanks,
Thirumal.
thumbnail
Juan Gonzalez, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
Thirumal Reddy:
Hi Juan,
I tried with, adding below property in portal-ext.prop's file
direct.url.ips.allowed=server ip address,127.0.0.1
but it doesn't work.emoticon

Thanks,
Thirumal.


That property you pasted doesn't exist. It should be
redirect.url.ips.allowed
.

Additionally, if you are using some frontend webserver (Apache, nginx, etc) you should add those IPs too.
Thirumal Reddy, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Regular Member Beiträge: 216 Beitrittsdatum: 03.12.15 Neueste Beiträge
Hi Juan,
I tried with this also
redirect.url.ips.allowed=127.0.0.1,SERVER_IP

but NO RESULT

Thanks,
Thirumal.
thumbnail
Juan Gonzalez, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
Thirumal Reddy:
Hi Juan,
I tried with this also
redirect.url.ips.allowed=127.0.0.1,SERVER_IP

but NO RESULT

Thanks,
Thirumal.


Did you check the other option I said? (front webserver like Apache, nginx, etc)
Thirumal Reddy, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Regular Member Beiträge: 216 Beitrittsdatum: 03.12.15 Neueste Beiträge
Hi Juan,
Yes. we added.
we are using Apache. so i added apache ip address.

Thanks,
Thirumal.
thumbnail
Juan Gonzalez, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
Thirumal Reddy:
Hi Juan,
Yes. we added.
we are using Apache. so i added apache ip address.

Thanks,
Thirumal.


And that worked?
Thirumal Reddy, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Regular Member Beiträge: 216 Beitrittsdatum: 03.12.15 Neueste Beiträge
No It's not working..
Thirumal Reddy, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Regular Member Beiträge: 216 Beitrittsdatum: 03.12.15 Neueste Beiträge
Hi Juan,
after adding our netwrok public ip, it is working .emoticon

Thanks..
Thirumal.
thumbnail
Juan Gonzalez, geändert vor 7 Jahren.

RE: Liferay 7 buttons are not working

Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
Thirumal Reddy:
Hi Juan,
after adding our netwrok public ip, it is working .emoticon

Thanks..
Thirumal.


Great! You probably should change your IP list if changing anything on the frontend web/proxy servers.

One step for avoiding this would be changing to domain mode:

redirect.url.security.mode=domain


and then adding here valid domains on your site:

redirect.url.domains.allowed=


Glad it worked now for you emoticon.
chandrakant Lotke, geändert vor 6 Jahren.

RE: Liferay 7 buttons are not working

New Member Beiträge: 3 Beitrittsdatum: 07.11.17 Neueste Beiträge
Hello,
I am facing same issue. On many pages cancel button is not working.
I did the same configurations but didn't worked.
We have deployed our application on AWS in private subnet. this can be accessible by AWS Load balancer.
172.16.98.72 is the private IP of the server and AWS Load balencer doesn't have any public ip , it has only DNS name (A Record)
The Load balencer is mapped with DNS name.
We are accessing the application via DNS only.
Please see my for configurations,
direct.url.ips.allowed=172.16.98.72,127.0.0.1,SERVER_IP
redirect.url.security.mode=ip
redirect.url.domains.allowed=
redirect.url.ips.allowed=127.0.0.1,SERVER_IP


Any suggestions?
thumbnail
Adnan Yaqoob, geändert vor 4 Jahren.

RE: Liferay 7 buttons are not working

Junior Member Beiträge: 36 Beitrittsdatum: 24.03.14 Neueste Beiträge
@Juan
I'm trying the solution you mentioned but it only works with ip. When I use domain-based configuration it is not working

redirect.url.security.mode=domain
redirect.url.domains.allowed=

but IP based works

redirect.url.security.mode=ip
redirect.url.ips.allowed=40.122.114.47,127.0.0.1,SERVER_IP

The problem is public IP's in cloud environments are not constant unless you go for static IP which we are trying to avoid, any clue why domain is not working?