Paging.class.php ErrorException (8192)

I got this when reloading FreePBX 17.0.28 Asterisk Version: 22.8.2:

fwconsole reload --verbose
Reload Started

In Paging.class.php line 501:

[Whoops\Exception\ErrorException (8192)]
Automatic conversion of false to array is deprecated

Exception trace:
at /var/www/html/admin/modules/paging/Paging.class.php:501
Whoops\Run->handleError() at /var/www/html/admin/modules/paging/Paging.class.php:501
FreePBX\modules\Paging->getPageGroupById() at /var/www/html/admin/modules/paging/functions.inc.php:943
paging_get_pagingconfig() at /var/www/html/admin/modules/paging/functions.inc.php:844
paging_getdestinfo() at /var/www/html/admin/libraries/BMO/Destinations.class.php:340
FreePBX\Destinations->identifyDestinations() at /var/www/html/admin/libraries/BMO/Destinations.class.php:399
FreePBX\Destinations->listProblemDestinations() at /var/www/html/admin/libraries/Console/Reload.class.php:280
FreePBX\Console\Command\Reload->reload() at /var/www/html/admin/libraries/Console/Reload.class.php:95
FreePBX\Console\Command\Reload->execute() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:312
Symfony\Component\Console\Command\Command->run() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:1022
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:314
Symfony\Component\Console\Application->doRun() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:168
Symfony\Component\Console\Application->run() at /var/lib/asterisk/bin/fwconsole:163

reload [–json] [–dry-run] [–skip-registry-checks] [–dont-reload-asterisk]

first do fwconsole ma upgradeall
fwconsole reload then fwconsole restart also try Specifically update Paging module fwconsole ma upgrade paging
fwconsole reload then it should be fixed

~$ sudo fwconsole ma upgradeall
No repos specified, using: [standard] from last GUI settings

Up to date.
Updating Hooks…Done
1ster1dmin@pbx1:~$ sudo fwconsole reload
Reload Started

In Paging.class.php line 501:

Automatic conversion of false to array is deprecated

reload [–json] [–dry-run] [–skip-registry-checks] [–dont-reload-asterisk]

~$ sudo fwconsole restart
Running FreePBX shutdown…

Running Asterisk pre from Core module
Stopping Call Transfer Monitoring Service
Running Asterisk pre from Restapps module
RestApps Server is not running
Running Asterisk pre from Ucp module
Stopping UCP Node Server
[->--------------------------] 1 sec
Stopped UCP Node Server
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[->--------------------------] < 1 sec
Killing asterisk forcefully.

Running FreePBX startup…
Running Asterisk pre from Firewall module
Running Asterisk pre from Oracle_connector module
Running Asterisk pre from Sysadmin module
Running Sysadmin Hooks
Firewall module detected.
Restarting fail2ban
fail2ban Restarted
Updating License Information for 87517411
Checking Vpn server
Starting Asterisk…

Firewall service now starting.

[============================] 41 secs
Asterisk Started
Running Asterisk post from Core module
Starting Call Transfer Monitoring Service
Running Asterisk post from Endpoint module
Running Asterisk post from Restapps module
Starting RestApps Server…
[->--------------------------] 1 sec
Started RestApps Server. PID is 3205121
Running Asterisk post from Ucp module
Starting UCP Node Server…
[->--------------------------] 1 sec
Started UCP Node Server. PID is 3205217

~$ sudo fwconsole ma upgrade paging
No repos specified, using: [standard] from last GUI settings

paging is the same as the online version, unable to upgrade
Updating Hooks…Done
Chowning directories…Done

~$ sudo fwconsole ma downloadinstall paging
No repos specified, using: [standard] from last GUI settings

Downloading module ‘paging’
Processing paging
Verifying local module download…Verified
Extracting…Done
Download completed in 3 seconds
Updating tables paging_groups, paging_autoanswer, paging_config, paging_core_routing…Done
Generating CSS…Done
Module paging version 17.0.3 successfully installed
Updating Hooks…Done
Chowning directories…Done

~$ sudo fwconsole reload
Reload Started

In Paging.class.php line 501:

Automatic conversion of false to array is deprecated

reload [–json] [–dry-run] [–skip-registry-checks] [–dont-reload-asterisk]

The Paging module itself appears to be current (17.0.3), and reinstalling it did not resolve the issue. Since the error occurs in Paging::getPageGroupById() during destination validation, I suspect there is a corrupted or orphaned paging group entry in the database.

Can you provide the output of:

php -v

and:

SELECT * FROM paging_groups;

(from the MariaDB/MySQL console)

Also, if you’re comfortable with it, please post the code around line 501 of:

/var/www/html/admin/modules/paging/Paging.class.php

The error “Automatic conversion of false to array is deprecated” usually means the code expected an array from a database query but received false instead. That can happen when a paging group referenced elsewhere no longer exists or contains invalid data. I have had this problem before

I don't see database and GUI differences,

MariaDB [asterisk]> SELECT * FROM paging_groups;
±------------±-----+
| page_number | ext |
±------------±-----+
| 7771530 | 1531 |
| 7771530 | 1532 |
| 7771530 | 1533 |
| 7771530 | 1534 |
| 7771531 | 1531 |
| 7771532 | 1532 |
| 7771533 | 1533 |
| 7771534 | 1534 |
±------------±-----+
8 rows in set (0.001 sec)

$ php -v
PHP 8.2.31 (cli) (built: May 8 2026 07:20:38) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.31, Copyright (c) Zend Technologies
with the ionCube PHP Loader v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd.
with Zend OPcache v8.2.31, Copyright (c), by Zend Technologies

public function getPageGroupById($group){
	$sql = "SELECT * FROM paging_config WHERE page_group = :group";
	$stmt = $this->Database->prepare($sql);
	$stmt->execute([':group' => $group]);
	$results = $stmt->fetch(PDO::FETCH_ASSOC);
	$results['default_group'] = $this->getDefaultGroup();
	return $results;
}

line 501 is 		$results['default_group'] = $this->getDefaultGroup();

have you done anything like update at all? or do stuff with paging if you tell me that i might be able to help

Updated Modules and SO (Debian 12)

The code is bad, PDOStatement::fetch() will return false on error (as will PDOStatement::execute() above) and they’re not doing any checking for that case. But that leaves the question of why the database query is failing.

Maybe try reinstalling the module with something like fwconsole ma downloadinstall paging to be sure the paging_config table is properly created and populated?