Forum

Version 2.6.2 Pb wi...
 
Notifications
Clear all

Version 2.6.2 Pb with port on hyperlink

4 Posts
2 Users
0 Reactions
3,607 Views
(@fdoucet)
Posts: 23
Active Member
Topic starter
 
[#762]

Hi, your soft use port 82 (ex: http://host:82/view/main.php) and in then link of mails port is not present (ex: http://host/view/main.php?directAccess=true&objectClass=Activity&objectId=210)

Thanks for help


 
Posted : 26 Oct 2012 17H07
(@babynus)
Posts: 14952
Member Admin
 

Hi, your soft use port 82

No, the soft does not use any port.
It is your PHP server who does.
I never tried with a non standard port (standard is 80)
Maybe a redirect in your PHP config may help.


 
Posted : 26 Oct 2012 17H55
(@babynus)
Posts: 14952
Member Admin
 

In your case, replacing line 2353 in /model/persistence/SqlElement.php, from

$url=$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];

to

$url=$_SERVER['SERVER_NAME'].(($_SERVER['SERVER_PORT']!='80')?':'.$_SERVER['SERVER_PORT']:'').$_SERVER['REQUEST_URI'];

should solve your problem.


 
Posted : 26 Oct 2012 18H13
(@fdoucet)
Posts: 23
Active Member
Topic starter
 

It's ok thanks


 
Posted : 29 Oct 2012 13H11
Share:

Scroll to Top