View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15755 | Bug reports | Other | public | 2020-01-22 15:54 | 2021-03-03 15:25 |
Reporter | bismark | Assigned To | ollehar | ||
Priority | none | Severity | block | ||
Status | feedback | Resolution | open | ||
Product Version | 3.21.5 | ||||
Summary | 15755: 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() | ||||
Tags | No tags attached. | ||||
Complete LimeSurvey version number (& build) | 3.xLTS | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database & DB-Version | 10.1.26-MariaDB | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.1.8 | ||||