Welcome to Geeklog Thursday, December 09 2021 @ 05:43 am EST

Geeklog Forums

The Next Generation Genealogy

Status: offline


Forum User
Registered: 01/02/03
Posts: 32
I am running the Next Generation Genealogy software on my Geeklog site by wrapping the necessary files like this: require_once( \'../lib-common.php\' ); echo COM_siteHeader(); echo COM_startBlock( \'Genealogy\' ); TNG PHP FILE echo COM_endBlock(); echo COM_siteFooter(); Recently I have noticed I am starting to get errors like these when attempting to access or set a session variable. Warning: Cannot send session cookie - headers already sent by (output started at /home/virtual/...../lib-common.php(859) : eval()\'d code:9) in /home/virtual/...../genealogy/getlang.php on line 2 I am wondering if I will need to make this into a plugin with a header function that reads and/or sets the session variables.

Status: offline


Forum User
Full Member
Registered: 17/02/03
Posts: 236
PHP doesn\'t allow us to send output before sending headers. When done, it produces those warnings. Not sure what you\'re doing with sessions, but if you\'re trying to send output or set cookies before Geeklog sends its headers, you might want to try using PHP\'s output buffering functions: http://us4.php.net/manual/en/ref.outcontrol.php or set output_buffering = On in php.ini. If these don\'t work for you, then make it into a plugin.

All times are EST. The time is now 05:43 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content