Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008909TestLinkThird party componentspublic2020-04-24 09:072020-04-24 11:20
Assigned Tofman 
Platform64bitOSLinuxOS VersionUbuntu 16.04
Product Version1.9.20 
Fixed in Version 
Summary0008909: PHP syntax errors reported within vendor/laminas

I just tried to update 1.9.19 to 1.9.20_fixed branch and I'm getting a blank home page.
Steps To ReproduceReplaced content of the testlink dir with the new files
Added custom confing and DB config file.
Additional InformationHere is the log output from apache:

[Fri Apr 24 10:52:19.115029 2020] [mpm_prefork:notice] [pid 7886] AH00163: Apache/2.4.18 (Ubuntu) mod_ldap_userdir/1.1.19 OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/3.5.2 configured -- resuming normal operations
[Fri Apr 24 10:52:19.115045 2020] [core:notice] [pid 7886] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 24 10:52:22.346336 2020] [:error] [pid 7893] [client] PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /var/www/testlink/vendor/laminas/laminas-diactoros/src/functions/marsh
al_uri_from_sapi.php on line 84

When I try to remove that unexpected ? (I'm not PHP expert) there is another error regarding unexpected "=" sign at line 194 in the same file.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySql
PHP Version7.0.33
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
fman (administrator)
2020-04-24 10:12

thanks for your help
laminas is a package required by Slim framework, IMHO the right thing to do is talk with laminas author.

A VERY CRITIC THING: upgrade your PHP to latest 7.4.x stable because this is the requirement for Slim4

surely I need to add some check to explain people after upgrade that PHP version is not ok
texis (reporter)
2020-04-24 10:18

Thanks a lot. So there is no way what can I right now on my side besides that PHP upgrade right? Is my understanding correct that 1.9.20 is not formally released yet?
fman (administrator)
2020-04-24 10:39

1.9.20 has been officially released -> see tweeter, and all fixes to 1.9.20 are present in github branch testlink_1_9_20_fixed.
texis (reporter)
2020-04-24 10:48
edited on: 2020-04-24 11:20

Hm, so my problem with laminas is related to unsupported version of PHP and with PHP 7.4 it will be fixed? Otherwise it's simply non-working version as I used oficial 1.9.20_fixed branch copy.

Update with PHP 7.4.5
Same result in the browser. A new issue in the apache log:

[Fri Apr 24 13:12:49.425679 2020] [php7:notice] [pid 16037] [client] PHP Fatal error: Uncaught --> Smarty: unable to write file /var/www/testlink/gui/templates_c/wrt5ea2c9b167dd97_01600292 <-- \n thrown in /var/www/testlink/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php on line 60, referer: [^]

- Issue History
Date Modified Username Field Change
2020-04-24 09:07 texis New Issue
2020-04-24 10:12 fman Note Added: 0029630
2020-04-24 10:12 fman Assigned To => fman
2020-04-24 10:12 fman Status new => feedback
2020-04-24 10:18 texis Note Added: 0029632
2020-04-24 10:18 texis Status feedback => assigned
2020-04-24 10:39 fman Note Added: 0029633
2020-04-24 10:48 texis Note Added: 0029634
2020-04-24 11:01 texis Note Edited: 0029634 View Revisions
2020-04-24 11:01 texis Note Edited: 0029634 View Revisions
2020-04-24 11:03 texis Note Edited: 0029634 View Revisions
2020-04-24 11:20 texis Note Edited: 0029634 View Revisions

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker