View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
11278Bug reportsInstallationpublic2016-05-30 14:18
ReporterMatherion Assigned Toc_schmitz  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary11278: Unable to upload templates (but surveys work)
Description

When trying to upload a survey, LS tells me to make /tmp and /upload/templates writable, even when they are 777. May be related to https://bugs.limesurvey.org/view.php?id=11161?

Steps To Reproduce

Download "limesurvey250plus-build160526.7z", FTP it to a server and install it in directory [...]/public_html/ls250. Then browse to the directory and recursively set the permissions for /tmp and /upload to 777. Then run LS and open the template editor: the upload button (and the 'export' and 'copy' buttons) are greyed out, and on mouseover a hint is displayed telling you to again recursively set the permissions for /tmp and /upload/templates to 777.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)160526
I will donate to the project if issue is resolvedYes
BrowserFireFox
Database type & version5.5.49-cll - MySQL Community Server (GPL)
Server OS (if known)CentOS 6
Webserver software & version (if known)Apache/2.2.31
PHP Version5.5.35

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2016-05-26 17:42

administrator   ~38948

Now, if you can find out what is causing this ;).

Matherion

Matherion

2016-05-26 18:02

reporter   ~38951

No luck so far. Manually copying the template to that directory works, though; that is, LS does recognize it afterwards as it should.

What puzzles me most is that upload of a survey works as it should. I suspect that maybe uploading templates would work as expected, but for some reason LS doesn't /see/ that it works. Is the same check performed when users try to upload a survey? Maybe the check is where it goes wrong (since those directories ARE writable :-)).

DenisChenu

DenisChenu

2016-05-26 18:43

developer   ~38952

What is the size of the template zip file ?

Maybe linked with https://bugs.limesurvey.org/view.php?id=9498 (filesize is too big)

c_schmitz

c_schmitz

2016-05-26 19:39

administrator   ~38953

Maybe there are hidden files in the /upload/template directory?

Matherion

Matherion

2016-05-26 21:54

reporter   ~38954

@DenisChenu: it doesn't get to the .ZIP file - the button to upload is greyed out.
@c_schmitz: Unlikely; it's a clean install from the .7z . . . Can I safely delete everything in those two directories? Maybe there is something problematic somewhere.

c_schmitz

c_schmitz

2016-05-27 08:10

administrator   ~38956

What is the exact message on the import button?

Matherion

Matherion

2016-05-27 08:36

reporter   ~38958

"Please change the directory permissions of the folders /tmp and /upload/templates in order to enable this option."

I'll try recursively chmodding using putty instead of filezilla, maybe that makes a difference.

Matherion

Matherion

2016-05-27 08:40

reporter   ~38959

Hmm. No difference. Logged in as root, ran "chmod -R 777 tmp" and "chmod -R 777 upload", but still the same message, oddly enough. And, as I said, I uploaded a survey (.LSS) without any problems to the same LS installation. So clearly uploads work . . . Very puzzling. If nobody else runs into this problem, it must be some idiosyncrasy related to the server settings. But no idea where to start looking . . .

(or - long shot perhaps, but - given the other error in the .7z download of this LS version/build, maybe this is some other error that just exists in the .7z version? Could that be? Then I'll try and install the tar.gz or the .zip version.)

c_schmitz

c_schmitz

2016-05-27 08:40

administrator   ~38960

Last edited: 2016-05-27 08:51

I think the error message is wrong. For message to be shown, two reasons are there in the code: Either it is not writable or your don't have a certain ZIP library installed in PHP - see http://php.net/manual/en/zip.installation.php

Check out the patch.

c_schmitz

c_schmitz

2016-05-27 08:51

administrator   ~38962

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=19206

Matherion

Matherion

2016-05-27 09:20

reporter   ~38968

Perfect! That is, now it gives me that error :-) Thanks! When installing, LimeSurvey checked for the installation of I think 5 PHP libraries; two were disabled in my case, the LDAP one and one of the two ZIP ones. Am I correct in understanding that the other library with 'ZIP' in the name is in fact not for unzipping stuff, or, alternatively, not one that LimeSurvey can use to unzip templates?

(asking because so far, all LS versions have worked without the need to install additional PHP libraries; so I want to make sure that either this (new) server misses one common PHP library, or smth changed in the LS code causing it to now require a ZIP library that's a bit less commonplace.)

Matherion

Matherion

2016-05-27 09:24

reporter   ~38970

Also - I would like to donate, but um. I can't find the option at the site :-)

[Just checked a second time - really can't find it, sorry!]

c_schmitz

c_schmitz

2016-05-27 10:09

administrator   ~38972

The ZIP requirement always has been there so I guess your new server just does not have it.

Our donation link is http://donate.limesurvey.org

Matherion

Matherion

2016-05-28 08:09

reporter   ~38986

Great, done! So . . . Was it me, or is that a bit hard to find? I may have missed it, but it may also be that something dissappeared? In any case, thanks for all the help!!! :-)

c_schmitz

c_schmitz

2016-05-30 14:18

administrator   ~39010

Version 2.50+ Build 160529 released

Related Changesets

LimeSurvey: master 82991d88

2016-05-27 06:48:44

c_schmitz

Details Diff
Fixed issue 11278: Unable to upload templates Affected Issues
11278
mod - application/views/admin/templates/templateeditorbar_view.php Diff File

Issue History

Date Modified Username Field Change
2016-05-26 17:09 Matherion New Issue
2016-05-26 17:42 c_schmitz Note Added: 38948
2016-05-26 18:02 Matherion Note Added: 38951
2016-05-26 18:43 DenisChenu Note Added: 38952
2016-05-26 19:39 c_schmitz Note Added: 38953
2016-05-26 21:54 Matherion Note Added: 38954
2016-05-27 08:10 c_schmitz Note Added: 38956
2016-05-27 08:10 c_schmitz Assigned To => c_schmitz
2016-05-27 08:10 c_schmitz Status new => feedback
2016-05-27 08:36 Matherion Note Added: 38958
2016-05-27 08:36 Matherion Status feedback => assigned
2016-05-27 08:40 Matherion Note Added: 38959
2016-05-27 08:40 c_schmitz Note Added: 38960
2016-05-27 08:51 c_schmitz Changeset attached => LimeSurvey master 82991d88
2016-05-27 08:51 c_schmitz Note Added: 38962
2016-05-27 08:51 c_schmitz Resolution open => fixed
2016-05-27 08:51 c_schmitz Note Edited: 38960
2016-05-27 08:54 c_schmitz Status assigned => resolved
2016-05-27 08:54 c_schmitz Fixed in Version => 2.5
2016-05-27 09:20 Matherion Note Added: 38968
2016-05-27 09:24 Matherion Note Added: 38970
2016-05-27 10:09 c_schmitz Note Added: 38972
2016-05-28 08:09 Matherion Note Added: 38986
2016-05-30 14:18 c_schmitz Note Added: 39010
2016-05-30 14:18 c_schmitz Status resolved => closed