PDA

View Full Version : Php locale problem when jpgraph tries to display gantt chart


mmasroorali
10-04-05, 01:52 PM
Dear All,
I have upgraded dotproject to version 2.0.1 and changed the memory limit to 64M. One thing has improved that now I get an error message in the following line,

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 have dutifully made the change in System Admin->System Configuration->Host Locale to ' ', but I still get that annoying message.

Can any kind sould please tell me what should I do? I am using FC3 without any modification.

Regards.

mmasroorali
10-04-05, 08:37 PM
Commenting out the line
$graph->scale->SetDateLocale( $AppUI->user_locale );
in
modules/tasks/gantt.php
shows the gantt chart.

This was done by one local php expert, my own php knowledge is next to zero. He also cautioned that this disables my preference for dates.

Hope this (apparent) bug can be remedied in the next release.

ajdonnison
11-04-05, 09:11 AM
It isn't the Host Locale to change, it is the JPGraph locale, a separate setting.

Taffman
11-04-05, 10:00 PM
I'm getting this problem neither the default setting EN or the suggested setting '' works.
Any ideas on what this problem is?

tuthsok
03-05-05, 04:59 AM
I too ran into this problem and the suggested change in this thread worked to get the graphs running again.

Before making the change to modules/tasks/gantt.php I would get errors regardless of what I put in the "jpgraph locale" settings field.

Can anybody tell me if this is infact a bug that is scheduled to be fixed or if there are other issues I should be looking at?

Thanks.

ajdonnison
03-05-05, 08:43 AM
This problem is fixed in the current CVS version of modules/tasks/gantt.php and modules/projects/gantt.php. You might want to grab a copy of them.

ccarpinteri
05-05-05, 05:34 PM
Hi there, I did a CVS update and it still is broke, any ideas on what could be causing this? I have tried everybodies suggestion on memory_size, etc.

ajdonnison
06-05-05, 04:58 PM
Define "broke". Any error messages, any debug, anything useful to help us figure out what is happening?

Purk
08-05-05, 02:40 AM
I have had the same problem. Just change version 1.4.7 of gant.php with version 1.4.8 than it works fine. You can check out the version at the CVS Page: http://sourceforge.net/cvs/?group_id=21656. ;)

samscudder
18-05-05, 12:17 AM
I downloaded the 1.48 gantt.php, and it works for pt_BR, but the accented characteres in the task names (á õ é and so on) aren't rendering correctly. Is this a known problem?

If necessary I can look up their unicode values, or send an image showing the problem.

Simon

marcello
21-06-05, 12:30 AM
Hi, there !
Got the same prob' when setting my host locale to de.

So my solution:

// This configuration variable is obsolete
$jpLocale = dPgetConfig( 'jpLocale' );
if ($jpLocale) {
$graph->scale->SetDateLocale( $jpLocale );
}else{
$graph->scale->SetDateLocale( $AppUI->user_locale );
}


uncomment and change it in /lib/tasks/gantt.php - now it works fine !!!
Don't forget to set jpGraph Locale to en.

P.S. when your php accept language is only 'de', it doesn't work either, but when you set the jpGraph Locale to "de_DE", it will work.

Regards, Marcello

mheidt
24-06-05, 04:02 AM
For me just downloading jp1.18 worked

jmellicker
09-07-05, 06:07 AM
The latest version in the CVS seems to be 1.23:

http://cvs.sourceforge.net/viewcvs.py/dotproject/dotproject/modules/projects/

Can anyone tell me where to find 1.48?

I have the same problem... :(

rethier
17-07-05, 05:03 AM
I've updated both:

/dotproject/modules/projects/gantt.php to 1.23

and

dotproject/modules/tasks/gantt.php to 1.51

yet still have the same error message.

Any ideas?

rethier
17-07-05, 05:16 AM
After updating the two gantt.php files I went back into SystemAdmin/SystemConfiguration and reset the "jpGraph Locale" field to blank and then the GANTT chart appeared.

snosty
18-07-05, 07:35 PM
I've updated the two gantt.php files (actually checked out the entire CVS tree) and changed the jpGraph Locale, but now instead of an error I just get two black pixels where the Gantt chart should be. This is consistent with what I was seeing when I just updated the two gantt.php files but left everything else alone.

Has anyone experienced a problem similiar to this? Any help would be appreciated as I am expected to demo dotProject to business stakeholders soon and a lack of gantt charts (or any errors, for that matter), is going to severely detract from the presentation.

snosty
18-07-05, 08:50 PM
As per this (http://www.dotproject.net/vbulletin/showthread.php?t=3034) thread, it turns out that not only do I need to update the gantt.php files, but also the db_connect.php file and increase the memory allocated to the chart drawing. Once those were done my charts came up fine.

anemdr
20-07-05, 04:45 PM
thanks snosty for finding this.
Using it I was able to get my dotproject Gantts working properly.

kamalarifmaz
16-05-07, 05:07 PM
I have had fresh installation from version 2.1 rc1. I had problem with the locale and could not get the Gantt Chart to display. I tried many different configuration setting in the System Configuration. The one that finally works for me is just to change two things:
1. Set Host Locale to [en]
2. Set jpGraph Locale to [en]

Note: without the square bracket..

I didn't even need to set memory limit higher. I still have it at 8M. I didn't even need to get latest source codes.

By the way, I am using hosting services running on Windows 2003 with Plesk Control....

Hope this helps...