PDA

View Full Version : Calenders not working


delux149
29-06-04, 01:59 AM
Hello,

I've just installed the latest and greatest version. Everything seems to be working EXCEPT, when I try to access a calendar, from add project, or add task or anything that has a calendar, nothing happens. I click on the icon to bring up the calendar, to set a date, but all that pops up is a blank window... no calendar...

Is there something wrong with my installation? I'm running this on Mandrake 10, apache2-2.0.48-6mdk, and MySQL-4.0.18-1mdk.

Any ideas?

Thanks

----
Jeff

delux149
30-06-04, 01:56 AM
Has anyone else ran into this problem?

Also, I'm using PHP Version 4.3.4...

Revelation7
30-06-04, 04:45 AM
calendar is done in javascript, as far as I know, do you have strict security settings regard JS?

delux149
30-06-04, 05:35 AM
I don't believe that I have strict security setting regarding JavaScript. Is that on the webserver or the browser? I would venture to say that it's on the webserver because when I go to the demo of dotProject, everything works just fine... If indeed it's on the webserver, would you know how to check that?

delux149
01-07-04, 07:47 AM
Well, I still haven't figured it out... Here is the call that seems to be failing:

10.0.1.70 - - [30/Jun/2004:17:37:04 -0400] "GET /dotproject/index.php?m=public&a=calendar&dialog=1&callback=setCalendar&date= HTTP/1.1" 200 1237 "http://myserver/dotproject/index.php?m=tasks&a=addedit&task_id=2" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1"

This messages was taken out of /var/log/http/access_log

delux149
01-07-04, 07:52 AM
When I try and access 'calander' from the top menu, nothing shows up either. Here is the call to that one from access_log also...

10.0.1.70 - - [30/Jun/2004:17:44:39 -0400] "GET /dotproject/index.php?m=companies HTTP/1.1" 200 9202 "http://myserver/dotproject/index.php?m=calendar" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1"

cliffredog
01-07-04, 10:08 AM
Yes, I have the same issue. The calendar pops up, but nothing inside of it except the heading. Anyone having luck fixing this? Thanks!

delux149
02-07-04, 05:21 AM
Um, no luck here... As of now I'm having to use a standalong java application. I would really like to use dotProject though. From what I can tell it's a good application....

ajdonnison
02-07-04, 11:12 AM
When you get the blank page can you right click and view source, save this and send it to me, ajdonnison at users dot sourceforge dot net.

Aluion
09-07-04, 04:16 PM
I am also having the same problem. Has this issue been resolved?

ajdonnison: If no one has yet sent you the HTML the script generates, I'd be more than happy to send it along, or give you a guest account with write access to the calendar module. I really need this version running because it supports recurring events, and I don't want to reinvent the wheel.

The demo site, which seems to be running the same version, does not have this problem, so I know it isn't javascript/proxy settings. It's most likely a setting on my server or in my configuration file.

Revelation7
09-07-04, 04:28 PM
You can sent a copy of those info to me as well. Revelation7@users.sourceforge.net

ajdonnison
09-07-04, 05:15 PM
I got the copies but they don't make sense. Access to the system this is failiing on would be useful. Same email as before.

delux149
10-07-04, 03:58 AM
Sorry, the site is an internal site, not accessable from the outside...

Here are the system specs:

Mandrake 10
MySQL-4.0.18-1mdk
php-readline-4.3.4-1mdk
php-imap-4.3.4-1mdk
libphp_common432-4.3.4-4mdk
apache2-mod_php-2.0.48_4.3.4-1mdk
php-ldap-4.3.4-1mdk
php-ini-4.3.4-1mdk
php-mysql-4.3.4-1mdk
php-unixODBC-4.3.4-1mdk
php-gd-4.3.4-1mdk
apache2-modules-2.0.48-6mdk
apache2-2.0.48-6mdk
apache2-mod_perl-2.0.48_1.99_11-3mdk
apache2-mod_cache-2.0.48-6mdk
apache2-mod_ssl-2.0.48-6mdk
apache2-mod_proxy-2.0.48-6mdk
apache2-mod_php-2.0.48_4.3.4-1mdk
apache2-mod_suexec-2.0.48-1mdk
apache-conf-2.0.48-2mdk
apache2-common-2.0.48-6mdk
apache2-mod_disk_cache-2.0.48-6mdk

I'm also tried different browsers, mozilla, firefox, as well as Internet Explorer. They all produce nothing...

Eddie
10-07-04, 09:10 AM
i have a similar problem... when i try to access the calendar from the main menu, i get a 500 internal server error.
this is similar to the error that i was having when trying to access the user profile for admin.
but that was fixed when i rolled back the php version.

i am running apache 1.3
php 4.3.6

the error message i get is as follows:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@domain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.31 Server at cerulean.austin.rr.com Port 80

Aluion
10-07-04, 10:11 AM
I got the copies but they don't make sense. Access to the system this is failiing on would be useful. Same email as before.

If all you need is access to the script, I can setup a new FTP account and database and reinstall it there. His problem is exactly like mine, so it should have the same solution.

I managed to get it working on my windows server (internal) without any problems, minus a few "headers already sent" messages which I dealt with easily. I compared my server's php configuration to that of my host's, and saw no major differences. They're both using Apache, and my host is good about keeping up-to-date with the latest PHP/MYSQL/Apache releases. You can find their details all listed on this page (http://www.globat.com/netstatus/server_info.php). Since my windows server is mainly used for testing scripts before uploading them, I doubt it's as up-to-date.

Revelation7: Yesterday, I sent you the username and password to a guest account on my server with access to calendars. I'm not sure if it went through, as sourceforge's email fowarding seems/seemed to be having problems. If you didn't recieve it, reply and I'll resend.

