Hello everyone,
my company was using Mantis 1.2 and they wanted to upgrade. As I didn't know how to upgrade, I installed a fresh 2.2 version (on a windows server) and I transferred manually all table content in the new version using phpmyadmin.
Seemed to work fine (except for the config_table which I had problem so I didn't transfer those data).
After transfer, everything looks fine, but when we try to apply a filter in the view issue tab, I get the following error:
'Argument 1 passed to filter_ensure_valid_filter() must be of the type array, null given, called in C:\inetpub\Mantisv2\core\filter_api.php on line 942 and defined' in 'C:\inetpub\Mantisv2\core\filter_api.php' line 549
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.
I really don't know what to do and I hope I can find some help in here. We switched back to version 1.2 but we really need an upgrade as well.
Thanks a lot for your help.
Argument error after updgrade
Moderators: Developer, Contributor
Re: Argument error after updgrade
You should follow the upgrade instructions in our Admin Guide
http://www.mantisbt.org/docs/master/en- ... ll.upgrade
http://www.mantisbt.org/docs/master/en- ... ll.upgrade
Re: Argument error after updgrade
Thank you very much, it worked perfectly.
For some reason I never found this guide during my research.
Thanks for the help !
For some reason I never found this guide during my research.
Thanks for the help !
Re: Argument error after updgrade
Hello everyone,
We found two new issues after the upgrade (from 1.2 to 2.2). The first one is that we can't upload files anymore (application error #504).
I check configuration files of PHP and MySQL but no problem with those as we could upload on old version. I also check the configuration file of Mantis which you can see below:
The second issue is more disturbing, it's an application error #401 :
![Image](http://hpics.li/868abca)
Thanks for the help.
We found two new issues after the upgrade (from 1.2 to 2.2). The first one is that we can't upload files anymore (application error #504).
I check configuration files of PHP and MySQL but no problem with those as we could upload on old version. I also check the configuration file of Mantis which you can see below:
Code: Select all
# --- Attachments / File Uploads ---
$g_allow_file_upload = ON;
$g_file_upload_method = DATABASE; # or DISK
# $g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
$g_max_file_size = 10000000; # in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
# $g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
# $g_disallowed_files = ''; # extensions comma separated
Thanks for the help.
Re: Argument error after updgrade
Hello,
please find errors and warning below:
![Image](http://img4.hostingpics.net/pics/128407error.jpg)
please find errors and warning below:
![Image](http://img4.hostingpics.net/pics/128407error.jpg)
Last edited by Deweydou on 14 Mar 2017, 04:12, edited 1 time in total.
Re: Argument error after updgrade
Hello,
I figured out the problem on uploading file. It was actually a PHP problem, I checked the log file and see this:
I added rights to the temporary folder and it worked fine. It is really weird because before the upgrade it worked fine with the same temporary folder.
Now it remains only this problem when we edit a bug and update multiple text boxes in the same time :
![Image](http://img4.hostingpics.net/pics/590585Capture.jpg)
I figured out the problem on uploading file. It was actually a PHP problem, I checked the log file and see this:
Code: Select all
File upload error - unable to create a temporary file in Unknown on line 0
Now it remains only this problem when we edit a bug and update multiple text boxes in the same time :
![Image](http://img4.hostingpics.net/pics/590585Capture.jpg)
Re: Argument error after updgrade
Hello,Deweydou wrote:Hello,
I figured out the problem on uploading file. It was actually a PHP problem, I checked the log file and see this:
I added rights to the temporary folder and it worked fine. It is really weird because before the upgrade it worked fine with the same temporary folder.Code: Select all
File upload error - unable to create a temporary file in Unknown on line 0
Now it remains only this problem when we edit a bug and update multiple text boxes in the same time :
anyone encountered this error before ? I really don;t know how to solve it.
Thanks.