View Issue Details

IDProjectCategoryView StatusLast Update
15755Bug reportsOtherpublic2020-01-22 15:54
Reporterbismark Assigned To 
PrioritynoneSeverityblock 
Status newResolutionopen 
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.
Complete LimeSurvey version number (& build)3.xLTS
I will donate to the project if issue is resolvedNo
Browser
Database & DB-Version10.1.26-MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version7.1.8

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-01-22 15:54 bismark New Issue