SYSTEM ERROR - 'Argument 1 passed to columns_remove_invalid

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
chandan1001
Posts: 2
Joined: 06 Jan 2017, 15:14

SYSTEM ERROR - 'Argument 1 passed to columns_remove_invalid

Post 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.
chandan1001
Posts: 2
Joined: 06 Jan 2017, 15:14

Re: SYSTEM ERROR - 'Argument 1 passed to columns_remove_inva

Post by chandan1001 »

Solved the issue, somehow there was null entries in custom columns. Entered default entries in manage columns area and its working.
abdulk
Posts: 3
Joined: 04 Mar 2016, 07:07

Re: SYSTEM ERROR - 'Argument 1 passed to columns_remove_inva

Post 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.
fmancardi
Posts: 6
Joined: 17 Jan 2017, 19:19

Re: SYSTEM ERROR - 'Argument 1 passed to columns_remove_inva

Post 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 );
Post Reply