View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20048Bug reportsQuestion themepublic2025-04-16 02:06
Reporterasim.zafar Assigned Totibor.pacalat  
PrioritynoneSeverityblock 
Status assignedResolutionopen 
Product Version6.6.x 
Summary20048: Question theme import crashes
Description

Question theme import crashes with the following error

PHP error
ZipArchive::open(): Passing null to parameter #2 ($flags) of type int is deprecated
/var/www/html/application/libraries/Zip.php(19)

07 */
08 class Zip extends \ZipArchive
09 {
10 protected $opened = false;
11
12 /*
13
@inheritdoc
14 @param bool $checkZipBomb If true, check for Zip Bombing
15
/
16 #[\ReturnTypeWillChange]
17 public function open($filename, $flags = 0, $checkZipBomb = true)
18 {
19 $result = parent::open($filename, $flags);
20 $this->opened = ($result === true);
21 if ($result === true && $checkZipBomb && $this->isZipBomb()) {
22 throw new \Exception("Unzipped file is bigger than upload_max_filesize or post_max_size");
23 }
24 return $result;
25 }
26
27 /*
28
@inheritdoc
29 */
30 public function close() : bool
31 {

Steps To Reproduce

Steps to reproduce

Retry uploading any zip as a theme

Expected result

Upload to be successful

Actual result

PHP error below

PHP error
ZipArchive::open(): Passing null to parameter #2 ($flags) of type int is deprecated
/var/www/html/application/libraries/Zip.php(19)

07 */
08 class Zip extends \ZipArchive
09 {
10 protected $opened = false;
11
12 /*
13
@inheritdoc
14 @param bool $checkZipBomb If true, check for Zip Bombing
15
/
16 #[\ReturnTypeWillChange]
17 public function open($filename, $flags = 0, $checkZipBomb = true)
18 {
19 $result = parent::open($filename, $flags);
20 $this->opened = ($result === true);
21 if ($result === true && $checkZipBomb && $this->isZipBomb()) {
22 throw new \Exception("Unzipped file is bigger than upload_max_filesize or post_max_size");
23 }
24 return $result;
25 }
26
27 /*
28
@inheritdoc
29 */
30 public function close() : bool
31 {

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)6.10.3+250203
I will donate to the project if issue is resolvedYes
Browser
Database type & versionAurora MySQL 5.7
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP 7.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

tibor.pacalat

tibor.pacalat

2025-04-07 16:49

administrator   ~82383

I can not reproduce this using latest version Release 6.12.3+250331.

asim.zafar

asim.zafar

2025-04-16 02:06

reporter   ~82427

Upgraded to latest version 6.13.0 and still getting the same error trying to upload question theme. Navigate to configuration -> themes -> select question theme -> then click upload and install with the following attached theme.

Issue History

Date Modified Username Field Change
2025-04-04 20:53 asim.zafar New Issue
2025-04-04 20:53 asim.zafar File Added: Screenshot 2025-04-04 at 2.44.24 PM.png
2025-04-07 16:49 tibor.pacalat Note Added: 82383
2025-04-07 16:49 tibor.pacalat Bug heat 0 => 2
2025-04-07 16:50 tibor.pacalat Assigned To => tibor.pacalat
2025-04-07 16:50 tibor.pacalat Status new => feedback
2025-04-16 02:06 asim.zafar Note Added: 82427
2025-04-16 02:06 asim.zafar File Added: LimeSurvey-Signature-Question-main.zip
2025-04-16 02:06 asim.zafar Bug heat 2 => 4
2025-04-16 02:06 asim.zafar Status feedback => assigned