Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008843TestLinkRequirement Managementpublic2020-01-12 08:202020-01-12 14:06
Assigned Tofman 
PlatformOSOS Version
Product Version 
Fixed in Version1.9.20 
Summary0008843: TL 1.9.20 (dev): PHP Fatal error: Uncaught Error on "Copy Requirements"
DescriptionDear fman,

trying to copy all requirements in one req spec to another spec, I noticed the page becomes white and the copy does not work.

In the apache log there is a php error:

PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/html/testlink/lib/requirements/reqSpecCommands.class.php:477

As a quick fix I replaced the $obj->array_of_msg init to array() instead of ''. This seems to fix the issue, opening a pull req to show the diff, maybe you can have a look, thank you!

TagsNo tags attached.
Database (MySQL,Postgres,etc)mysql
PHP Version
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships

-  Notes
heju (reporter)
2020-01-12 08:37

Added pull req to show the issue location and a possible workaround: [^]

Note: There are more locations where array_of_msg is initialized to empty string, in this pull request I only changed the two locations after which the variable is accessed by [] to add another item, which causes the php exception.
fman (administrator)
2020-01-12 14:05

thanks, issues probably are related to PHP version (7.4?)

- Issue History
Date Modified Username Field Change
2020-01-12 08:20 heju New Issue
2020-01-12 08:37 heju Note Added: 0029406
2020-01-12 14:05 fman Note Added: 0029407
2020-01-12 14:06 fman QA Team - Task Workflow Status => READY FOR TESTING
2020-01-12 14:06 fman Status new => resolved
2020-01-12 14:06 fman Fixed in Version => 1.9.20
2020-01-12 14:06 fman Resolution open => fixed
2020-01-12 14:06 fman Assigned To => fman

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker