PDA

View Full Version : Problem with gnatt chart


alancm39
13-07-05, 11:53 AM
I have newly installed a version 2.0.1 on Solaris 8. Everything looks fine except the gnatt chart. First I had a problem showing a red cross without any information. So I have recompiled php wihth gd support and confirm that by docs/pnpinfo.php. Now the gnatt chart is ok from the top level of "Projects" page but showing the message of

JpGraph Error. You are trying to use locale (en) which your php installation does not support. Hint: Try to use ' ' to indicate default locale for this geographic region.

I went to troubleshooting gnatt page and found a solution.
But this is not fixed by changing "JpGraph locale" to ' ' (which I suppose it means leave it blank).

Can anyone help me with this please?

Regards,
Alan

giovi2002
03-08-05, 06:25 AM
I've got the same problem and went to system admin and changed locale to ' ' but it didn't help. After saving my system translated ' ' to \ so I would like to see this question answered also. The gantt chart is a nice unmissable feature

pedroa
03-08-05, 06:57 AM
There are several versions of the gantt.php files, see for the tasks modules:

http://cvs.sourceforge.net/viewcvs.py/dotproject/dotproject/modules/tasks/gantt.php?rev=1.52&view=log

and for the projects module:

http://cvs.sourceforge.net/viewcvs.py/dotproject/dotproject/modules/projects/gantt.php?rev=1.25&view=log


Try each one from up to down in the right module until you find the working one, avoid the smarty ones for now.

Also look for gantt in mantis for some extra info.

Pedro A.

giovi2002
05-08-05, 09:17 AM
Pedroa you rule!! Now it''s working!!
Replaced the Gantt in modules>task with the newest php version

Thx

Wambot
05-08-05, 06:30 PM
ta muchly Pedroa, same problem, same fix.

Phil

jediping
09-08-05, 12:29 AM
I have exactly the same problem (apparently with the "tasks" module). I tried making sure I had the latest CVS version, but it didn't help. I tried every version back 'til March 15th (1.45) and still no luck. Should I go back further? Recommendations on a version to try?

Solved

I used the stuff found here:

http://www.dotproject.net/vbulletin/showpost.php?p=11001&postcount=2

Not the best solution, but it'll do for now.

...

Ooooh! Here's something that really works. I entered en_US for the jpGraph Locale field, and now it works like a charm.

arvychile
11-08-05, 01:00 AM
jediping,

Thanks I had the same problem...applied your sugestion and it worked fine on the project list, gantt tab.

But if I go down to a specific project and choose the gantt tab I get the same error "you're trying to use the locale (es) which your..." error.

Where else do I need to configure this module?

jpate
13-08-05, 05:01 AM
I fixed mine just by changing the locale to 'C' (without the quotes)
probably not the perfect fix, but i think the locale stuff isn't set up right because apache is chroot jailed in my installation (openbsd)

diego
28-09-05, 12:55 PM
Hello there, I installed dotproject on a window 2000 server (yes I know: bleah!!!). Almost everything is working now, only the Gnatt graphs aren't displayed. I already:
- increased the memory
- played with the locale
and followed the tips from the forum.
Anything to suggest?
Should I maybe change some settings in:
LIB/jpgraph/src/jpg-config.inc
file or other files to get it to work?

Here are my settings:
MySQL Server Version 4.0.18-nt
Operating System Windows NT 5.0
PHP Version 4.4.0
Server API cgi-fcgi
Web Server Microsoft-IIS/5.0

Also:
/locales/en directory writable ->no
/files directory writable ->Yes (for the uploads)
/files/temp directory writable ->Yes

the directory locales has to be writable? Isn't it a little bit risky?

trane
28-09-05, 04:09 PM
I too am having this problem... I have tinkered with the Locale, and though I'm on a Linux, I have basically the same config that you list.

I haven't altered any memory usage... where is that done?

If you find an answer please post... I'm loosing my patience and about to plunk down big dollars to use MSProject! I SOOOOO need a gantt chart that works!

Thank you in advance!

giorgio61
28-09-05, 07:13 PM
as i tried to post in another thread i also have a problem with the Gantt charts. I get the gantt correctly from the project module but i don't get the chart from the task module. The url doesn't generate any image and i just get the browser unavailable resource icon. Do u have any idea of this behaviour? I already tried to update the gannt.php from cvs and the memory is set to 32m, the server is linux.
Giorgio

diego
29-09-05, 05:18 AM
Actually I tried to set it up on my comuter to test it and everything was working, but my local machine is a Mac, and read/write permissions were loose (being my local machine).
So if I have to give read/write permission on the server I would like to be sure to target only the necessary folder(s)...

pedroa
29-09-05, 05:30 AM
I haven't altered any memory usage... where is that done?

If you find an answer please post... I'm loosing my patience and about to plunk down big dollars to use MSProject! I SOOOOO need a gantt chart that works!

Thank you in advance!

In php.ini

About your second option, well Bill Gates will be happy with it, if you want you can have paid assistance to guide you, and let me tell it will be a lot cheaper.

It's your call... and by the way, your money.