Eddie
11-07-04, 09:35 AM
the apache error logs give me the error:
Premature end of script headers: c:/php/php.exe

as far as i know, i have all supported and tested versions.
i'm running apache 1.3
and php 4.3.6
mysql 4.0.20d

ajdonnison
12-07-04, 11:29 AM
Yes please - send me the details of the account and the URL to view the problem. Just use my email link, or send it to ajdonnison @ users.sourceforge.net.

Aluion
12-07-04, 01:25 PM
ajdonnison: I assumed you were talking to me and sent you the FTP info. Hopefully you'll have better luck with it since you have more intimate knowledge of the script. The odd thing is that the previous version of the script works fine on the same server in regard to the calendars module.

Edit: I just recieved a returned email when using ajdonnison @ users.sourceforge.net (and removing the anti-spam spaces). I'll try sending it to you in PM.

Eddie: Your problem sounds quite different. Are you only experiencing this problem with the calendars module, or are any other PHP pages returning this error?

Eddie
12-07-04, 03:10 PM
i got my calendars to work...
but i had to do a reinstall of everything.
so i don't really know what the original problem was.
boooooo...

ajdonnison
12-07-04, 07:40 PM
This turns out to be due to a missing PHP module, xml support. It is looking for the funtion utf8_encode which is in the xml support. You should look at your dotproject/docs/phpinfo.php output and ensure there is an xml support section and that it is shown as active. Without this, none of the UTF8 functions exist. Look at the PHP documentation, however it is normally enabled unless you do not have Apache (for the expat library) or you specify --disable-xml on the configure line.

delux149
12-07-04, 11:34 PM
AWESOME!

That was it... You were right that the XML module for PHP was not installed. Once I installed the XML module and started Apache, everything was b-e-autiful!

Thanks...

ajdonnison
13-07-04, 08:57 AM
As a postscript to this, it turns out that index.php was setting the error reporting level such that fatal errors were not displayed. I've updated the CVS version to be more encompasing of error types. Hopefully this will lead to fewer hidden problems such as this one.

jclu52
13-07-04, 02:20 PM
Hi,

I am having the same problem on my Win PC with Apache and MySQL.

I've tried the same at the demo site: http://www.dotproject.net/demo/index.php.

When "editing project", point mouse to the calendar has the following: http://www.dotproject.net/demo/index.php?m=projects&a=addedit&project_id=17#

When "editing task", the same produced the following: http://www.dotproject.net/demo/index.php?m=tasks&a=addedit&task_id=10#

However, while editing project, it was able to display the calendar. The problem I've encountered is while editing tasks.

Tried the same thing using FireFox 0.91, IE 6 sp1, Netscape 7.1 and Opera 7.50.

I'm pretty sure it's not a JavaScript problem since I was able to view the calendar one place and not the other one. Also, different browser eliminate the possibility of browser issue or setting issue.

I will keep trying to see what I dig up with.
In the mean time, hopefully, someone can help us to resolve this issue.

ajdonnison
13-07-04, 02:23 PM
Did you check for XML support in phpinfo?

jclu52
13-07-04, 02:57 PM
Did you check for XML support in phpinfo?

Yes, it's there.

The same problem exists at the demo site as well.
It's under editing task.

While creating a new task, aftering entering all required fields, clicking on "submit" does not perform anything. However, "cancel" does generate a message box to confirm the action.

Thanks.

ajdonnison
13-07-04, 03:00 PM
OK, in the CVS I've changed index.php to fix error reporting. You just need to change the error_reporting line at the top to be:

ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_NOTICE);

This is more likely to pick up errors than the previous version.

jclu52
13-07-04, 05:19 PM
OK, in the CVS I've changed index.php to fix error reporting. You just need to change the error_reporting line at the top to be:

ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_NOTICE);

This is more likely to pick up errors than the previous version.

OK, I made those changes.
There are no errors being reported.

At the demo site, task editing is having problem with calendar. Actually, none of the buttons (not links) do anything (including "calendar button", "<", ">", "duration", "finish date" and "save".

The most interesting thing is "task edit" does not work in any of the browswer (IE, FireFox, Netscape, Opera).

After playing with the HTML file a little bit, I found out that popCalendar function is not defined in EditTask.
I copied some lines from EditProject (modules/projects/addedit.php) to EditTask (modules/projects/addedit.php). I think that's where the missing lines are at.
However, my limited understanding of PHP could not make it work. :cry:

ajdonnison
13-07-04, 05:28 PM
Task editing on the demo site is not showing any errors here. In the past there have been reports of problems with calendar popups on some windows platforms, especially where there is a firewall component (such as norton). This sounds like it might be one of those areas. In addition there was a strange problem with XP where the calendar would not popup because the dimensions were considered to be indicative of adverts or other unwanted material. There was a change to some modules to change the dimensions of the window to get around this. Try doing a search on these forums for more details.

jclu52
13-07-04, 05:56 PM
ajdonnison,

I think I might have found the problem for task editing. :wink:

I have a question, though.
Please look for "if ( $AppUI->getConfig( 'check_task_dates' ) ) {" that should be at line 248.
Could you tell me what does that section of code intend to do?
There might be some missing code or extra braces.

I think that we need to add </script> right above this line.

Also, add <SCRIPT language="JavaScript"> right above
function addUser() { (line 284).

I think there might be something else similiar to this that was missing.

I kind get confused there. :cry:

jclu52
13-07-04, 07:12 PM
ajdonnison,

I've finally fixed the task editor. :D

It's probably too big to post it here. (26399 bytes).
I can send you my working version if you need it.

Jeff