Custom context 17.0.1.3 gives an error

Hello, due to certain issues i wasn’t able to set up FreePBX 17 from installation script, so i had to manually set everything up(PHP 8.2, Asterisk 21.12.2), after which i restore a backup from FreePBX 14.

Also couldn’t get Custom context module online from GUI so i got it directly by https://github.com/FreePBX-ContributedModules/customcontexts/archive/refs/heads/release/17.0.zip

Version seem the same and it installed with no issues, however creating a context always end up throwing an error with an argument “Trying to access array offset on value of type null”

Google says something about it beign slightly incompatible with asterisk 21 and recommends making changes to extensions_custom.conf, which i didn’t try yet.

Is it due to my backup from 14? Should i get another instance of 17 up and try on fresh before restoring backup?

Nobody’s touched that thing in 2 years, so no surprise if it’s broken. I’d suggest opening a bug on Github with a complete error message (including line numbers) but I wouldn’t hold my breath waiting for a fix.

Anything in FreePBX-ContributedModules is generally considdered community maintained. So When reporting the bug if you have the ability you may also want to sign a CLA and submit a pull request.

I’ve set up another FreePBX17(though with Asterisk 20 instead), and tried custom context before restoring backup - it does seem to work, or at least it did open without error.

Legacy(14) backup restored - custom context module still opens and allows to create contexts without throwing any errors.

Won’t be able to check if it will actually work anytime soon though.