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

Getting "PHP Fatal error: Call to undefined function FreePBX\modules\endpoint_apiApp()" when doing fwconsole reload when endpoint module is not installed.

    XMLWordPrintable

    Details

    • Sprint:
      Sprint 10!, Sprint 11!
    • Bug Tracker:
      QA Testing
    • ToDo:
    • Distro Version:
      15
    • Distro:
      FreePBX Distro

      Description

      Getting "PHP Fatal error: Call to undefined function FreePBX\modules\endpoint_apiApp()" when doing fwconsole reload when endpoint module is not installed.

      The error not conveying endpoint module is missing. Instead of printing PHP fatal error we need to print the message saying Dependent module endpoint is missing and needs to be installed.

      
      [root@freepbx home]# fwconsole reload --verbose
      Reload Started
      PHP Fatal error:  Call to undefined function FreePBX\modules\endpoint_apiApp() in /var/www/html/admin/modules/restapps/Restapps.class.php on line 1481
      Whoops\Exception\ErrorException: Call to undefined function FreePBX\modules\endpoint_apiApp() in file /var/www/html/admin/modules/restapps/Restapps.class.php on line 1481
      Stack trace:
        1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/restapps/Restapps.class.php:1481
      [root@freepbx home]# 

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kgupta Kapil Gupta
                Reporter:
                psandesh Sandesh Prakash [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

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