Displaying extensions returns "Undefined index:data" error in php-asmanager.php

When I choose to display my extensions, FreePBX 13 returns a stack of errors in red boxes on the right hand side that include “Undefined index: data”.

In the JSON panel on the right hand side of my Firefox 45.6.0 Web Console the error is displayed as:

error: Object
type: "Whoops\Exception\ErrorException"
message: "Undefined index: data"
file: "/var/www/html/admin/libraries/php-asmanager.php"
line: 1525

Why can’t I display my extensions?


FreePBX 13.0.190.7 runs in a privileged LXC container. Both host and container run Gentoo.

uname -r
4.4.26-gentoo

lxc-info --version
2.0.6

php -v
PHP 5.6.28-pl0-gentoo (cli) (built: Dec 24 2016 22:44:11)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies

mysql -V
mysql Ver 15.1 Distrib 10.0.28-MariaDB, for Linux (x86_64) using readline 5.1

apache2 -V
Server version: Apache/2.4.25 (Unix)
Server built: Dec 24 2016 22:23:25
Server’s Module Magic Number: 20120211:67
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with…
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD=“logs/apache_runtime_status”
-D DEFAULT_ERRORLOG=“logs/error_log”
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"

asterisk -V
Asterisk 13.13.1

Roughly followed the Ubuntu guildeline.

The asterisk manager connection is corrupt or faulty. Beyond that not much we can tell you.

I get stacks of:

== Manager ‘admin’ logged off from 127.0.0.1
== Manager ‘admin’ logged on from 127.0.0.1

in my asterisk console when using Freepbx.

How do I formally test my asterisk manager connection?

This doesn’t have anything to do with the original question.

What are you trying to do (in your own thread, please).

I am attempting to display the extensions of my FreePBX 13 installation without getting those Undefined index: data errors.

What he said.