View Issue Details

IDProjectCategoryView StatusLast Update
15974Bug reportsInstallationpublic2020-03-11 16:54
ReporterYurikKazaryan Assigned ToDenisChenu  
PrioritynoneSeveritycrash 
Status resolvedResolutionfixed 
Product Version4.1.10 
Fixed in Version4.1.10 
Summary15974: asort error while prechecking the installation
Description

After choosing language on installation page and agreeing with license on stage installer/precheck i am getting an error
"asort() expects parameter 1 to be array, null given"

Steps To Reproduce
  1. Download dist from https://download.limesurvey.org/latest-stable-release/limesurvey4.1.10+200311.tar.gz
  2. unzip it in /var/www/limesurvey
  3. Do chmod, chown and chcon for writing permissions on recommended folders
  4. Go to web browser and try to get http://domain/admin
  5. Can choose language
  6. Agree to license
  7. Getting an error

Also i tried to clone git repo and still getting the same error on precheck

TagsNo tags attached.
Complete LimeSurvey version number (& build)4.1.10
I will donate to the project if issue is resolvedNo
BrowserGoogle Chrome
Database & DB-VersionMySQL 8
Server OS (if known)Centos 8
Webserver software & version (if known)Apache 2.4
PHP Version7.2.11

Activities

YurikKazaryan

YurikKazaryan

2020-03-11 08:59

reporter   ~56404

Problem solved. Wasnt installed mysqli ext for php

ollehar

ollehar

2020-03-11 11:11

administrator   ~56405

Good that you solved it, but the error message should really be better.

YurikKazaryan

YurikKazaryan

2020-03-11 12:37

reporter   ~56406

@ollehar error msg is provided in the bug description - "asort() expects parameter 1 to be array, null given"
I just didn't install any extention for php to work with mysql
As i see you the code in application/models/installerconfigform.php there should be try/catch block for function getSupportedDbTypes near asort or at least there should be if operator to check is $result is an array

ollehar

ollehar

2020-03-11 13:47

administrator   ~56407

Yes, an added null check sounds right.

DenisChenu

DenisChenu

2020-03-11 16:53

developer   ~56412

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=29683

DenisChenu

DenisChenu

2020-03-11 16:54

developer   ~56413

Thanks for reporting :)

Related Changesets

LimeSurvey: master 7930eff4

2020-03-11 16:53:25

DenisChenu

Details Diff
fixed issue 15974: asort error while prechecking the installation
Dev: getSupportedDbTypes always as array
Affected Issues
15974
mod - application/models/InstallerConfigForm.php Diff File

Issue History

Date Modified Username Field Change
2020-03-11 06:28 YurikKazaryan New Issue
2020-03-11 08:59 YurikKazaryan Note Added: 56404
2020-03-11 11:11 ollehar Note Added: 56405
2020-03-11 12:37 YurikKazaryan Note Added: 56406
2020-03-11 13:47 ollehar Note Added: 56407
2020-03-11 16:44 DenisChenu Assigned To => DenisChenu
2020-03-11 16:44 DenisChenu Status new => assigned
2020-03-11 16:53 DenisChenu Changeset attached => LimeSurvey master 7930eff4
2020-03-11 16:53 DenisChenu Note Added: 56412
2020-03-11 16:53 DenisChenu Resolution open => fixed
2020-03-11 16:54 DenisChenu Status assigned => resolved
2020-03-11 16:54 DenisChenu Fixed in Version => 4.1.10
2020-03-11 16:54 DenisChenu Note Added: 56413