View Issue Details

IDProjectCategoryView StatusLast Update
0021381mantisbtmigrationpublic2016-08-02 15:30
Reporterei-dotter Assigned Toatrol  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Product Version1.3.0 
Summary0021381: mantis/manage_config_workflow_page.php on line 417
Description

After updating from 1.2.19 to 1.3.0 I get the following ERROR:

Argument 1 passed to workflow_parse() must be of the type array, null given, called in /mantis/manage_config_workflow_page.php on line 417

But Version 1.2.19+ works fine.

TagsNo tags attached.

Activities

ei-dotter

ei-dotter

2016-07-19 10:37

reporter   ~0053649

SYSTEM ERROR
'Argument 1 passed to workflow_parse() must be of the type array, null given, called in /html/mantis/manage_config_workflow_page.php on line 417 and defined' in '/html/mantis/core/workflow_api.php' line 53

ei-dotter

ei-dotter

2016-07-19 10:38

reporter   ~0053650

Do you need my "config_inc.php" and my "custom_constants_inc.php" and my "custom_strings_inc.php"?

ei-dotter

ei-dotter

2016-07-19 10:43

reporter   ~0053651

I have no error here:

mantis/admin/check/index.php?show_all=0&show_errors=1

ei-dotter

ei-dotter

2016-07-19 10:45

reporter   ~0053652

config_inc.php

// STATUS aendern bzw. definieren
# Revised enum string with new 'testing' status
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,55:hold,60:qs,70:testing,80:resolved,90:closed';
# Status color additions
$g_status_colors['hold']    = '#ff00ff';
$g_status_colors['qs']      = '#ACE7AE';
$g_status_colors['testing'] = '#ACE7AE';

$g_status_enum_workflow[NEW_]         ='30:acknowledged,20:feedback,40:confirmed,50:assigned,55:hold';
$g_status_enum_workflow[FEEDBACK]     ='30:acknowledged,40:confirmed,50:assigned,55:hold';
$g_status_enum_workflow[ACKNOWLEDGED] ='40:confirmed,20:feedback,50:assigned,55:hold';
$g_status_enum_workflow[CONFIRMED]    ='50:assigned,55:hold,20:feedback,30:acknowledged';
$g_status_enum_workflow[ASSIGNED]     ='60:qs,55:hold,20:feedback,30:acknowledged,40:confirmed,80:resolved';
$g_status_enum_workflow[HOLD]         ='50:assigned,20:feedback';
$g_status_enum_workflow[QS]           ='70:testing,20:feedback';
$g_status_enum_workflow[TESTING]      ='80:resolved,20:feedback';
$g_status_enum_workflow[RESOLVED]     ='90:closed,20:feedback,50:assigned';
$g_status_enum_workflow[CLOSED]       ='20:feedback,50:assigned';
atrol

atrol

2016-07-19 11:53

developer   ~0053656

Did you forget to copy "custom_constants_inc.php" and my "custom_strings_inc.php" to new 1.3 folder config?

ei-dotter

ei-dotter

2016-07-19 15:12

reporter   ~0053658

No, i have copied the files:

custom_constants_inc.php

<?php

Custom status code

define( 'HOLD', 55 );
define( 'QS', 60 );
define( 'TESTING', 70 );

custom_strings_inc.php

<?php

Translation for Custom Status Code: testing

