View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
15755Bug reportsOtherpublic2021-08-04 15:22
Reporterbismark Assigned Toollehar  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version3.21.5 
Summary15755: DemomodeCommand import sample surveys fails
Description

scandir($path) returns an array with '.' and '..' items, which should be filtered out
use $aSamplesurveys = array_diff(scandir($documentationSurveyPath), array('.', '..'));

Steps To Reproduce

$ php application/commands/console.php demomode yes

Restoring installation to demomode

|| Resetting Database
|| Resetting Files
|| Installing demo surveys
PHP Error[2]: file_get_contents(C:\Users\bismark\Limesurvey\plugins-new\docs\demosurveys.): failed to open stream: Permis
sion denied
in file C:\Users\bismark\Limesurvey\plugins-new\application\helpers\admin\import_helper.php at line 784
#0 C:\Users\bismark\Limesurvey\plugins-new\application\helpers\admin\import_helper.php(784): file_get_contents()
#1 C:\Users\bismark\Limesurvey\plugins-new\application\commands\DemomodeCommand.php(118): XMLImportSurvey()
#2 C:\Users\bismark\Limesurvey\plugins-new\application\commands\DemomodeCommand.php(25): DemomodeCommand->_createDemo()
#3 C:\Users\bismark\Limesurvey\plugins-new\framework\console\CConsoleCommandRunner.php(71): DemomodeCommand->run()
#4 C:\Users\bismark\Limesurvey\plugins-new\framework\console\CConsoleApplication.php(92): CConsoleCommandRunner->run()
#5 C:\Users\bismark\Limesurvey\plugins-new\framework\base\CApplication.php(185): ConsoleApplication->processRequest()
#6 C:\Users\bismark\Limesurvey\plugins-new\application\commands\console.php(64): ConsoleApplication->run()

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)3.xLTS
I will donate to the project if issue is resolvedNo
Browser
Database type & version10.1.26-MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version7.1.8

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2021-03-03 15:25

administrator   ~62668

Please check if this bug still exists in the latest patch release. Thank you.

galads

galads

2021-08-04 15:22

reporter   ~65825

Hello bismark,

we have asked for feedback on this issue. Because we did not get an answer we assume that the issue is resolved.
However, should you be able to reproduce the issue using the latest version, please feel free to re-open the issue and give us exact details on how to reproduce it.

Thank you and best regards,

galads

Issue History

Date Modified Username Field Change
2020-01-22 15:54 bismark New Issue
2021-03-03 15:25 ollehar Assigned To => ollehar
2021-03-03 15:25 ollehar Status new => feedback
2021-03-03 15:25 ollehar Note Added: 62668
2021-08-04 15:22 galads Status feedback => closed
2021-08-04 15:22 galads Resolution open => fixed
2021-08-04 15:22 galads Note Added: 65825
2021-08-04 15:22 galads Bug heat 2 => 4