Problem with Mantis PHP version with Squash TM

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
lfleming
Posts: 4
Joined: 17 Sep 2015, 15:15

Problem with Mantis PHP version with Squash TM

Post by lfleming »

I have installed Mantis 1.2.19-1 to use in conjunction with a test management application called Squash TM, which is also web-based. Both Squash and Mantis work OK separately. To issue a bug report from Squash TM to Mantis during a Squash test execution step, I first have to log in to Mantis. But after entering my Mantis password I get the error message: "Error Type: SYSTEM NOTICE, Error Description: Array to string conversion" and the login attempt fails. I am not the first person to encounter this problem. A thread in the Squash TM forum discusses it (in French) here :

http://www.squashtest.org/forum/6-gesti ... is?lang=fr

According to the someone who responded to that thread, the problem is that Squash TM is not compatible with PHP 5.4, which comes with the Mantis installer, and the solution is to use PHP 5.3.1 instead. I tried doing the PHP replacement by putting a "PHP 5.3.1" folder in the Mantis folder and renaming it to just "PHP". However, I found that Mantis does not work with this earlier version of PHP, at least not on Windows 7.

So, my question is, is there some way to make this older PHP version work with the more recent version of Mantis?
lfleming
Posts: 4
Joined: 17 Sep 2015, 15:15

Re: Problem with Mantis PHP version with Squash TM

Post by lfleming »

Correction to the above: I've noticed several other posts in this forum regarding the same error being encountered when attempting to connect to Mantis from other applications besides Squash TM, so the problem seems to be associated with Mantis rather than Squash.

Also, I neglected to mention that I'm running Mantis on a Windows 7 machine.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with Mantis PHP version with Squash TM

Post by atrol »

I am quite sure that the problem is caused by PHP 5.3.1.
There are known bugs running MantisBT using this version on Windows.
You should use at least PHP 5.3.3.
Please use Search before posting and read the Manual
lfleming
Posts: 4
Joined: 17 Sep 2015, 15:15

Re: Problem with Mantis PHP version with Squash TM

Post by lfleming »

Thanks for your advice. However, I haven't been able to get PHP 5.3.3 to work with Mantis, either. I downloaded and unzipped a PHP-5.3.3 folder, put it in my Mantis folder, and renamed the php-5.3.3 folder to just "php" so that the Mantis service would use it rather than the PHP 5.4 that came with the Mantis installer. But then I couldn't restart the mantisapache service. When I tried to restart it, I got the following error:
The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 561 of C:/Bitnami/mantis-1.2.19-1/apache2/conf/httpd.conf: Cannot load C:/Bitnami/MANTIS~1.19-/php/php5apache2_4.dll into server: The specified module could not be found. .
There is a php5apache2_4.dll in the php (version 5.4) folder that comes with the Mantis installer, so I tried copying that dll into the php folder (renamed from php-5.3.3). The service started but didn't run properly when I tried to open a Mantis web page (at http://localhost:8000/mantis/). So the approach I took to downgrading PHP by simply renaming an older PHP version folder to "php" is not working. Is there some step I could take that would make this approach work such as changing the dll referenced in httpd.conf, or do I need to do something completely different?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with Mantis PHP version with Squash TM

Post by atrol »

lfleming wrote:the PHP 5.4 that came with the Mantis installer.
Mantis does not come with any PHP.
It seems you are talking about a 3rd party development. I recommend to contact a forum where you downloaded the installer.
Please use Search before posting and read the Manual
lfleming
Posts: 4
Joined: 17 Sep 2015, 15:15

Re: Problem with Mantis PHP version with Squash TM

Post by lfleming »

I downloaded the installer from

https://bitnami.com/stack/mantis/installer

So this apparently is now the preferred installation method. PHP version 5.4 is included with it.
Post Reply