switch( $g_active_language ) {

    case 'german':
        $s_status_enum_string = '10:neu,20:Rückmeldung,30:anerkannt,40:bestätigt,50:zugewiesen,55:wartend,60:Qualitätssicherung,70:testen,80:erledigt,90:geschlossen';

        $s_hold_bug_title = 'Ticket in die Warteschleife schieben';
        $s_hold_bug_button = 'Bereit für die Warteschleife';
        $s_email_notification_title_for_status_bug_hold = 'Das Ticket ist bereits für die Warteschleife.';

        $s_qs_bug_title = 'Ticket der Qualitätssicherung übergeben';
        $s_qs_bug_button = 'Bereit für die Qualitätssicherung';
        $s_email_notification_title_for_status_bug_qs = 'Das Ticket ist bereits für die Qualitätssicherung.';

        $s_testing_bug_title = 'Ticket zum testen (für den Kunden) markieren';
        $s_testing_bug_button = 'Bereit für den Test des Kunden';
        $s_email_notification_title_for_status_bug_testing = 'Das Ticket ist fertig zum TESTEN.';

        break;

    default: # english
        $s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,55:hold,60:qs,70:testing,80:resolved,90:closed';

        $s_hold_bug_title = 'Mark issue Ready for HOLD';
        $s_hold_bug_button = 'Ready for HOLD';
        $s_email_notification_title_for_status_bug_hold = 'The following issue is ready for HOLD.';

        $s_qs_bug_title = 'Mark issue Ready for QS';
        $s_qs_bug_button = 'Ready for QS';
        $s_email_notification_title_for_status_bug_qs = 'The following issue is ready for QS.';

        $s_testing_bug_title = 'Mark issue Ready for Testing';
        $s_testing_bug_button = 'Ready for Testing';
        $s_email_notification_title_for_status_bug_testing = 'The following issue is ready for TESTING.';

        break;
}
atroladmin

atroladmin

2016-07-19 16:41

administrator   ~0053660

Add the following lines at the end of file config_inc.php

var_dump ($g_status_enum_workflow);
die ("stop");

What do you get when opening a page?

ei-dotter

ei-dotter

2016-07-20 04:27

reporter   ~0053664

array(10) { [10]=> string(60) "30:acknowledged,20:feedback,40:confirmed,50:assigned,55:hold" [20]=> string(48) "30:acknowledged,40:confirmed,50:assigned,55:hold" [30]=> string(44) "40:confirmed,20:feedback,50:assigned,55:hold" [40]=> string(47) "50:assigned,55:hold,20:feedback,30:acknowledged" [50]=> string(66) "60:qs,55:hold,20:feedback,30:acknowledged,40:confirmed,80:resolved" [55]=> string(23) "50:assigned,20:feedback" [60]=> string(22) "70:testing,20:feedback" [70]=> string(23) "80:resolved,20:feedback" [80]=> string(33) "90:closed,20:feedback,50:assigned" [90]=> string(23) "20:feedback,50:assigned" } stop

ei-dotter

ei-dotter

2016-07-20 04:28

reporter   ~0053665

array(10) {
[10]=>
string(60) "30:acknowledged,20:feedback,40:confirmed,50:assigned,55:hold"
[20]=>
string(48) "30:acknowledged,40:confirmed,50:assigned,55:hold"
[30]=>
string(44) "40:confirmed,20:feedback,50:assigned,55:hold"
[40]=>
string(47) "50:assigned,55:hold,20:feedback,30:acknowledged"
[50]=>
string(66) "60:qs,55:hold,20:feedback,30:acknowledged,40:confirmed,80:resolved"
[55]=>
string(23) "50:assigned,20:feedback"
[60]=>
string(22) "70:testing,20:feedback"
[70]=>
string(23) "80:resolved,20:feedback"
[80]=>
string(33) "90:closed,20:feedback,50:assigned"
[90]=>
string(23) "20:feedback,50:assigned"
}
stop

atrol

atrol

2016-07-20 05:00

developer   ~0053666

This is the expected result that I had on my test system using the contents that you provided for config_inc.php, custom_constants_inc.php and custom_strings_inc.php

I got no problem when opening manage_config_workflow_page.php with it.

Possible root causes

1) You override status_enum_workflow settings in database
Check page Manage > Manage Configuration > Configuration Report for it

2) You changed source of Mantis and/or installed plugins that introduce the problem

3) The problem is caused by the PHP version you use (which one is it?)

4) The problem is caused by the database version you use (which one is it?)

...

ei-dotter

ei-dotter

2016-07-21 03:27

reporter   ~0053672

OK, thanks for your help.

There was a problem with the Database or the first update of the database.

Although here seems eveything OK (green): /admin/check/index.php the database had a problem.

I have taken the 1.2.19-database and updated it again (/admin/install.php) now eveything works fine :)