While first running retrieve_conf I got the long stream of messages:
Warning: fopen(/etc/asterisk/indications.conf): failed to open stream: Permission denied in /usr/share/freepbx/modules/core/functions.inc.php on line 2707
Warning: fwrite(): supplied argument is not a valid stream resource in /usr/share/freepbx/modules/core/functions.inc.php on line 2708
Warning: fwrite(): supplied argument is not a valid stream resource in /usr/share/freepbx/modules/core/functions.inc.php on line 2712
[snip some 30 lines ]
Warning: fwrite(): supplied argument is not a valid stream resource in /usr/share/freepbx/modules/core/functions.inc.php on line 2712
Warning: fwrite(): supplied argument is not a valid stream resource in /usr/share/freepbx/modules/core/functions.inc.php on line 2712
Warning: fwrite(): supplied argument is not a valid stream resource in /usr/share/freepbx/modules/core/functions.inc.php on line 2712
Warning: fclose(): supplied argument is not a valid stream resource in /usr/share/freepbx/modules/core/functions.inc.php on line 2714
Naturally I missed the first line and was left wondering what this fuss is all about. The attached patch checks for the result of the fopen and exists from the function otherwise. I left this non-error handling, as it is the one currently used.