View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 06795 | Bug reports | Survey participants (Tokens) | public | 2012-10-29 13:28 | 2012-10-31 23:40 |
| Reporter | drjaking | Assigned To | c_schmitz | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 2.00+ | ||||
| Summary | 06795: 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/.... | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 121024 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MySQL 5.5.24 | ||||
| Server OS (if known) | Ubuntu 12.04 | ||||
| Webserver software & version (if known) | Apache2 | ||||
| PHP Version | 5.3.10-1ubuntu3.4 | ||||
| Git branch / Pull Request URL | |||||
|
So, what URL do you use to login to your administration? |
|
|
http://54.247.x.x/limesurvey/index.php/admin/authentication/login (It's an Amazon EC2 VM). |
|
|
You can edit /path/to/application/config/config.php to change the default base URL value. Add a request component, and configure baseUrl property.
Anyway, it is not a bug but rather a server misconfiguration if you want so. Will add it to installation FAQ. |
|
|
Added hint to the manual page about tokens. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
| 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) |