View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05240Bug reportsImport/Exportpublic2011-07-06 13:10
Reporterlstrange Assigned Tomdekker  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.91+ 
Summary05240: Better handling of missing zip support
Description

Downloading files as part of one or multiple reponses, resulted in a blank Webpage and no download occurred.

Steps To Reproduce

I selected a survey - chose 'responses and statistics'
then 'display responses'
then selected one line and clicked 'download all files in this response as a zip file' OR checked multiple surveys and then selected "download marked files".
The result both times was a blank screen (in both IE 8 and Firefox)
Note: The surveys that I selected had one attached pdf file to each survey response.
I even viewed source of the blank page to see if there were any clues and there wasn't:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)10120
I will donate to the project if issue is resolvedNo
BrowserIE 8 and Firefox 3.6.17
Database type & versionMySQL 5.0.83
Server OS (if known)FreeBSD 7.1
Webserver software & version (if known)Apache/2.2.11
PHP Version5.2.10

Users monitoring this issue

There are no users monitoring this issue.

Activities

mdekker

mdekker

2011-06-20 15:40

reporter   ~15522

If possible, please check your php errorlog for details. It seems to work fine for me on latest svn. Maybe you have a problem in creating the zip file because a needed library is not installed. If you find an error, it would be appreciated if you could forward the complete error so maybe we can trap it and give a better error message.

lstrange

lstrange

2011-06-20 16:52

reporter   ~15527

Ok, I ran the download process this morning on the test server and here are the line entries in the error log. It's not finding the ziparchive class in the browse.php file. I compared the file size of browse.php on the test server with the browse.php file that was part of the original zipped files that I downloaded and they were the same file size, just as a first place to start. Thanks for your help. Lainie


[Mon Jun 20 09:22:04 2011] [error] [client 168.166.157.201] File does not exist: /export/kinetic/web/mogov/dhe/prepro.dhe.mo.gov/www/images/placeholder.png, referer: http://prepro.dhe.mo.gov/limesurvey/index.php

[Mon Jun 20 09:22:27 2011] [error] [client 168.166.157.201] File does not exist: /export/kinetic/web/mogov/dhe/prepro.dhe.mo.gov/www/images/placeholder.png, referer: http://prepro.dhe.mo.gov/limesurvey/index.php

[Mon Jun 20 09:22:29 2011] [error] [client 168.166.157.201] TIBO2 oper===, referer: http://prepro.dhe.mo.gov/limesurvey/index.php

[Mon Jun 20 09:22:29 2011] [error] [client 168.166.157.201] TIBO2 oper===, referer: http://prepro.dhe.mo.gov/limesurvey/index.php

[Mon Jun 20 09:22:29 2011] [error] [client 168.166.157.201] TIBO2 oper===, referer: http://prepro.dhe.mo.gov/limesurvey/index.php
[Mon Jun 20 09:22:46 2011] [error] [client 168.166.157.201] PHP Fatal error: Class 'ZipArchive' not found in /export/web/www/limesurvey/admin/browse.php on line 518, referer: http://prepro.dhe.mo.gov/limesurvey/admin/admin.php?action=browse&amp;sid=25125&amp;subaction=all
[
Mon Jun 20 09:36:18 2011] [error] [client 168.166.80.202] PHP Fatal error: Class 'ZipArchive' not found in /export/web/www/limesurvey/admin/browse.php on line 518, referer: http://prepro.dhe.mo.gov/limesurvey/admin/admin.php?action=browse&amp;sid=25125&amp;subaction=all

mdekker

mdekker

2011-06-21 09:11

reporter   ~15532

The TIBO2 is some kind of debug statement that was removed after the release, nothing to worry about. The missing placeholder.png is something I didn't notice yet but I will fix that right away.

The ZipArchive is a php class that should be enabled in php, check the manual for some hints or ask your host to help you. This is the link to the relevant manual part: http://www.php.net/manual/en/zip.installation.php

I will include an error message pointing to the manual when the ziparchive class is missing. If you are comfortable you could update to latest svn or else wait for a new stable+ version to be released.

mdekker

mdekker

2011-06-21 09:15

reporter   ~15533

Committed a 'fix' in svn 10311. It now displays an error message when no zip support is found, pointing to http://www.php.net/manual/en/zip.installation.php to help fix the problem.

lstrange

lstrange

2011-06-21 16:25

reporter   ~15548

Thanks so much, I'm getting in touch with our server admin now to get this enabled.

Issue History

Date Modified Username Field Change
2011-06-03 19:20 lstrange New Issue
2011-06-05 22:34 c_schmitz Assigned To => texens
2011-06-05 22:34 c_schmitz Status new => assigned
2011-06-20 15:38 mdekker Assigned To texens => mdekker
2011-06-20 15:40 mdekker Note Added: 15522
2011-06-20 16:52 lstrange Note Added: 15527
2011-06-21 09:11 mdekker Note Added: 15532
2011-06-21 09:13 mdekker Summary Download of 1 or multiple responses results in blank screen => Better handling of missing zip support
2011-06-21 09:15 mdekker Note Added: 15533
2011-06-21 16:25 lstrange Note Added: 15548
2011-07-06 13:10 mdekker Status assigned => closed
2011-07-06 13:10 mdekker Resolution open => fixed