Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-18837

`fwconsole ma refreshsignatures` error (PHP7)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 14
    • Fix Version/s: None
    • Component/s: fwconsole
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      16.1.0

      Description

      OS: Ubuntu 18.04 x64
      FreePBX: 14.0.5.5
      ASterisk: 16.0.1
      PHP: 7.2.10

      Error Log:

      ~~~

      1. fwconsole ma refreshsignatures

      ...

      Starting module download from http://mirror1.freepbx.org/modules/packages/queues/queues-14.0.2.22.tgz.gpg ...
      Processing
      Downloading...
      444726/444726 [============================] 100%
      Finished downloading
      Extracting...sh: 0: getcwd() failed: No such file or directory
      sh: 0: getcwd() failed: No such file or directory
      sh: 0: getcwd() failed: No such file or directory
      sh: 0: getcwd() failed: No such file or directory
      sh: 0: getcwd() failed: No such file or directory
      Done

      In modulefunctions.class.php line 1713:

      count(): Parameter must be an array or an object that implements Countable

       ~~~

      Solution:

      ~~~

      /var/www/html/admin/libraries/modulefunctions.class.php

      line 1713: if(count($errors))

      { line 1714:     return $errors; line 1715: }

       

      change

      line 1713: if(count($errors)) {

      to

      line 1713: if( is_array($errors) && count($errors)>0) {

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                delikates delikates
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.