View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06795Bug reportsSurvey participants (Tokens)public2012-10-31 23:40
Reporterdrjaking Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version2.00+ 
Summary06795: Invitation emails with http://localhost instead of proper address
Description

Invitation emails do not translate the {SURVEYURL} code into a correct URL. Instead the emails include links starting with http://localhost/....

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)121024
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.5.24
Server OS (if known)Ubuntu 12.04
Webserver software & version (if known)Apache2
PHP Version5.3.10-1ubuntu3.4
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-10-29 21:35

administrator   ~21750

So, what URL do you use to login to your administration?

drjaking

drjaking

2012-10-30 11:02

reporter   ~21754

http://54.247.x.x/limesurvey/index.php/admin/authentication/login

(It's an Amazon EC2 VM).

c_schmitz

c_schmitz

2012-10-30 14:02

administrator   ~21770

You can edit /path/to/application/config/config.php to change the default base URL value. Add a request component, and configure baseUrl property.

'components' => array(
    ...
    'request' => array(
        'baseUrl' => 'http://www.example.com',
    ),
)

Anyway, it is not a bug but rather a server misconfiguration if you want so. Will add it to installation FAQ.

c_schmitz

c_schmitz

2012-10-30 14:11

administrator   ~21772

Added hint to the manual page about tokens.

drjaking

drjaking

2012-10-31 13:43

reporter   ~21817

I've made the advised change to config.php, but it made no difference.

Also tried adding a publicurl and rooturl to config, with no effect.

c_schmitz

c_schmitz

2012-10-31 15:04

administrator   ~21827

I am sorry but that solution works like a charm here. There is nothing more I can do for you. Everything else is most likly a server issue or you did not properly apply the change.
If you need more help beyond that please use the forums or contact one of the LimeSurvey Partners http://www.limesurvey.com

drjaking

drjaking

2012-10-31 16:42

reporter   ~21832

Hi,

I'm really sorry for reopening this again, but I think it's a problem with Remote Control rather than a server configuration issue.

I should have specified that the bad invitation URLs I'm getting come from the remotecontrol API, which I'm calling as follows:

$aInv=$myJSONRPCClient->invite_participants($sessionKey, $iNewSurveyID );

Critically, if I cause invitations to be sent via the GUI, I get valid URLs, so I think it must be a problem with the way RC works.

drjaking

drjaking

2012-10-31 18:20

reporter   ~21837

Last edited: 2012-10-31 18:21

This is now working - the bad localhost URL was coming from the script that was calling the RC API. You might want to change the example script, as it currently says:

define( 'LS_BASEURL', 'http://localhost/limesurvey/');

and anyone copying that will get the same problem I had.

Issue History

Date Modified Username Field Change
2012-10-29 13:28 drjaking New Issue
2012-10-29 21:35 c_schmitz Note Added: 21750
2012-10-29 21:35 c_schmitz Assigned To => c_schmitz
2012-10-29 21:35 c_schmitz Status new => feedback
2012-10-30 11:02 drjaking Note Added: 21754
2012-10-30 11:02 drjaking Status feedback => assigned
2012-10-30 14:02 c_schmitz Note Added: 21770
2012-10-30 14:02 c_schmitz Status assigned => closed
2012-10-30 14:02 c_schmitz Resolution open => no change required
2012-10-30 14:11 c_schmitz Note Added: 21772
2012-10-31 13:43 drjaking Note Added: 21817
2012-10-31 13:43 drjaking Status closed => feedback
2012-10-31 13:43 drjaking Resolution no change required => reopened
2012-10-31 15:04 c_schmitz Note Added: 21827
2012-10-31 15:04 c_schmitz Status feedback => closed
2012-10-31 15:04 c_schmitz Resolution reopened => fixed
2012-10-31 16:42 drjaking Note Added: 21832
2012-10-31 16:42 drjaking Status closed => feedback
2012-10-31 16:42 drjaking Resolution fixed => reopened
2012-10-31 18:20 drjaking Note Added: 21837
2012-10-31 18:20 drjaking Status feedback => assigned
2012-10-31 18:21 drjaking Note Edited: 21837
2012-10-31 23:40 c_schmitz Status assigned => closed
2012-10-31 23:40 c_schmitz Resolution reopened => no change required
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)