google-code-backups / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Statistics graphs does not work #167

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
XML Parsing Error: no element found
Location:
http://bte.telme.kiev.ua:8082/statistics/graph/?project=Telme&name=4578c9561d671
04918dbf0e2a358a4b3
Line Number 1, Column 1:
^

Original issue reported on code.google.com by kingo...@gmail.com on 19 May 2008 at 9:02

GoogleCodeExporter commented 8 years ago
pls make the /usr/share/php/data/Xinc/tmp directory writeable for your apache

Original comment by arnos...@gmail.com on 19 May 2008 at 9:06

GoogleCodeExporter commented 8 years ago
Same problem

oleg@shoom-alpha:/etc/xinc/conf.d$ ls -la /usr/share/php/data/Xinc/tmp
total 8
drwxrwxrwx 2 root root 4096 2008-05-19 12:17 .

Original comment by kingo...@gmail.com on 19 May 2008 at 9:18

GoogleCodeExporter commented 8 years ago
Did you install the ezcomponents pear packages?

Original comment by arnos...@gmail.com on 19 May 2008 at 9:24

GoogleCodeExporter commented 8 years ago
No. What is the command to do this?

Original comment by kingo...@gmail.com on 19 May 2008 at 9:28

GoogleCodeExporter commented 8 years ago
pear channel-discover components.ez.no
pear install ezc/Base
pear install ezc/Graph

Original comment by arnos...@gmail.com on 19 May 2008 at 9:35

GoogleCodeExporter commented 8 years ago
Same problem

oleg@shoom-alpha:/etc/xinc/conf.d$ sudo pear install ezc/Base
[sudo] password for oleg:
Ignoring installed package ezc/Base
Nothing to install
oleg@shoom-alpha:/etc/xinc/conf.d$ sudo pear install ezc/Graph
Ignoring installed package ezc/Graph
Nothing to install

Original comment by kingo...@gmail.com on 19 May 2008 at 9:59

GoogleCodeExporter commented 8 years ago
I had the same problem and solved it making the tmp file writable to apache. My 
tmp
dir wasn't the one they said above, I've found out with 

xinc-settings --list-all

Thanks.

Original comment by rmontanana on 27 May 2008 at 9:41

GoogleCodeExporter commented 8 years ago
I have no tmp file in xinc-settings list-all

Original comment by kingo...@gmail.com on 27 May 2008 at 9:48

GoogleCodeExporter commented 8 years ago
I am having this same problem, but the issue is not the tmp directory. Files 
are being written to my temp dir:
-rw-r--r-- 1 www       www       76 May 27 19:16 
graph_data_project_4578c9561d67104918dbf0e2a358a4b3.ser
-rw-r--r-- 1 www       www      64K May 27 19:16 
graph_data_project_4c78e5e66134a41b85181043c3a81870.ser
-rw-r--r-- 1 www       www      56K May 27 19:16 
graph_data_project_ba55102044962caf84b8c65e508eb85f.ser
-rw-r--r-- 1 www       www     5.0K May 27 19:16 
graph_project_4578c9561d67104918dbf0e2a358a4b3
-rw-r--r-- 1 www       www    1006K May 27 19:16 
graph_project_4c78e5e66134a41b85181043c3a81870
Ex:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="200" version="1.0" 
id="ezcGraph"><defs/><g 
id="ezcGraphChart"
 color-rendering="optimizeQuality"

I'm inferring from this that ezc is running correctly, but there's a problem in 
the output layer. Snooping on the Statistics 
tab, the HTML being returned seems to be the main welcome div. I'm happy to 
investigate more for you.

Original comment by kwie...@gmail.com on 28 May 2008 at 2:23

GoogleCodeExporter commented 8 years ago
I have no such files:
oleg@shoom-alpha:~$ locate graph_data
oleg@shoom-alpha:~$ 

Original comment by kingo...@gmail.com on 28 May 2008 at 6:40

GoogleCodeExporter commented 8 years ago
look at your apache error_log.   It should have a line stating something 
similar to this 

arning:  touch() [<a href='function.touch'>function.touch</a>]: Unable to 
create file
/tmp/xinc/xinc_statistics_CommonLib because No such file or directory in
/usr/share/pear/Xinc/Plugin/Repos/Gui/Statistics/Widget.php on line 170

In my case it's trying to use /tmp/xinc which didn't exist.  
running

xinc-settings set xinc tmp_dir /tmp/xinc
mkdir /tmp/xinc
chown apache:apache /tmp/xinc

should fix it

Original comment by urkle0 on 3 Jun 2008 at 2:53

GoogleCodeExporter commented 8 years ago
Hi kwiens2, I had the same problem you were having. My files were being created 
but
statistics page was not loading. 

I found the following in my apache error log file:

[Thu Jun 26 17:16:50 2008] [error] PHP Fatal error:  Class 'ezcGraphSvgFont' not
found in /usr/share/pear/ezc/Graph/driver/svg.php on line 120

Looking in this file you can see the necessary file for ezcGraphSvgFont is not 
included. 

Adding, include_once('svg_font.php'); to the top of the got things back to 
working
again. So it looks like a bug with ezc is to blame...

Original comment by trevor.m...@gmail.com on 26 Jun 2008 at 9:45

GoogleCodeExporter commented 8 years ago
Proper fix is here:
http://groups.google.com/group/xinc/browse_thread/thread/f980cc2f71fe25a6

Original comment by trevor.m...@gmail.com on 27 Jun 2008 at 1:56

GoogleCodeExporter commented 8 years ago
Fix works, but clean out your temp dir afterwards.

Original comment by pohlsche...@gmail.com on 4 Jul 2008 at 12:41

GoogleCodeExporter commented 8 years ago
I've tried the fix mentioned but it doesnt seem to make any difference.

I've checked my apache logs but can't see anything there which shows any PHP 
errors.

Any suggestions on how I can debug this?

Original comment by markri...@gmail.com on 11 Sep 2008 at 6:40

GoogleCodeExporter commented 8 years ago
It is not working on the demo either...

Original comment by baptiste...@gmail.com on 3 Oct 2008 at 9:05

GoogleCodeExporter commented 8 years ago
I realy dont understand how to activate the graphs.
But as it's not working on the demo, should it work on mine ?

Original comment by gboss...@gmail.com on 15 Nov 2008 at 1:05

GoogleCodeExporter commented 8 years ago
i can confirm that the issue is with the ezc library includes.  i have looked 
at 
their autoload structure quickly and can find the svg_font class specified but 
do 
not see the solution beyond that.  i will contact the maintainer of that 
library to 
see if the issue has been fixed.

Original comment by apshoema...@gmail.com on 3 May 2009 at 11:30

GoogleCodeExporter commented 8 years ago
per the documentation located at http://ezcomponents.org/docs/install, the ezc 
bootstrap must be included in order for its autoload mechanism to work 
properly.  I 
have done this and it is now part of the 2.0.3 branch.  everyone please 
download the 
2.0.3 branch and test.

Original comment by apshoema...@gmail.com on 9 May 2009 at 5:08

GoogleCodeExporter commented 8 years ago
please see Xinc_Plugin_Repos_Gui_Statistics_Graph class line 33

Original comment by apshoema...@gmail.com on 9 May 2009 at 5:10

GoogleCodeExporter commented 8 years ago
@apshoemaker

Where does one obtain the 2.0.3 branch? I'm using the latest version 
(#ver2.0.0b196)
and see a 2.0.1.1 version (which seems to newer than mine? at least in 
numbering...).

If anything tell us which revision number it is so I can hunt for it on the 
source page.

Thanks!

Original comment by eric.marden on 21 May 2009 at 9:30

GoogleCodeExporter commented 8 years ago
I'm very sorry for the confusion.  You will find the 2.0.3 branch in the 
subversion
repository.  Click on the source tab at the top of the page and follow the
instructions there.  Going forward the latest branch revision number will be the
latest unstable version of the code.  The late stable version will be in the 
trunk
and released to the front page, as well.

Original comment by apshoema...@gmail.com on 21 May 2009 at 2:40

GoogleCodeExporter commented 8 years ago
I found it, but was unable to get it working via the install.sh file. I think 
xinc is
running fine, but the Web Interface is blank and not throwing errors into any 
logs.

Can you say which files contain the fix for the graphs? I plan on reverting 
back to
2.0.0b196, but would like to apply the patches required to get the graphing 
working.

Which version is xinc.eu running? The graphs don't pull up there either.

Original comment by eric.marden on 24 May 2009 at 10:52

GoogleCodeExporter commented 8 years ago
yes, please see comment 20 above.

display_errors is turned off early in the process, so it is not surprising that 
you
are not seeing anything.  If you can please let me know if you find anything, I 
would
appreciate it as I cannot reproduce your issue.

Original comment by apshoema...@gmail.com on 25 May 2009 at 8:49

GoogleCodeExporter commented 8 years ago
Great, I just edited the file:
sudo vim /usr/share/php/Xinc/Plugin/Repos/Gui/Statistics/Graph.php

 and added the bootstrap line on line 33 as suggested, 

require 'ezc/Base/ezc_bootstrap.php';

restarted Apache and Xinc just to be sure and... there we go, got nice 
graphics. I
will probably investigate a bit further the graphics stuff as I'm using 
SimpleTest
and apparently the reporting stuff doesn't really come out as expected.

Original comment by ywarn...@gmail.com on 25 Nov 2009 at 3:45