[SOLVED] No Charts in report

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

[SOLVED] No Charts in report

Post by aostad »

I've just set up a new server by installing Apache 2.2.17, PHP 5.3.5, and Testlink 1.9. Everything works fine except the chart. It does not draw chart anymore. I haven't had this problem in the old server after upgrading to testlink 1.9. The old server runs on Apache 2.2.11, PHP 5.2.9-2.

The only difference between the two server is that the old one is Windows XP and the new one is Win7 64bit.

Any help is much appreciated.
Amaradana
Member of TestLink Community
Posts: 398
Joined: Mon Feb 16, 2009 11:19 am
Contact:

Re: No Charts in report

Post by Amaradana »

Please do a quick search in forum before you post in the forum

Try search the forums, it may be your PHP seyttings
Thanks,
TesterWorld
Http://amartester.blogspot.com
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Re: No Charts in report

Post by aostad »

I couldn't find any answer to this issue in forum.
Amaradana
Member of TestLink Community
Posts: 398
Joined: Mon Feb 16, 2009 11:19 am
Contact:

Re: No Charts in report

Post by Amaradana »

Did you check your PHP settings? did you try changing them?

check below link for PHP settings

http://teamst.org/forum/viewtopic.php?f ... aeae#p9452
Thanks,
TesterWorld
Http://amartester.blogspot.com
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Re: No Charts in report

Post by aostad »

My php.ini setting is like this:

max_execution_time = 3000 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (16MB).

Although I think above setting is fine, but I tried the suggested configuration but no change.
They are displayed with a broken link icon in IE and Chrome.

max_execution_time = 120 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M ; Maximum amount of memory a script may consume (16MB).
aostad
Member of TestLink Community
Posts: 183
Joined: Wed Apr 01, 2009 8:32 pm

Re: No Charts in report

Post by aostad »

It looks like people ask their questions in the forum but do not get answer/solution to their questions in many cases. That would be very nice and helpful, if people with more experience on testlink related issues help others. I believe we can have a better forum, if we help each other more than this.

Please let me know if you've experienced the same issue regarding displaying charts and you know the solution.

I have searched the forum for the issue and have noticed many have had problem with displaying charts in different version of testlink, but could not find a good answer/solution (no reply in many cases) to those questions. It can be an easy configuration problem in Apache, PHP, and testlink or it can be a missing library.

I've installed following on a Win7 x64bit server:
"httpd-2.2.17-win32-x86-no_ssl.msi"
"php-5.3.5-Win32-VC9-x86.msi"
"mysql 5.5"
'Testlink 1.9"

I'm just thinking I may need to install some extra libraries for display charts or testlink cannot be used on a Win7 x64bit system.
Any help is much appreciated.

Cheers,
AO
Amaradana
Member of TestLink Community
Posts: 398
Joined: Mon Feb 16, 2009 11:19 am
Contact:

Re: No Charts in report

Post by Amaradana »

Hello,
Experience really differs as I have WIN XP SP3 and mysql, if a person obviuosly ask question about WIN XP SP3 and mssql, i can not real try the issue or reproduce it as i dont have mssql. but still i try on my localbox.There are lots of configurations it may depends on browswer/OS etc. if i would answer its working fine for me there is no point in saying that "its working fine for me" as my configuration is different

Some times i try on my local system what the user has questioned. if i can repro and find soultion i would definetly answer, but if thats a different configuration you need to wait for the person who use that kind of configuration.

I personally got this issue once, by increasing the settings in PHP.ini it worked for me. How ever i also seen some users who posted related to charts that not getting displayed, Some users solved by installing php-gd library.

I hope you understand my point what iam making about
Thanks,
TesterWorld
Http://amartester.blogspot.com
pheffner
TestLink user
Posts: 1
Joined: Thu Jan 27, 2011 7:03 pm

Re: No Charts in report

Post by pheffner »

I had the same problem with our installation on a Linux system. I noticed in the Apache server error log many lines with:
PHP Fatal error: Call to undefined function imageftbbox()

I looked up that with a Google search and found out that it occurred when PHP wasn't compiled with support for
Freetype fonts. After checking that the Freetype libs were installed on my system, I rebuilt PHP with the flag:
--with-freetype-dir, reinstalled the PHP library and now we have charts.

Since you're using TestLink on Windows, this may not be very useful, but it may give you somewhere to continue looking...
(At least, have a look in your web server's error logs for some possibly useful hints on where the charting calls are failing...)

Cheers,
Heff
chart808
TestLink user
Posts: 1
Joined: Thu Jan 27, 2011 7:16 pm

Re: No Charts in report

Post by chart808 »

From: Paul Heffner
Sent: Thursday, January 27, 2011 9:04 AM
To: Charles Hart
Subject: RE: TestLink Forum: 1.9 No Charts in reports

I found a blizzard of (Web Server) bad messages in /var/log/httpd/SERVERweb-error_log
about a call To undefined function imageftbbox().
I found the fix and rebuilt the PHP again with TrueType font support enabled. Check out your charts now…
:
The LOG errors are not in the Testlink logs, they are in the Web Server logs.
They occur because the Graphics Labels (Font) for the Charts; is not Found (Should be an Error).

Cause: the PHP is not built with TrueType Fonts (‘—with-freetype-dir’).
Recompile PHP with the following PHP Configure Command flags:

PHP Info page:
----------------------------------------------------------------------------------------------
PHP Version 5.3.3

System Linux xsjcadgi40 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64
Build Date Jan 27 2011 08:42:44
Configure Command
'./configure' '--prefix=/opt/php5' '--with-apxs2=/usr/sbin/apxs' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--with-libdir=lib64' '--enable-debug' '--disable-ipv6' '--disable-cgi' '--with-openssl' '--with-zlib' '--with-bz2' '--with-curl' '--with-ldap' '--with-gd' '--with-freetype-dir' '--with-mysql' '--with-readline'

Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
Additional .ini files parsed /etc/php.d/xdebug.ini
-------------------------------------------------------------------------------------------------
To fix Recompile PHP with the following PHP Configure Command files:
Post Reply