Welcome, Guest
Username: Password: Remember me

TOPIC: Image upload path problems

Image upload path problems 3 years 1 day ago #59691

  • maurice
  • maurice's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
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?
The administrator has disabled public write access.

Re: Image upload path problems 3 years 1 day ago #59752

  • maurice
  • maurice's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
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: 3 years 1 day ago by maurice.
The administrator has disabled public write access.

Re: Image upload path problems 3 years 23 hours ago #59753

  • maurice
  • maurice's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
:( Unfortunately the solution mentioned above fixes the image path problem but breaks the path to LimeSurvey...

Back to square one.
The administrator has disabled public write access.

Re: Image upload path problems 3 years 23 hours ago #59754

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2444
  • Thank you received: 254
  • Karma: 94
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 | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: Image upload path problems 3 years 16 hours ago #59763

  • maurice
  • maurice's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
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: 3 years 16 hours ago by maurice.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.103 seconds
Donation Image