Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Cannot upload images to template

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 7 months ago #173885 by blocka
Cannot upload images to template was created by blocka
Using LS 3.14.8, build 180829 ...

When I go to a survey's Theme options, and try to upload new logo, I get the error message:

An error occurred uploading your file. This may be caused by incorrect permissions for the application /tmp folder.

I added a test.php to my site that executes:

$temp_file = tempnam(sys_get_temp_dir(), 'Tux');
echo $temp_file;

And I get the message: /home/account/public_html/tmp/TuxfRhvup and I can verify that the file is created in this temp folder correctly (and tmp has permissions 755)

php.ini has directive:
sys_temp_dir = "tmp"


But I cannot upload any images to my template -- I just get the error message reported above.

Can anyone shed light into what is the issue?
The topic has been locked.
  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 6 months ago #173973 by blocka
Replied by blocka on topic Cannot upload images to template
I can add that via an individual survey's Resource manager, I can upload images okay, and through KCFinder when editting questions, uploads are okay.

Also, I have some Joomla and WordPress sites on the same server as LS, and those CMS also allow for file uploads okay.

It is only LS Themes that that seems to have issue with uploads.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 6 months ago #173978 by LouisGac
Replied by LouisGac on topic Cannot upload images to template
try by extending a theme first, then uploading the file for this theme.
The topic has been locked.
  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 6 months ago #174009 by blocka
Replied by blocka on topic Cannot upload images to template
And that completely solved the problem! Seems maybe that the error message about uploading could be expanded to check to see if the theme has been extended, and advise it has to be extended before you can upload new images.
The following user(s) said Thank You: oretzl
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose