MantisBT - TestLink
View Issue Details
0008021TestLinkChartspublic2017-07-13 11:182018-04-15 10:36
Kveldus 
fman 
lowminoralways
closedfixed 
LinuxRed Hat Enterprise Linux6.2
1.9.14 (2015 Q3) 
1.9.17 (2018 Q1) 
MySQL
Chrome 59.0.3071.115
5.4.34
TBD
0008021: Warnings on every opening of Charts report: "E_WARNING imagettftext(): Could not find/open font..." for pChart.class
When opening Charts report the following multiple events are logged in event viewer (referring to lines 3373 and 3362 only):
Log level WARNING
Timestamp 13/07/2017 13:56:05
Source GUI
Description E_WARNING imagettftext(): Could not find/open font - in /data/www/html/testlink/third_party/pchart/pChart/pChart.class - Line 3373

Log level WARNING
Timestamp 13/07/2017 13:56:05
Source GUI
Description E_WARNING imageftbbox(): Could not find/open font - in /data/www/html/testlink/third_party/pchart/pChart/pChart.class - Line 3362
1. Open Testlink -> tab Reports in top menu bar
2. Click Charts in left frame - Charts report is displayed
3. Go to tab Events in top menu bar
4. Check warning events
Checked that fonts path is correctly set in config.inc.php:
$tlCfg->charts_font_path = TL_ABS_PATH . "third_party/pchart/Fonts/tahoma.ttf";

Just tried to modify the path for it to become incorrect (like .../tahoma.ttft) - in this case Charts report does not show any text, getting back default previous value - text in Charts report is displayed correctly, i.e. the default font path is correctly handled.
No tags attached.
child of 0007817closed fman Availables hot-fixes for 1.9.16 & How To get full fixed package from GitHub 
Issue History
2017-07-13 11:18KveldusNew Issue
2017-07-13 19:57fmanNote Added: 0026609
2017-08-09 13:11KveldusNote Added: 0026674
2017-08-14 15:33fmanNote Added: 0026702
2017-08-14 15:33fmanQA Team - Task Workflow Status => TBD
2017-08-14 15:33fmanStatusnew => resolved
2017-08-14 15:33fmanFixed in Version => 1.9.17 (2018 Q1)
2017-08-14 15:33fmanResolutionopen => fixed
2017-08-14 15:33fmanAssigned To => fman
2017-08-14 15:33fmanRelationship addedchild of 0007817
2018-04-15 10:36fmanNote Added: 0027374
2018-04-15 10:36fmanStatusresolved => closed

Notes
(0026609)
fman   
2017-07-13 19:57   
what about permissions at OS level?
(0026674)
Kveldus   
2017-08-09 13:11   
Hi!
Sorry for a delay with answer.
Permissions at OS level are default that were set with TestLink installation.
Didn't change those.
So fonts have 0664 permissions with the same owner/group used across whole TestLink.

Or do I understand something incorrectly in regards to your question?

Thanks,
Dmitri
(0026702)
fman   
2017-08-14 15:33   
tested using latest code from github, on OSX, using MampPro (PHP 7.1.6), no issue
(0027374)
fman   
2018-04-15 10:36   
released