Pedro A.

pedroa
29-09-05, 05:40 AM
I am on a windows box, and let me tell you all around here, I have been trough all the errors that people get around Gantt charts.
I haven't seen one I haven't dealt before, and some that you guys have never heard or read of.

Problems resume to:
Lack of memory, lack of png support or images from the browser, lack of suppressHeaders on the URL, lack of temporary disk space, lack of an updated gantt.php / viewgantt.php file or too much updated (to the HEAD branch), lack of GD library extension, lack of the right locale.

What I can say is that something is lacking.

Pedro A.

diego
29-09-05, 02:26 PM
Thank you Pedro, that piece of info was extremely usefull!!!
But you are right, it could be pretty much anything. I hate my own production server, can you believe it??? Unfortunately I have no options...
:D

md4ni
29-09-05, 05:00 PM
...............
Problems resume to:
Lack of memory, lack of png support or images from the browser, lack of suppressHeaders on the URL, lack of temporary disk space, lack of an updated gantt.php / viewgantt.php file or too much updated (to the HEAD branch), lack of GD library extension, lack of the right locale.
...........
Pedro A.

Pedro i don't quiet understood about 'suppressHeaders on the URL' so it means i have re-compile my php and set --with-suppress ? or what??

i also follow your's suggestion in forum, to check the ability of gantt and jpgraph:
http://localhost/dotproject/index.php?m=projects&a=viewgantt

but i got this following error:
Fatal error: Call to a member function on a non-object in /var/dotproject/modules/projects/viewgantt.php on line 132

and this error reffer to

<input type="text" class="text" name="show_edate" value="<?php echo $end_date->format( $df );?>" size="12" disabled="disabled" />


does anyone know what happen to my DP??

i using linux as OS.

thanks in advanced.......

Mdani.

pedroa
30-09-05, 01:13 AM
md4ni,

If I was to play on your lotery I would buy (forsee, say, guess)...:

1) your modules/projects/viewgantt.php file version is:
<?php /* TASKS $Id: viewgantt.php,v 1.10 2005/07/31 15:46:08 cyberhorse Exp

Right?
I am almost certain that it is so (to say the truth I am sure so)

2)
Fatal error: Call to a member function on a non-object in /var/dotproject/modules/projects/viewgantt.php on line 132

and

<input type="text" class="text" name="show_edate" value="<?php echo $end_date->format( $df );?>" size="12" disabled="disabled" />

Nope, that is the line 132 not of modules/projects/viewgantt.php but of modules/tasks/viewgantt.php

That is why I like dP so much, it is very well written and so errors like "Fatal error: Call to a member function on a non-object in" means unstability and this due to my first guess.

You are using an unstable version, and unstable at the moment means using the HEAD branch files.

Therefore you are geting problems with Smarty.

The right line is:

$tpl->assign('script', "<script>document.write('<img src=\"$src\">')</script>");


So you are calling a Smarty object without having Smarty, so you have an explosive mix of files, and your Fatal Errors.

In my list you have got the "gantt.php / viewgantt.php file or too much updated (to the HEAD branch)" problem.

Please forget the suppressHeaders stuff, It is a rare problem that happened to me when mixed with the RSS module, but cyberhorse have already fixed that, so it should be non-existant. (Though it almost took me to insanity)

Did I won the lotery?

Pedro A.

md4ni
03-10-05, 08:08 PM
thx pedro for Good :grin: the analisys

this is what i do next:
i roll-back the version to 'not using smarty, no tpl-> variable'

then i try

http://localhost/dotproject/index.php?m=tasks&a=gantt&suppressHeaders=1&project_id=2&start_date=2005-10-03&end_date=2005-11-03

and i got this(it is an image NOT a text word) ????

http://localhost/dotproject/index.php?m=tasks&a=gantt&suppressHeaders=1&project_id=2&start_date=2005-10-03&end_date=2005-11-03
cannot be displyed because it contain errors.

pedro can u tell me what is it??
i'm confuse because it didn't reffer to a code of line or code of file like message that i posted before..

Thanks,

Mdani

giorgio61
04-10-05, 05:17 PM
i tried to install dotprojects in a window server and it worked at the first try, only had to activate the gd library in the php.ini.
the problem persists in the linux server where the gd are working and in fact the gantt is shown in projects, but don't work in tasks.probbaly is one of the linux settings that is not set properly, but which one?

pedroa
07-10-05, 11:49 PM
md4ni:

Are you expecting me to see anything on your localhost? I just can't help you this way, for as much as I would like...

giorgio61:

memory_limit maybe is too low. Projects gantt require less memory than tasks, could be a possible explanation. Again I can't see anything.

Bye,

Pedro A.

md4ni
10-10-05, 11:43 AM
working now,
thanks Pedro.

It seems i've problem in JPgraph not in dp.
so i set local language with en_iso-bla-bla...
It works like magic.

Mdani :-) .

yvesbroers
02-11-05, 06:29 AM
Hi
I have managed to sort the gant chart display problem by removing "en". I can now see the chart for all the projects but not for the tasks?? Any ideas?