Undefined variables in BM Manager dashboard

General support for the Pi-Star System
Post Reply
KN2TOD
Posts: 270
Joined: Sun Nov 11, 2018 6:36 pm

Undefined variables in BM Manager dashboard

Post by KN2TOD »

When either selecting "Modify Static" or "Modify Reflector" in the BrandMeister Manager dashboard, errors are thrown for undefined variables:

Code: Select all

2020/07/17 15:48:01 [error] 922#922: *1029504 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined
  variable: targetREF in /var/www/dashboard/mmdvmhost/bm_manager.php on line 76" while reading upstream, 
  client: 192.168.1.22, server: , request: "POST /admin/index.php HTTP/1.1", upstream:
   "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "pi-star-2", referrer: "http://pi-star-2/admin/"

2020/07/17 16:07:19 [error] 922#922: *1031157 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined 
 variable: targetTG in /var/www/dashboard/mmdvmhost/bm_manager.php on line 72" while reading upstream,
 client: 192.168.1.22, server: , request: "POST /admin/index.php HTTP/1.1", upstream:
  "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "pi-star-2", referrer: "http://pi-star-2/admin/index.php"
The "$targetREF" variable is undefined when selecting "Modify Static" and "$targetTG" is undefined when selecting "Modify Reflector".

(Suggest the following lines be added to BM_Manager.php:

Code: Select all

	 :
    // Figure out what has been posted
	$targetREF = '';
	$targetTG = '';
    if (isset($_POST["dropDyn"])) { $bmAPIurl = $bmAPIurl."setRepeaterTarantool.php?action=dropDynamicGroups&slot=".$targetSlot."&q=".$dmrID; }
        :
Post Reply