Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 12:33 pm EST
Geeklog Forums
The Next Generation Genealogy
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.
13
14
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.
10
12
Quote
All times are EST. The time is now 12:33 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