Page 1 of 1

SYSTEM ERROR - 'Argument 1 passed to columns_remove_invalid

Posted: 06 Jan 2017, 15:21
by chandan1001
I just upgraded from 1.2.18 to 2.0.0 and now this error appears on the "My View" page.
SYSTEM ERROR
'Argument 1 passed to columns_remove_invalid() must be of the type array, null given, called in C:\mantis\mantisbt-2.0.0\core\custom_function_api.php on line 312 and defined' in 'C:\mantis\mantisbt-2.0.0\core\columns_api.php' line 402
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
If anyone could help. I can provide more info if needed.
I did have some custom fields in previous version if that can be an issue.

Re: SYSTEM ERROR - 'Argument 1 passed to columns_remove_inva

Posted: 11 Jan 2017, 05:16
by chandan1001
Solved the issue, somehow there was null entries in custom columns. Entered default entries in manage columns area and its working.

Re: SYSTEM ERROR - 'Argument 1 passed to columns_remove_inva

Posted: 23 Jan 2017, 06:51
by abdulk
chandan1001 wrote:Solved the issue, somehow there was null entries in custom columns. Entered default entries in manage columns area and its working.

Can you please give me the steps. How you solved this.

Re: SYSTEM ERROR - 'Argument 1 passed to columns_remove_inva

Posted: 23 Jan 2017, 19:22
by fmancardi

Re: SYSTEM ERROR - 'Argument 1 passed to columns_remove_inva

Posted: 14 Feb 2017, 08:22
by fmancardi
2.1.x
config_api.php
case CONFIG_TYPE_COMPLEX:
$t_value = json_decode( $t_raw_value, true );
break;

1.2.x
config_api.php
case CONFIG_TYPE_COMPLEX:
$t_value = unserialize( $t_raw_value );
break;


2.1.x
function config_set( $p_option, $p_value, $p_user = NO_USER, $p_project = ALL_PROJECTS, $p_access = DEFAULT_ACCESS_LEVEL ) {
if( $p_access == DEFAULT_ACCESS_LEVEL ) {
$p_access = config_get_global( 'admin_site_threshold' );
}
if( is_array( $p_value ) || is_object( $p_value ) ) {
$t_type = CONFIG_TYPE_COMPLEX;
$c_value = json_encode( $p_value );
} else if( is_float( $p_value ) ) {

1.2.x
function config_set( $p_option, $p_value, $p_user = NO_USER, $p_project = ALL_PROJECTS, $p_access = DEFAULT_ACCESS_LEVEL ) {
if( $p_access == DEFAULT_ACCESS_LEVEL ) {
$p_access = config_get_global( 'admin_site_threshold' );
}
if( is_array( $p_value ) || is_object( $p_value ) ) {
$t_type = CONFIG_TYPE_COMPLEX;
$c_value = serialize( $p_value );