Hi

Is it absolutely necessary to have the word 'LimeSurvey' as the main folder name for the module to sync only I keep getting the following prompt on the Testing Interface in THE LIMESURVEY SITE URL?

This page does not contain the word 'LimeSurvey'
Tested url is :
http://localhost/Linode/XXX/XXX_survey/admin/admin.php.

Everything else passes with the exception of THE LIMESURVEY SITE URL.

I don't really want people (who are not aware of LS) to know it's Lime Survey so always disguise the base folder name with something else such as 'Survey_Module'.

Hope you can help.

Stephen

Comments

spessex’s picture

Hi

Just re-tested whilst maintaining the usual name 'limesurvey' and it's still coming back

This page does not contain the word 'LimeSurvey'
Tested url is :
http://localhost/Linode/XXX/limesurvey/admin/admin.php.

So it looks like it's nothing to do with the folders base name?

Please also note that I have added the correct Lime Survey path at the bottom of the page to ../../Linode/XXX/LimeSurvey

thedut’s picture

Component: Code » Documentation

Hi spessex !

You can choose any name for the LimeSurvey folder name (not only 'limesurvey').
You have to edit (and save) the limeSurvey url parameter at the bottom of the the synchronization setting page in order to reach the LimeSurvey site.

The most simple way to do it is to try to reach your LimeSurvey site typing its url into your browser adress bar.
If the LimeSurvey url is http://localhost/Linode/XXX/Survey_Module/admin, tip on the synchronization setting page : http://localhost/Linode/XXX/Survey_Module and save it.
Note : the url is case sensitive.
Try it and report !

[The test look for the word 'LimeSurvey' printed into the footer aera of the LimeSurvey login page]

spessex’s picture

Hi

Thanks for the reply.

It appears that this is only an issue with Lime Survey 2. Version 1 works okay.

spessex’s picture

Just double checked it again and tried it with Version 2 of LS and it still comes back with the

This page does not contain the word 'LimeSurvey'
Tested url is :
http://localhost/Linode/XXX/survey_module/admin/admin.php.

Version 1 of any build appears to have no such problems.

Is there a work around only I'd prefer to use Version 2?

spessex’s picture

PS I can get the the LS page no problems and totally understand this as have set up many Lime Surveys. It's just this problem with Version 2 :-)

thedut’s picture

Note that you should only have ONE LimeSurvey site installed.
The settings.php file AND the Limesurvey site url parameter must target the same LimeSurvey site.

In other word, when you switch your LimeSurvey sites (v1 to v2) you need to edit both :
- the setting.php file
- and the Limesurvey site url parameter

Please report about the v2.

spessex’s picture

StatusFileSize
new50.02 KB

Great news I have managed to get LS V2 working now (following advice from our other issue). Again, the only issue is that Drupal's Status Report is still saying that Lime Survey cannot be reached (see screenshot).

Thank you

Ste

thedut’s picture

Status: Active » Closed (works as designed)

Great,

I mark this issue as closed (works as designed).
I may implement a waning message into the new LimeSurvey Sync module release, detecting if both settings do not target the same LimeSurvey site.

The last issue you meet is the same as : LimeSurvey Sync - LimeSurvey site may not be reached, it will be solved there.

the.webmaestro’s picture

Status: Closed (works as designed) » Needs review

My apologies, but I'm still having this problem, and the above information does not resolve the problem for me.

NOTE: This is a fresh install of LimeSurvey Sync (I am not upgrading from v1.x to v2.x).

My site hosts LimeSurvey at /surveys. According to this quoted snippet the same change needs to be updated in both places, but what specific change should I make in the settings.php file?

The settings.php file AND the Limesurvey site url parameter must target the same LimeSurvey site.

In other word, when you switch your LimeSurvey sites (v1 to v2) you need to edit both :
- the setting.php file
- and the Limesurvey site url parameter

Please report about the v2.

If I update the Limesurvey site url parameter on the LimeSurvey Sync config page, I still get the error:

This page does not contain the word 'LimeSurvey'
Tested url is :
http://mydomain.com/surveys/admin/admin.php.

Accessing http://mydomain.com/surveys/admin/admin.php works fine... I've also updated the settings.php file to include the DB access for the local LimeSurvey install.

Please help!

Thanks!

Versions:
- Drupal 7.2.2
- LimeSurvey Version 1.91+ Build 11232
- LimeSurvey Sync 7.x-1.2

the.webmaestro’s picture

Status: Needs review » Active

Changing to 'Active' as I believe this is still an ACTIVE issue (I am receiving the same issue, and none of the recommended fixes appear to resolve the issue).

UPDATED TO INCLUDE SOME INFO:

  • I've since changed the directory back to /LimeSurvey/ and it's working, but this is not a viable solution
thedut’s picture

Component: Documentation » Code
Assigned: Unassigned » thedut
Priority: Normal » Minor

Hello,

the best validation for the LimeSurvey url parameter is the human one (you !) : if you reach the LimeSurvey site clicking on the provided link, then it is OK, everything will work for you. The test interface tries to reproduce the humain validation. In your case, the test interface fails to test the LimeSurvey url parameter, declaring it as failure instead of success. I don't know why it fails.

I still can't reproduce this issue : could you provide your LimeSurvey url parameter and tell how you manage your Drupal and LimeSurvey folders ?
(ex :
www
-drupal
-LimeSurvey
)

thedut’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new12.3 KB

Here is a fix :
This code makes sure the LimeSurvey site url and the limesurvey database connexion are targeting the same LimeSurvey installation (if several LimeSurvey install folders exist).
Concerning the LimeSurvey install folder name : I'm not able to reproduce this issue, the module works with all folder name ('limesurvey', 'survey', 'a folder' successfully tested with this patch).

This patch will be include into the next release (soon).

thedut’s picture

Status: Patch (to be ported) » Closed (fixed)

Fixed into the LimeSurvey_sync v7.x-1.3 and LimeSurvey_Sync v6.x-1.3 releases.

thedut’s picture

The LimeSurvey url test has been improved, it handles url redirections now. Patch below (or remplace your limesurvey_sync.inc file by the file below).
It may solves issues above (wich I was not able to reproduce).
I will include this patch into the next LimeSurvey Sync release.

thedut’s picture

Fixed into the 7.x-1.4 and 6.x-1.4 LimeSurvey Sync module releases.