Installation of Open Page bug

I know what this issue is.

@theJames It seems that passing an empty/null page group id, FreePBX is returning a false bool instead of an empty array or a null result. Which makes this throw a TypeError:

public function getPageGroupSettings($id): array {
	return $this->getConfig($id, 'pagegroupsettings') ?? [];
}

If I remove the return type, it works. But to keep in style with having return types I just switch the code to:

$settings = $this->getConfig($id, 'pagegroupsettings');
return is_array($settings) ? $settings : [];

It needs to be one of the two options unless the FreePBX paging module is updated so it’s returning a null or empty array for the settings check.

We already have the PR up on this since yesterday and will have it published soon.

2 Likes

Sweet. Didn’t even look for a PR or tickets on the module :slight_smile:

Let me know when the issue is resolved so where I can install the Open Page again on my FreePBX.

Also, I plan to one day setup an TangoPBX server on another server for testing purposes.

1 Like

OK we just published 17.0.8. It did not go through our full QA but it did pass basic QA testing which was we could install it and we could create a Page Group. It will go through formal QA this week but since the current one was broken I wanted to get something out for everyone in the mean time.

1 Like

Will it be better if I wait until the end of the week to try to install 17.0.8 on my FreePBX or what?

I loaded it on IncrediblePBX-2025 to test. Looks good. Here’s my QA testing:

  1. No problems with reload after installation. (1 bug down.)
  2. Created a page group. (2 bugs down)
  3. Paged the page group. (All good…)
2 Likes

On my FreePBX 17, still did not went through with no problems. Here’s the error:

franck@tango:~$ sudo fwconsole ma downloadinstall openpage
No repos specified, using: [standard] from last GUI settings

Downloading module 'openpage'
Processing openpage
Downloading...
 376099/376099 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 24 seconds
Updating tables openpage_schedules, openpage_events, openpage_event_days, openpage_exclusion_dates...Done
Generating CSS...Done
Module openpage version 17.0.8 successfully installed
Updating Hooks...Done
Chowning directories...Done
franck@tango:~$ sudo fwconsole r
Reload Started
Reload Complete

Looks good to me.

Typo error in module.xml.
Module and not modile. :wink:
<description>This modile provides advanced paging for FreePBX</description>

2 Likes

Fix typo in module.xml by lgaetz Ā· Pull Request #9 Ā· tangopbx/openpage Ā· GitHub

1 Like

Sorry. Another bug here. Debian-12, FreePBX-17 on IncrdiblePBX-2025.
The module installs and works. However, when you make changes in FreePBX to anything and press the ā€œApply Configā€ button, everything appears to apply correctly.

If you drop into Linux and do the fwconsole reload, you get the error below:

 $ fwconsole reload --verbose
Reload Started

In Openpage.class.php line 236:

  [Whoops\Exception\ErrorException (2)]
  Undefined array key "multicast"


Exception trace:
  at /var/www/html/admin/modules/openpage/Openpage.class.php:236
 Whoops\Run->handleError() at /var/www/html/admin/modules/openpage/Openpage.class.php:236
 FreePBX\modules\Openpage->doDialplanHook() at /var/www/html/admin/libraries/BMO/DialplanHooks.class.php:109
 FreePBX\DialplanHooks->processHooks() at /var/www/html/admin/libraries/Console/Reload.class.php:323
 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]

Bug ticket is opened here. If you find bugs please open tickets on our github project so we can get them fixed.

2 Likes

I’ll just hold off on installing Open Page until when it’s ready in FreePBX 17 to install without any problems. Once when I setup an TangoPBX server, I will try to install Open Page. Or, what’s the recommendation when for my FreePBX putting an TangoPBX’s Open Page?

Sorry forgot to update the thread here that the 17.0.9 of OpenPage was released to resolve the error you saw.

1 Like

Okay. I’ll do that, it’ll probably be sometime tomorrow or Tuesday before I can try it because the air conditioner unit where the server is located is down and I had to turn the server off to keep it from running hot because where I live the temperature outdoors is in the warm/hot season now and I have to wait until the ac unit is fixed.

I have did the installation of 17.0.9 of OpenPage on my FreePBX, but I still have that error. Here is the error:

I looked on fwconsole ma listonline and open page shows it on there.

The error you display is from your misuse of the fwconsole command. It should be

fwconsole ma downloadinstall openpage --tag 17.0.9

The --tag is important, otherwise the command is trying to install a module named 17.0.9 which doesnt exist, hence empty xml.

3 Likes

I have done that and it worked. Thank you, and thank you guys for your time of figuring out.

3 Likes