Cannot upload images to template

More
2 months 6 days ago #173885 by blocka
blocka created the topic: Cannot upload images to template
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?

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #173973 by blocka
blocka replied the 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.

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #173978 by LouisGac
LouisGac replied the topic: Cannot upload images to template
try by extending a theme first, then uploading the file for this theme.
The following user(s) said Thank You: oretzl

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #174009 by blocka
blocka replied the 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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!