Problem/Motivation

The module import fails when using PHP version less that 7.3 because the `array_key_first` is only available with 7.3 and above.

Proposed resolution

Replace the `array_key_first` function use with a custom polyfil.

The website encountered an unexpected error. Please try again later.
Error: Call to undefined function Drupal\excel_importer\Form\array_key_first() in Drupal\excel_importer\Form\ExcelImporterForm->getCorrectValue() (line 288 of modules/contrib/excel_importer/src/Form/ExcelImporterForm.php).

Comments

tsega created an issue. See original summary.

  • tsega committed 4745529 on 3182402-replace-array-key-first
    #3182402: Replace array_key_first function.
    

  • tsega committed 4745529 on 1.0.x
    #3182402: Replace array_key_first function.
    

  • tsega committed 4745529 on 3182402-replace-array-key-first-bug-fix
    #3182402: Replace array_key_first function.
    
  • tsega committed bda5495 on 3182402-replace-array-key-first-bug-fix
    #3182402: Fix bug private function call.
    

  • tsega committed bda5495 on 1.0.x
    #3182402: Fix bug private function call.
    
tsega’s picture

Status: Active » Needs review
tsega’s picture

Status: Needs review » Reviewed & tested by the community
tsega’s picture

Version 1.0.5 fixes this issue.

tsega’s picture

Status: Reviewed & tested by the community » Fixed
tsega’s picture

Status: Fixed » Closed (fixed)