ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 24th, 2004, 03:20 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Error when run calendar.php

I think this is a great program!! Thanks for creating it. I installed it on my private site to play around with it and just loved it. So I installed it on another site for actual use. The install went fine with no errors. The tables are creating fine and the admin username/password gets set up fine. However, when I go to the calendar.php page I get the following errors at the top of the calendar page (calendar does show below errors):

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltw_config.php:375) in /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltwdisplaymonth.php on line 283

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltw_config.php:375) in /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltwdisplaymonth.php on line 285

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltw_config.php:375) in /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltw_header.php on line 9

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltw_config.php:375) in /home/virtual/site85/fst/var/www/html/ltwCalendar4/private/ltw_header.php on line 10

Login doesn't work as well. It just refreshes the page. I went in and commented out the header lines at each of these locations. The errors go away but login still doesn't work. This site uses php 4.2.2 and mysql 3.23.56.

When I click on a date, I get the same header errors again (2 of them).

I am hoping you have seen this before and know what needs to be fixed on my site for this to work. [I am using the same browser I used for my personal site where the calendar did work correctly.]

Reply With Quote
  #2  
Old June 24th, 2004, 04:16 AM
dottieelliott dottieelliott is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Austin, TX, USA
Posts: 1 dottieelliott User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to dottieelliott
RE: Error when run calendar.php

I found a message that said I needed to change the
output_buffering = off
to
output_buffering = 4096
in the php.ini file. I did that but the problem persists. Sigh. I was hoping for a easy fix.

Reply With Quote
  #3  
Old June 30th, 2004, 09:10 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Error when run calendar.php

I had the same problem with warnings being displayed due to the calls to header. This problem was caused by output being sent before the headers I did not find where output was being sent, but I was able to fix the problem by adding ob_start() at the beginning of the calendar.php script and ob_end_flush() at the end of the calendar.php script.

In addition to the warnings the cookie that needs to be set when you log in was not getting set so I couldn't access any of the Administrator features (i.e. add, edit, delete, etc.)

I know there is another fix rather than buffering all the output, it's just a matter of finding out where the script is trying to output before the header() function calls.

Hope this helps!

Reply With Quote
  #4  
Old August 17th, 2004, 09:10 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Error when run calendar.php

I commented out:

//header("Cache-control: no-cache, must-revalidate");
//header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");

Will this cause problems in other areas?

Thanks,
Kris

Reply With Quote
  #5  
Old August 26th, 2004, 02:37 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Error when run calendar.php

I am getting these same errors....So, what is the best resolution....To comment out or to buffer...

Reply With Quote
  #6  
Old August 28th, 2004, 07:42 PM
RichieB RichieB is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Peoria, IL
Posts: 6 RichieB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to RichieB Send a message via Yahoo to RichieB
RE: Error when run calendar.php

I just installed my calendar on my hosted server and had the same errors.... after reading a few posts, I tried what was talked about.

I opened each and every file, went to the bottom of each and removed the trailing spaces at the end of the code. Once done, went back to my calendar and it was running like it should, with no errors.

Give it a try!

Good Luck!

Reply With Quote
  #7  
Old August 31st, 2004, 07:00 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: Error when run calendar.php


Quote:
I just installed my calendar on my hosted server and had the same errors.... after reading a few posts, I tried what was talked about.

I opened each and every file, went to the bottom of each and removed the trailing spaces at the end of the code. Once done, went back to my calendar and it was running like it should, with no errors.

Give it a try!

Good Luck!


it worked for me....! thx....

Reply With Quote
  #8  
Old September 2nd, 2004, 09:01 PM
Becker17 Becker17 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 Becker17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Becker17
RE: Error when run calendar.php

Quote
--------------------------------------------------------------

I just installed my calendar on my hosted server and had the same errors.... after reading a few posts, I tried what was talked about.

I opened each and every file, went to the bottom of each and removed the trailing spaces at the end of the code. Once done, went back to my calendar and it was running like it should, with no errors.

Give it a try!

Good Luck!

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

Thank you for posting this fix. It worked for me too! Now I can use my calendar and enjoy it :-)


Reply With Quote
  #9  
Old September 14th, 2004, 04:33 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Error when run calendar.php

I deleted the trailing carriage returns & spaces, but I am still receiving the above errors.

Any suggestions?

Thanks!

Reply With Quote
  #10  
Old October 8th, 2004, 04:24 PM
gill1723 gill1723 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 gill1723 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: Error when run calendar.php

were the training spaces before or after the close PHP tags?
Quote:
I just installed my calendar on my hosted server and had the same errors.... after reading a few posts, I tried what was talked about.

I opened each and every file, went to the bottom of each and removed the trailing spaces at the end of the code. Once done, went back to my calendar and it was running like it should, with no errors.

Give it a try!

Good Luck!


Reply With Quote
  #11  
Old October 8th, 2004, 04:59 PM
Leigh Leigh is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ontario, Canada
Posts: 99 Leigh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 20 sec
Reputation Power: 2
RE: Error when run calendar.php

You need to remove and spaces and carriage returns at the beginning of the PHP files as well as the end.

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > Error when run calendar.php


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway