Error creating custom modules in Modulebuilder

Hi,

I am running SuiteCRM version 7.8.1 on PHP7. The installation went fine but when I try to create a module in Module builder and deploy the package, I get the following errors in apache’s error log and the module does not deploy.

Any help would be appreciated.

Thanks
Manvir

[Tue Mar 14 20:20:42.848203 2017] [php7:notice] [pid 4400] [client 192.168.54.118:51231] PHP Notice: Use of undefined constant JSON_LOOSE_TYPE - assumed ‘JSON_LOOSE_TYPE’ in /var/www/html/msuitecrm/include/utils.php on line 3870, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:50.986762 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Use of undefined constant JSON_LOOSE_TYPE - assumed ‘JSON_LOOSE_TYPE’ in /var/www/html/msuitecrm/include/ytree/Tree.php on line 69, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:50.993917 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Use of undefined constant JSON_LOOSE_TYPE - assumed ‘JSON_LOOSE_TYPE’ in /var/www/html/msuitecrm/include/utils.php on line 3870, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:52.750008 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Undefined index: LBL_SEARCH in /var/www/html/msuitecrm/modules/ModuleBuilder/MB/MBLanguage.php on line 184, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:52.756002 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Undefined index: LBL_SEARCH in /var/www/html/msuitecrm/modules/ModuleBuilder/MB/MBLanguage.php on line 184, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:52.761307 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Use of undefined constant JSON_LOOSE_TYPE - assumed ‘JSON_LOOSE_TYPE’ in /var/www/html/msuitecrm/include/ytree/Tree.php on line 69, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:52.765205 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Use of undefined constant JSON_LOOSE_TYPE - assumed ‘JSON_LOOSE_TYPE’ in /var/www/html/msuitecrm/include/utils.php on line 3870, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:52.868031 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Use of undefined constant JSON_LOOSE_TYPE - assumed ‘JSON_LOOSE_TYPE’ in /var/www/html/msuitecrm/include/utils.php on line 3870, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:52.995399 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Use of undefined constant JSON_LOOSE_TYPE - assumed ‘JSON_LOOSE_TYPE’ in /var/www/html/msuitecrm/include/utils.php on line 3870, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:53.326396 2017] [php7:warn] [pid 4402] [client 192.168.54.118:51232] PHP Warning: Declaration of ListViewPackages::setup($data, $file, $where, $params = Array, $offset = 0, $limit = -1, $filter_fields = Array, $id_field = ‘id’) should be compatible with ListViewDisplay::setup($seed, $file, $where, $params = Array, $offset = 0, $limit = -1, $filter_fields = Array, $id_field = ‘id’, $id = NULL) in /var/www/html/msuitecrm/ModuleInstall/PackageManager/ListViewPackages.php on line 42, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:53.377283 2017] [php7:notice] [pid 4402] [client 192.168.54.118:51232] PHP Notice: Undefined index: inline_edit in /var/www/html/msuitecrm/modules/ModuleBuilder/MB/MBModule.php on line 461, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb
[Tue Mar 14 20:20:53.386748 2017] [php7:error] [pid 4402] [client 192.168.54.118:51232] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function UndeployedRelationships::build(), 1 passed in /var/www/html/msuitecrm/modules/ModuleBuilder/MB/MBModule.php on line 429 and exactly 3 expected in /var/www/html/msuitecrm/modules/ModuleBuilder/parsers/relationships/UndeployedRelationships.php:228\nStack trace:\n#0 /var/www/html/msuitecrm/modules/ModuleBuilder/MB/MBModule.php(429): UndeployedRelationships->build(‘custom/modulebu…’)\n#1 /var/www/html/msuitecrm/modules/ModuleBuilder/MB/MBPackage.php(213): MBModule->build(‘custom/modulebu…’)\n#2 /var/www/html/msuitecrm/modules/ModuleBuilder/MB/MBPackage.php(315): MBPackage->buildInstall(‘custom/modulebu…’)\n#3 /var/www/html/msuitecrm/modules/ModuleBuilder/controller.php(237): MBPackage->build(false)\n#4 /var/www/html/msuitecrm/include/MVC/Controller/SugarController.php(446): ModuleBuilderController->action_DeployPackage()\n#5 /var/www/html/msuitecrm/include/MVC/Controller/SugarController.php(419): SugarController->do_action()\n#6 /var/www/html/msuitecrm/incl in /var/www/html/msuitecrm/modules/ModuleBuilder/parsers/relationships/UndeployedRelationships.php on line 228, referer: http://crm.maganvi.com/index.php?module=ModuleBuilder&action=index&type=mb