Upgrade to 2.6 not working well
Posted: 23 Oct 2017, 13:51
Hi,
I try to upgrade to ver 2.6 but have problem in the pages: my_view.php (blank) & view_all_bug_page.php (HTTP 500).
My current mantisbt env includes of:
CentOS release 6.2
mantisbt 1.2.19
PHP 5.3.3
Mysql 5.1.61
httpd-2.2.15-15
client side - IE 11 / Chrome Version 61.0.3163.100
I have created a new env on a new server which includes of:
CentOS Linux release 7.4.1708
mantisbt 2.6.0
PHP 7.1.10
Mysql 5.7.19
httpd-2.4.6-67
client side - IE 11 / Chrome Version 61.0.3163.100
The procedure I used to upgrade my mantisbt is:
1. I have created my new server with all necessary packages
2. Downloaded and installed mantisbt according to instruction - in this phase I had a perfectly functional mantis app (I created bugs, projects and added due date and reminder in the config file).
3. I used mysqldump on old mantisbt DB using the command: mysqldump -uxxx -pxxx mantisbt >mantisbt.dump
4. In my new server I restored the data into the DB using the command: mysql -uroot -pxxx mantisbt < mantisbt.dump
5. I upgraded the DB using admin page. I had ERRORS which I manged to go through after reading an article here telling me to change some lines in admin/schema.php file:
instead of:
$g_upgrade[200] = array('CreateTableSQL', array( db_get_table( 'api_token' ), "
I change it to:
$g_upgrade[200] = array('ChangeTableSQL', array( db_get_table( 'api_token' ), "
I commented the lines:
#$g_upgrade[209] = array( 'AlterColumnSQL', array( db_get_table( 'api_token' ), "
# user_id I UNSIGNED NOTNULL DEFAULT '0',
# date_created I UNSIGNED NOTNULL DEFAULT '1',
# date_used I UNSIGNED NOTNULL DEFAULT '1'"
# ) );
6. I manged to login and see all projects and bugs but as I said I cant see the view_all_bug_page, the log I see in my Apache is:
[php7:error] [pid 3915] [client 192.168.2.11:54453] PHP Fatal error: Uncaught TypeError: Argument 1 passed to columns_remove_invalid() must be of the type array, null given, called in /opt/mantisbt/mantisbt/core/custom_function_api.php on line 309 and defined in /opt/mantisbt/mantisbt/core/columns_api.php:491\nStack trace:\n#0 /opt/mantisbt/mantisbt/core/custom_function_api.php(309): columns_remove_invalid(NULL, Array)\n#1 /opt/mantisbt/mantisbt/core/helper_api.php(469): custom_function_default_get_columns_to_view(1, NULL)\n#2 /opt/mantisbt/mantisbt/core/helper_api.php(504): helper_call_custom_function('get_columns_to_...', Array)\n#3 /opt/mantisbt/mantisbt/core/filter_api.php(3419): helper_get_columns_to_view(1)\n#4 /opt/mantisbt/mantisbt/core/filter_api.php(1059): filter_get_visible_sort_properties_array(Array)\n#5 /opt/mantisbt/mantisbt/core/filter_api.php(2341): filter_get_query_sort_data(Array, true, Array)\n#6 /opt/mantisbt/mantisbt/core/filter_api.php(1216): filter_get_bug_rows_query_clauses(Array, NULL, NULL, true)\n#7 /opt/mantisbt/mantisbt/view_all_bug_page.php(71): filter_ge in /opt/mantisbt/mantisbt/core/columns_api.php on line 491, referer: http://mantisbt-new.mindu.co.il/mantisb ... w_page.php
Any help will be appreciated
Efrat.
I try to upgrade to ver 2.6 but have problem in the pages: my_view.php (blank) & view_all_bug_page.php (HTTP 500).
My current mantisbt env includes of:
CentOS release 6.2
mantisbt 1.2.19
PHP 5.3.3
Mysql 5.1.61
httpd-2.2.15-15
client side - IE 11 / Chrome Version 61.0.3163.100
I have created a new env on a new server which includes of:
CentOS Linux release 7.4.1708
mantisbt 2.6.0
PHP 7.1.10
Mysql 5.7.19
httpd-2.4.6-67
client side - IE 11 / Chrome Version 61.0.3163.100
The procedure I used to upgrade my mantisbt is:
1. I have created my new server with all necessary packages
2. Downloaded and installed mantisbt according to instruction - in this phase I had a perfectly functional mantis app (I created bugs, projects and added due date and reminder in the config file).
3. I used mysqldump on old mantisbt DB using the command: mysqldump -uxxx -pxxx mantisbt >mantisbt.dump
4. In my new server I restored the data into the DB using the command: mysql -uroot -pxxx mantisbt < mantisbt.dump
5. I upgraded the DB using admin page. I had ERRORS which I manged to go through after reading an article here telling me to change some lines in admin/schema.php file:
instead of:
$g_upgrade[200] = array('CreateTableSQL', array( db_get_table( 'api_token' ), "
I change it to:
$g_upgrade[200] = array('ChangeTableSQL', array( db_get_table( 'api_token' ), "
I commented the lines:
#$g_upgrade[209] = array( 'AlterColumnSQL', array( db_get_table( 'api_token' ), "
# user_id I UNSIGNED NOTNULL DEFAULT '0',
# date_created I UNSIGNED NOTNULL DEFAULT '1',
# date_used I UNSIGNED NOTNULL DEFAULT '1'"
# ) );
6. I manged to login and see all projects and bugs but as I said I cant see the view_all_bug_page, the log I see in my Apache is:
[php7:error] [pid 3915] [client 192.168.2.11:54453] PHP Fatal error: Uncaught TypeError: Argument 1 passed to columns_remove_invalid() must be of the type array, null given, called in /opt/mantisbt/mantisbt/core/custom_function_api.php on line 309 and defined in /opt/mantisbt/mantisbt/core/columns_api.php:491\nStack trace:\n#0 /opt/mantisbt/mantisbt/core/custom_function_api.php(309): columns_remove_invalid(NULL, Array)\n#1 /opt/mantisbt/mantisbt/core/helper_api.php(469): custom_function_default_get_columns_to_view(1, NULL)\n#2 /opt/mantisbt/mantisbt/core/helper_api.php(504): helper_call_custom_function('get_columns_to_...', Array)\n#3 /opt/mantisbt/mantisbt/core/filter_api.php(3419): helper_get_columns_to_view(1)\n#4 /opt/mantisbt/mantisbt/core/filter_api.php(1059): filter_get_visible_sort_properties_array(Array)\n#5 /opt/mantisbt/mantisbt/core/filter_api.php(2341): filter_get_query_sort_data(Array, true, Array)\n#6 /opt/mantisbt/mantisbt/core/filter_api.php(1216): filter_get_bug_rows_query_clauses(Array, NULL, NULL, true)\n#7 /opt/mantisbt/mantisbt/view_all_bug_page.php(71): filter_ge in /opt/mantisbt/mantisbt/core/columns_api.php on line 491, referer: http://mantisbt-new.mindu.co.il/mantisb ... w_page.php
Any help will be appreciated
Efrat.