I am from ESSA IT Support team supporting Mantis application and was working on an upgradation.
We got a request to upgrade PHP - 7.4.6-Win32-vc15-x86 in Mantis server from PHP 5.6.40 .
We were able to upgrade to PHP - 7.4.6-Win32-vc15-x86 in Mantis server but when we tried to access the site (Mantis site -http://rtsmantisqa.exeloncorp.com:8000/login_page.php), we got the below error:
Fatal error: 'break' not in the 'loop' or 'switch' context in ……..
When we tried to correct this, we got some other errors as shown below:
Deprecated: Methods with the same name as their class will not
be constructors in a future version of PHP
We kept on correcting but there were different errors each time.
We had taken a backup of all the files before editing them.
Kindly help me in completing the upgrade successfully or let me know in case there is some process to be followed to get this done.
Also, let me know if I can connect with someone to check what version of PHP would be compatible on the server.
Need help in upgrading to PHP - 7.4.6-Win32-vc15-x86 in Mantis server
Moderators: Developer, Contributor
-
- Posts: 2
- Joined: 01 Jun 2020, 14:10
Re: Need help in upgrading to PHP - 7.4.6-Win32-vc15-x86 in Mantis server
Before upgrading something like php and/or mysql, you really need to check the dependencies.
Which version of Mantis are you running?
Possibly you need to upgrade mantis also.
Which version of Mantis are you running?
Possibly you need to upgrade mantis also.
-
- Posts: 2
- Joined: 01 Jun 2020, 14:10
Re: Need help in upgrading to PHP - 7.4.6-Win32-vc15-x86 in Mantis server
Current Mantis version: mantis-1.0.0rc2
Re: Need help in upgrading to PHP - 7.4.6-Win32-vc15-x86 in Mantis server
1.0.0rc2 has been released 2005-09-11 and will certainly not run using latest PHP.
Mantis 1.3.0 was the first version that supported PHPP 7.0 in general https://mantisbt.org/bugs/view.php?id=20499
To use PHP 7.4 you have to use latest Mantis, e.g. the last known PHP 7.4 related issue will be fixed in 2.25.0 https://mantisbt.org/bugs/view.php?id=26964
Mantis 1.3.0 was the first version that supported PHPP 7.0 in general https://mantisbt.org/bugs/view.php?id=20499
To use PHP 7.4 you have to use latest Mantis, e.g. the last known PHP 7.4 related issue will be fixed in 2.25.0 https://mantisbt.org/bugs/view.php?id=26964