Update 1.2.15 to 2.24.2 internal aplication error
Moderators: Developer, Contributor
Update 1.2.15 to 2.24.2 internal aplication error
I am migrating and upgrading the mantis server from version 1.2.15 to version 2.24.2.
I import the old database on the new server and update the version of mantis to 2.24.2, it does not give any error.
When I log in with a user the menu my viewand all incidents gives this error
"INTERNAL APPLICATION ERROR
Argument 1 passed to columns_remove_invalid() must be of the type array, null given, called in C:\inetpub\mantis\core\custom_function_api.php on line 315"
Detailed error information
Full path: C:\inetpub\mantis\core\error_api.php
Line number: 92
Stack trace
# Filename Line Class Type Function Args
0 C:\inetpub\mantis\core\custom_function_api.php 315 - - columns_remove_invalid <NULL>NULL, <array> { [0] => 'id', [1] => 'project_id', [2] => 'reporter_id', [3] => 'handler_id', [4] => 'priority', [5] => 'severity', [6] => 'reproducibility', [7] => 'status', [8] => 'resolution', [9] => 'category_id', [10] => 'date_submitted', [11] => 'last_updated', [12] => 'os', [13] => 'os_build', [14] => 'platform', [15] => 'version', [16] => 'fixed_in_version', [17] => 'target_version', [18] => 'view_state', [19] => 'summary', [20] => 'due_date', [21] => 'description', [22] => 'steps_to_reproduce', [23] => 'additional_information', [24] => 'attachment_count', [25] => 'bugnotes_count', [26] => 'selection', [27] => 'edit', [28] => 'notes', [29] => 'tags', [30] => 'overdue', [31] => 'custom_Duracion', [32] => 'custom_Estimación Inicial', [33] => 'custom_Fecha Estimada Resolución', [34] => 'custom_TipoEntrada', [35] => 'custom_ResueltoEnLlamada', [36] => 'custom_HoraRegistro', [37] => 'custom_FechaHoraResolucionReal', [38] => 'custom_Recurso', [39] => 'custom_Estimación Real', [40] => 'custom_Fecha Subida Producción' }
Any solution?
I import the old database on the new server and update the version of mantis to 2.24.2, it does not give any error.
When I log in with a user the menu my viewand all incidents gives this error
"INTERNAL APPLICATION ERROR
Argument 1 passed to columns_remove_invalid() must be of the type array, null given, called in C:\inetpub\mantis\core\custom_function_api.php on line 315"
Detailed error information
Full path: C:\inetpub\mantis\core\error_api.php
Line number: 92
Stack trace
# Filename Line Class Type Function Args
0 C:\inetpub\mantis\core\custom_function_api.php 315 - - columns_remove_invalid <NULL>NULL, <array> { [0] => 'id', [1] => 'project_id', [2] => 'reporter_id', [3] => 'handler_id', [4] => 'priority', [5] => 'severity', [6] => 'reproducibility', [7] => 'status', [8] => 'resolution', [9] => 'category_id', [10] => 'date_submitted', [11] => 'last_updated', [12] => 'os', [13] => 'os_build', [14] => 'platform', [15] => 'version', [16] => 'fixed_in_version', [17] => 'target_version', [18] => 'view_state', [19] => 'summary', [20] => 'due_date', [21] => 'description', [22] => 'steps_to_reproduce', [23] => 'additional_information', [24] => 'attachment_count', [25] => 'bugnotes_count', [26] => 'selection', [27] => 'edit', [28] => 'notes', [29] => 'tags', [30] => 'overdue', [31] => 'custom_Duracion', [32] => 'custom_Estimación Inicial', [33] => 'custom_Fecha Estimada Resolución', [34] => 'custom_TipoEntrada', [35] => 'custom_ResueltoEnLlamada', [36] => 'custom_HoraRegistro', [37] => 'custom_FechaHoraResolucionReal', [38] => 'custom_Recurso', [39] => 'custom_Estimación Real', [40] => 'custom_Fecha Subida Producción' }
Any solution?
Re: Update 1.2.15 to 2.24.2 internal aplication error
what is the PHP version on the new box?
How exactly did you do the migration, is the below sequence what you did:
1. imported the old database using phpmyadmin of command-line sql
2. installed 1.2.15 on the new server ( was it working fully as expected?)
3. upgraded mantis to 2.24.2
How exactly did you do the migration, is the below sequence what you did:
1. imported the old database using phpmyadmin of command-line sql
2. installed 1.2.15 on the new server ( was it working fully as expected?)
3. upgraded mantis to 2.24.2
Re: Update 1.2.15 to 2.24.2 internal aplication error
PHP version in new server: 7.2.33
The steps of migration
-Export bbdd mysqldump
-Copy new mantis version
-Copy plugins from old server except: MantisCoreFormatting, MantisGraph and XmlImportExport and paste in new server
-Copy config_inc.php and paste in subdirectory config in new server
-Execute the upgrade script
Version 1.2.15 in new server works correctly
The steps of migration
-Export bbdd mysqldump
-Copy new mantis version
-Copy plugins from old server except: MantisCoreFormatting, MantisGraph and XmlImportExport and paste in new server
-Copy config_inc.php and paste in subdirectory config in new server
-Execute the upgrade script
Version 1.2.15 in new server works correctly
Re: Update 1.2.15 to 2.24.2 internal aplication error
PHP version in new server ir 7.2.24
The steps performed in the update are:
- export database with mysqldump and import command-line sql
- copy the new version of mantis
- copy the plugins from the old server, except: MantisCoreFormatting, MantisGraph, XmlImportExport
- copy the configuration file config_inc.php
- run update script
Version 1.12.5 works correctly in new server
The steps performed in the update are:
- export database with mysqldump and import command-line sql
- copy the new version of mantis
- copy the plugins from the old server, except: MantisCoreFormatting, MantisGraph, XmlImportExport
- copy the configuration file config_inc.php
- run update script
Version 1.12.5 works correctly in new server
Re: Update 1.2.15 to 2.24.2 internal aplication error
Might help some way viewtopic.php?p=63635#p63635
Re: Update 1.2.15 to 2.24.2 internal aplication error
I have deleted records from the mantis_filters_table table but it follows the same error
The page http://<ReplaceByYourMantisUrl>/view_all_set.php?type=3 gives an error too
The page http://<ReplaceByYourMantisUrl>/view_all_set.php?type=3 gives an error too
Re: Update 1.2.15 to 2.24.2 internal aplication error
Suggest you install a fresh copy ( with a fresh database)of 2.24.2 on the new server and check if that works ok.
If so, it is clear the issue is in the migration.
If so, it is clear the issue is in the migration.
Re: Update 1.2.15 to 2.24.2 internal aplication error
I have installed version 2.42.2 and it works. The problem is in the migration but I need to pass the data from version 1.2.15
The database has the same character set. The update database script does not fail
Any ideas?
The database has the same character set. The update database script does not fail
Any ideas?
Re: Update 1.2.15 to 2.24.2 internal aplication error
I assume you copied the config_inc.php to the config folder.
Did you also run admin/check/index.php after the migration?
Did you also run admin/check/index.php after the migration?
Re: Update 1.2.15 to 2.24.2 internal aplication error
Yes, i copied it to the config folder.
admin/check/index.php don´t have any error, only warnings
I have configurated show errors in config_inc.php file
admin/check/index.php don´t have any error, only warnings
I have configurated show errors in config_inc.php file
Re: Update 1.2.15 to 2.24.2 internal aplication error
Most of these warnings are not important, I have similar ones. A few need to be adjusted but current setup should not lead to this error.
What you could try is the following:
Install the old 1.2 version on your new server, including the existing database
Check if it works. If not, make it work
if so, copy 2.24.2 simply over the existing installation
Now run the upgrade script
What you could try is the following:
Install the old 1.2 version on your new server, including the existing database
Check if it works. If not, make it work
if so, copy 2.24.2 simply over the existing installation
Now run the upgrade script
Re: Update 1.2.15 to 2.24.2 internal aplication error
Following these steps the new version is OK
A lot of thanks
A lot of thanks