Module troubles

Hi all!

I just installed Suitecrm 7.8.2 on Windows IIS 8.5.
Using PHP 7.1.3 x64, backend is MSSQL server.

When I create module and try to deploy it, circle and deploying package message never ends.
When I try to export package or publish it I get blank page.

PHP error trace for DEPLOY:

[28-Mar-2017 09:57:00 Europe/Ljubljana] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function UndeployedRelationships::build(), 1 passed in \modules\ModuleBuilder\MB\MBModule.php on line 429 and exactly 3 expected in \modules\ModuleBuilder\parsers\relationships\UndeployedRelationships.php:228
Stack trace:
#0 \modules\ModuleBuilder\MB\MBModule.php(429): UndeployedRelationships->build(‘custom\modulebu…’)
#1 \modules\ModuleBuilder\MB\MBPackage.php(213): MBModule->build(‘custom\modulebu…’)
#2 \modules\ModuleBuilder\MB\MBPackage.php(315): MBPackage->buildInstall(‘custom\modulebu…’)
#3 \modules\ModuleBuilder\controller.php(237): MBPackage->build(false)
#4 \include\MVC\Controller\SugarController.php(446): ModuleBuilderController->action_DeployPackage()
#5 \include\MVC\Controller\SugarController.php(419): SugarController->do_action()
#6 \include\MVC\Controller\SugarController.php(394): SugarC in \modules\ModuleBuilder\parsers\relationships\UndeployedRelationships.php on line 228

PHP error trace for export:

[28-Mar-2017 09:49:20 Europe/Ljubljana] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function MBPackage::exportProject(), 0 passed in \modules\ModuleBuilder\controller.php on line 291 and at least 1 expected in \modules\ModuleBuilder\MB\MBPackage.php:1018
Stack trace:
#0 \modules\ModuleBuilder\controller.php(291): MBPackage->exportProject()
#1 \include\MVC\Controller\SugarController.php(446): ModuleBuilderController->action_ExportPackage()
#2 \include\MVC\Controller\SugarController.php(419): SugarController->do_action()
#3 \include\MVC\Controller\SugarController.php(394): SugarController->handle_action()
#4 \modules\ModuleBuilder\controller.php(103): SugarController->process()
#5 \include\MVC\Controller\SugarController.php(307): ModuleBuilderController->process()
#6 \include\MVC\SugarApplication.php(105): SugarController->execute()
#7 \index.php(52): SugarApplication->execute( in \modules\ModuleBuilder\MB\MBPackage.php on line 1018

How to resolve it?

Thanks!

Hi everyone.
Same problem here!

Refer the below links and follow the steps

https://github.com/salesagility/SuiteCRM/issues/3081 - label undefined

https://github.com/salesagility/SuiteCRM/pull/3678/files#diff-e9f8720adf7575fc122a75249c52d02dR1018 – Module builder export package

https://github.com/salesagility/SuiteCRM/pull/3086

changes in below files -

\modules\ModuleBuilder\MB\MBPackage.php
\modules\ModuleBuilder\language\en_us.lang.php
\include\SugarObjects\templates\file\views\view.edit.php