|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.] |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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! |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
RE: Error when run calendar.php
I am getting these same errors....So, what is the best resolution....To comment out or to buffer...
|
|
#6
|
|||
|
|||
|
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! |
|
#7
|
|||
|
|||
|
RE: RE: Error when run calendar.php
Quote:
it worked for me....! thx.... |
|
#8
|
|||
|
|||
|
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 :-) |
|
#9
|
|||
|
|||
|
RE: Error when run calendar.php
I deleted the trailing carriage returns & spaces, but I am still receiving the above errors.
Any suggestions? Thanks! |
|
#10
|
|||
|
|||
|
RE: RE: Error when run calendar.php
were the training spaces before or after the close PHP tags?
Quote:
|
|
#11
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > Error when run calendar.php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|