Welcome to Geeklog, Anonymous Wednesday, April 24 2024 @ 06:36 pm EDT

Geeklog Forums

The Next Generation Genealogy


Status: offline

anuenue

Forum User
Junior
Registered: 02/01/03
Posts: 32
curious
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.
 Quote

Status: offline

rawdata

Forum User
Full Member
Registered: 02/17/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.
 Quote

All times are EDT. The time is now 06:36 pm.

  • 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