Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#492 Can not re-import exported tests correctly!

in 3.3
open
nobody
5
2013-03-06
2013-03-06
Fadi Asbih
No

Hi,
I wanted to report this Problem, when exporting some tests, and then try to re-Import them, the following error occurs:

There were errors when executing "/testmaker/index.php" on 06.03.2013 11:44:14!

PHP errors:
- "Undefined index: 3" (E_NOTICE) in file "/home/asbih/testmaker-3.3p4/core/types/TestImporter.php" on line 534

$_GET = array (
'page' => 'import_export',
'action' => 'import_test',
'TMID' => 'odte9s0h30flp6ibvrah7fcg55',
);

$_POST = array (
'do_import' => 'Importieren',
);

$_COOKIE = array (
'_pk_id_3_727a' => '6163002195018d0f.1361269647.6.1362566647.1362561050.',
'_pk_ses_3_727a' => '*',
);

$_SERVER = array (
'HTTP_HOST' => 'elfi.zew.uni-hannover.de',
'HTTP_CONNECTION' => 'keep-alive',
'CONTENT_LENGTH' => '20021886',
'HTTP_CACHE_CONTROL' => 'max-age=0',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ORIGIN' => 'http://elfi.zew.uni-hannover.de',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.155 Safari/537.22',
'CONTENT_TYPE' => 'multipart/form-data; boundary=----WebKitFormBoundaryOuZES1qG50OSBWaJ',
'HTTP_REFERER' => 'http://elfi.zew.uni-hannover.de/testmaker/index.php?page=import_export&TMID=odte9s0h30flp6ibvrah7fcg55',
'HTTP_ACCEPT_ENCODING' => 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE' => 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4',
'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_COOKIE' => '_pk_id.3.727a=6163002195018d0f.1361269647.6.1362566647.1362561050.; _pk_ses.3.727a=*',
'PATH' => '/usr/local/bin:/usr/bin:/bin',
'SERVER_SIGNATURE' => '<address>Apache/2.2.16 (Debian) Server at elfi.zew.uni-hannover.de Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.2.16 (Debian)',
'SERVER_NAME' => 'elfi.zew.uni-hannover.de',
'SERVER_ADDR' => '130.75.68.250',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '130.75.68.140',
'DOCUMENT_ROOT' => '/var/www',
'SERVER_ADMIN' => 'webmaster@localhost',
'SCRIPT_FILENAME' => '/var/www/testmaker/index.php',
'REMOTE_PORT' => '50478',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'POST',
'QUERY_STRING' => 'page=import_export&action=import_test&TMID=odte9s0h30flp6ibvrah7fcg55',
'REQUEST_URI' => '/testmaker/index.php?page=import_export&action=import_test&TMID=odte9s0h30flp6ibvrah7fcg55',
'SCRIPT_NAME' => '/testmaker/index.php',
'PHP_SELF' => '/testmaker/index.php',
'REQUEST_TIME' => 1362566652,
);

$_ENV = array (
);

$_SESSION = array (
'userId' => '1',
'initDone' => true,
'language' => 'de',
'msgs' =>
array (
),
'TEST_RUN_FILTERS' =>
array (
'testId' => 0,
'groupName' => NULL,
'accessType' => NULL,
'completed' => NULL,
'relation' => 'greater_than',
'completed_percent' => 0,
'testRunID' => 0,
'test_date' => NULL,
'date_relation' => 'greater_than',
),
'SEARCHFIELD' => '',
'USERSEARCH' => '',
'USER_ADMIN_PAGE_ENTRIES' => 5,
'USER_ADMIN_PAGE' => 67,
'USER_ADMIN_PAGE_COUNT' => 67,
);

Discussion