Test Case import issue with PHP5

The release 1.6 is going to be unsupported by Community. Because our effort moves ahead. However there are still valuable informations for you.
Locked
Xgrind
Advanced user
Posts: 25
Joined: Mon Dec 18, 2006 2:24 am

Test Case import issue with PHP5

Post by Xgrind »

Hi,

I just upgraded to PHP5 from PHP4 and now I can't import test cases using csv files. I am able to do that before the upgrade. Nothing had been modified on the testlink code.

Can anyone help on this? Greatly appreciated.
timbo
TestLink user
Posts: 9
Joined: Thu Jul 19, 2007 2:46 pm

Post by timbo »

Hi there,

Did you ever get this fixed as i think i have the same issue. I migrated TestLink from a RH4 to RH5 server and PHP is the the only difference that i can see is causing me issues!


Thanks


Tim
Xgrind
Advanced user
Posts: 25
Joined: Mon Dec 18, 2006 2:24 am

Post by Xgrind »

Hi Tim,

No, I did not get it solved. I rolled back to PHP4 at the moment
timbo
TestLink user
Posts: 9
Joined: Thu Jul 19, 2007 2:46 pm

Post by timbo »

I have now got this fixed. I found this by looking through the bugs on http://testlink.org/mantis.

You need to set the following in your php.ini file and restart apache.

register_long_arrays = On
Xgrind
Advanced user
Posts: 25
Joined: Mon Dec 18, 2006 2:24 am

Post by Xgrind »

Thanks Timbo!

I checked in Mantis and found this:

add this line into tcImport.php and reqimport.php

Code: Select all

$HTTP_POST_FILES = isset($_FILES) ? $_FILES : $HTTP_POST_FILES;
Afterwhich I can import the test cases :)
zeus
TestLink user
Posts: 9
Joined: Wed Jan 17, 2007 12:06 am

import test cases

Post by zeus »

Both of the above solutions worked for importing requirements, but importing test cases still doesn't work.

Is there anything else I can try?

I know the real answer is to upgrade to 1.7, but I don't have time for that at the moment.

Any help is greatly appreciated.

Thanks!
Locked