Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Cannot build module only for Public Contexts #1315

Open
yeshansachithak opened this issue Mar 6, 2019 · 0 comments
Open

Cannot build module only for Public Contexts #1315

yeshansachithak opened this issue Mar 6, 2019 · 0 comments

Comments

@yeshansachithak
Copy link

Hi,

Getting an error when build a module only for public contexts. I have a table as below.

Existing Table

CREATE TABLE IF NOT EXISTS `my_uapps` (
  `app_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
  `users_id` BIGINT(20) UNSIGNED NOT NULL,
  `uapp` VARCHAR(255) NULL,
  `device_id` VARCHAR(255) NULL,
  `device_type` VARCHAR(255) NULL,
  `device_os` VARCHAR(255) NULL,
  `device_osversion` VARCHAR(255) NULL,
  `is_active` SMALLINT(1) NULL,
  `deleted` SMALLINT(1) NULL,
  `deleted_by` BIGINT(20) NULL,
  `created_on` DATETIME NULL,
  `created_by` BIGINT(20) NULL,
  `modified_on` DATETIME NULL,
  `modified_by` BIGINT(20) NULL,
  PRIMARY KEY (`app_id`))
ENGINE = InnoDB;

Options are selected as below.

screen shot 2019-03-06 at 9 13 34 pm

Getting below error when building the module.

A PHP Error was encountered
Severity: Warning

Message: array_keys() expects parameter 1 to be array, boolean given

Filename: database/DB_query_builder.php

Line Number: 1520

Backtrace:

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/application/modules/uapp/migrations/001_Install_uapp_permissions.php
Line: 60
Function: insert_batch

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 596
Function: call_user_func

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 420
Function: version

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 672
Function: install

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 202
Function: build_module

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/public/index.php
Line: 314
Function: require_once

A PHP Error was encountered
Severity: Warning

Message: sort() expects parameter 1 to be array, null given

Filename: database/DB_query_builder.php

Line Number: 1521

Backtrace:

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/application/modules/uapp/migrations/001_Install_uapp_permissions.php
Line: 60
Function: insert_batch

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 596
Function: call_user_func

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 420
Function: version

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 672
Function: install

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 202
Function: build_module

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/public/index.php
Line: 314
Function: require_once

A PHP Error was encountered
Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: database/DB_query_builder.php

Line Number: 1549

Backtrace:

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/application/modules/uapp/migrations/001_Install_uapp_permissions.php
Line: 60
Function: insert_batch

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 596
Function: call_user_func

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 420
Function: version

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 672
Function: install

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 202
Function: build_module

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/public/index.php
Line: 314
Function: require_once

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/ci3/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 587

Backtrace:

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/application/modules/uapp/migrations/001_Install_uapp_permissions.php
Line: 60
Function: insert_batch

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 596
Function: call_user_func

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/migrations/libraries/migrations.php
Line: 420
Function: version

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 672
Function: install

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/bonfire/modules/builder/controllers/Developer.php
Line: 202
Function: build_module

File: /Volumes/dataStorage/UnifyIT/webApps/staging/uapps/public/index.php
Line: 314
Function: require_once

CiBonfire Error

A Database Error Occurred
You must use the "set" method to update an entry.

Filename: modules/uapp/migrations/001_Install_uapp_permissions.php

Line Number: 60

Is it possible to build only Public Contexts?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant