I have a FreePBX 17 machine running on Debian 12 and I’m having an issue regarding the miscapps module.
I’ve installed v17.0.2 of it via the GitHub repository (from the releases page) and I’m getting an error after clicking the add a new misc application button. PHP version is 8.2.7
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="fpbx-container">
<form autocomplete="off" class="fpbx-submit" name="editMiscapp" action="config.php?display=miscapps" method="post" data-fpbx-delete="<?php echo $delurl ?>" role="form" >
<input type="hidden" name="extdisplay" value="<?php echo $extdisplay; ?>">
<input type="hidden" name="miscapp_id" value="<?php echo $extdisplay; ?>">
<input type="hidden" name="action" value="<?php echo ($extdisplay ? 'edit' : 'add'); ?>">
<div class="display full-border">
<div>
<?php echo $warn ?>
<p><?php echo $helptext ?></p>
</div>
<!--Enabled-->
<div class="element-container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="form-group">
<div class="col-md-3 control-label">
<?php echo _("Enable") ?>
</div>
<div class="col-md-9 radioset">
<input type="radio" name="enabled" id="enabledyes" value="1" <?php echo ($enabled?"CHECKED":"") ?>>
<label for="enabledyes"><?php echo _("Yes");?></label>
<input type="radio" name="enabled" id="enabledno" value="" <?php echo ($enabled?"":"CHECKED") ?>>
<label for="enabledno"><?php echo _("No");?></label>
</div>
</div>
</div>
</div>
</div>
</div>
<!--End Enabled-->
<!--Descripton-->
Arguments
"Undefined variable $warn"
Stack frames (6)
5
Whoops\Exception\ErrorException
/var/www/html/admin/modules/miscapps/views/form.php16
4
Whoops\Run handleError
/var/www/html/admin/modules/miscapps/views/form.php16
3
include
/var/www/html/admin/libraries/view.functions.php151
2
load_view
/var/www/html/admin/modules/miscapps/Miscapps.class.php329
1
FreePBX\modules\Miscapps showPage
/var/www/html/admin/modules/miscapps/page.miscapps.php3
0
include
/var/www/html/admin/config.php658
Any idea what can I do to have this working?
Thanks in advance