Check out the LimeSurvey source code on GitHub!

Image upload path problems

More
5 years 8 months ago #59691 by maurice01
I have installed LimeSurvey 1.9 Build 9642 using QuickInstall on a Hostgator Babycroc account. Installation is to a sub-domain. Most works fine except the Image Upload process.

When I try and use the "Insert/Edit Image" function I can upload and image - Send it to server - get a success message.

The Image Info URL shows as //upload/surveys/42673/image.jpg but only a placeholder shows in the preview window. If I change the Image Info URL to include the subdomain //subdomain.com/upload/surveys/42673/image.jpg all works fine.

Where is this path specified?? I have looked in config.php and config-defaults.php of the sub-domain root directory but nothing works. Searched FCKEditor configuration notes but I'm stuck.

Can anyone offer a solution please?

Please Log in to join the conversation.

More
5 years 8 months ago - 5 years 8 months ago #59752 by maurice01
Found the solution in the documentation. I had read this many times but being a Fresh Lemon I hadn't joined the dots. Now I have and here is a copy of hte solution for those having the same problem.

From Docs: Modify the config.php file in the Limesurvey installation directory.
$rooturl: This should be set to the URL location of your LimeSurvey scripts. If you copied the Limsurvey files into the folder limesurveyfolder you have to rename {$_SERVER}/limesurvey to the folder name you have chosen {$_SERVER}limesurveyfolder.

In the case of a subdomain - your limesurveyfolder will be the sub domain. Don't forget to remove the '/' before the sub domain name.
Last Edit: 5 years 8 months ago by maurice01.

Please Log in to join the conversation.

More
5 years 8 months ago #59753 by maurice01
:( Unfortunately the solution mentioned above fixes the image path problem but breaks the path to LimeSurvey...

Back to square one.

Please Log in to join the conversation.

More
5 years 8 months ago #59754 by holch
Are we here talking about a subdomain or a second domain?

Subdomain: subdomain.domain.tld

Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 8 months ago - 5 years 8 months ago #59763 by maurice01
Second domain. I see Hostgator CPanel calls them Addon Domains.

Hosting domain: e-capability.co.nz
Limesurvey domain: mjm.co.nz

Limesurvey is installed in the folder /public_html/mjm.co.nz
Last Edit: 5 years 8 months ago by maurice01.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form