View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
11278 | Bug reports | Installation | public | 2016-05-26 17:09 | 2016-05-30 14:18 |
Reporter | Matherion | Assigned To | c_schmitz | ||
Priority | none | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.50.x | ||||
Fixed in Version | 2.50.x | ||||
Summary | 11278: 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. | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 160526 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | FireFox | ||||
Database type & version | 5.5.49-cll - MySQL Community Server (GPL) | ||||
Server OS (if known) | CentOS 6 | ||||
Webserver software & version (if known) | Apache/2.2.31 | ||||
PHP Version | 5.5.35 | ||||
Now, if you can find out what is causing this ;). |
|
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 :-)). |
|
What is the size of the template zip file ? Maybe linked with https://bugs.limesurvey.org/view.php?id=9498 (filesize is too big) |
|
Maybe there are hidden files in the /upload/template directory? |
|
@DenisChenu: it doesn't get to the .ZIP file - the button to upload is greyed out. |
|
What is the exact message on the import button? |
|
"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. |
|
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.) |
|
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. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=19206 |
|
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.) |
|
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!] |
|
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 |
|
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!!! :-) |
|
Version 2.50+ Build 160529 released |
|
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 |