FreePBX / issue-tracker

The unified FreePBX issue tracker.
https://www.freepbx.org
GNU General Public License v3.0
9 stars 1 forks source link

[bug]: Fwconsole BULK IMPORT issue #274

Closed ramarajan222 closed 4 months ago

ramarajan222 commented 4 months ago

FreePBX Version

FreePBX 17

Issue Description

ref

https://community.freepbx.org/t/fwconsole-bulk-import-issue/97278

Operating Environment

FreePBX V17

Relevant log output

fwconsole bi -vvv --type extensions --replace /opt/test/extensions.csv
and all the same with “-t” key
cli error is the same.
In Bulkhandler.class.php line 193:

[Whoops\Exception\ErrorException (2)]
Undefined array key “type”

Exception trace:
at /var/www/html/admin/modules/bulkhandler/Bulkhandler.class.php:193
Whoops\Run->handleError() at /var/www/html/admin/modules/bulkhandler/Bulkhandler.class.php:193
FreePBX\modules\Bulkhandler->fileToArray() at /var/www/html/admin/modules/bulkhandler/Console/Bulkimport.class.php:30
FreePBX\Console\Command\Bulkimport->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
ramarajan222 commented 4 months ago

Fixed in the latest bulkhandler -17.0.5