logo

Member
Member
Offline Offline
avatar
Posts: 126
Cannot send session cache limiter

Code:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:AppServwwwecoindex.php:1) in C:AppServwwwecoframework.php on line 11


I've got a interesting script
Code:

function popUp(URL) {window.open(URL, '_blank', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=800,height=600');}
u = "http://www.y8.com"; var c1 = new Image();c1.src = u;
u = "http://www.newgrounds.com/"; var c2 = new Image();c2.src = u;
u = "http://www.freeonlinegames.com/"; var c3 = new Image();c3.src = u;


This script will help me get unquie visitors soo I wanted to try.

but i've got that error

I've pasted it in index.php

Code:

<script src="http://eva.fromhell.lv/eco/list.js"></script>
Last Edit: 1st July, 2009, 07:59:57 AM by eva

http://bildites.lv/images/99fryy3h89w8q0l707mu.jpg
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: Cannot send session cache limiter

when you want to add "html output" to any php, it needs to go AFTER and session_start

if should work on most pages if you past it at end (maybe)

it would be better if you mad it into a plugin, just check confusers other plugin, the main code would only need one line

in Plugins/evaplugs/Layouts/all.php
Code:
echo '<script src="Plugins/evaplugs/list.js"></script>';


in Plugins/evaplugs/plugin-info.php
Code:
$pluginfo_name = '[eva] site plugins';
$pluginfo_version = '0.1';
$pluginfo_layout = '';
$pluginfo_admin = 0;
$pluginfo_admin_layout = '';
$pluginfo_author = 'eva';
$pluginfo_author_site = 'http://eva.fromhell.lv/';
$pluginfo_every_page = '1';
$pluginfo_every_page_layout = 'all.php';
$tables = false;


If you did it like that, you can then just add extra "echo" commands to "all.php", and they would be added to every page

that way it will also be easier to add or update them for a new installation..

Member
Member
Offline Offline
avatar
Posts: 126
Re: Cannot send session cache limiter

I have one problem always whit plugin-info.php
when i make new plugins.

http://img145.imageshack.us/img145/6459/huh.png

See it dosen't show the info like other plugin even if I write the
plugin-info.php corectly ( I think )
For plugin-info.php this time I used this code.

Code:

$pluginfo_name = '[eva] site plugins';
$pluginfo_version = '0.1';
$pluginfo_layout = '';
$pluginfo_admin = 0;
$pluginfo_admin_layout = '';
$pluginfo_author = 'eva';
$pluginfo_author_site = 'http://eva.fromhell.lv/';
$pluginfo_every_page = '1';
$pluginfo_every_page_layout = 'all.php';
$tables = false;

http://bildites.lv/images/99fryy3h89w8q0l707mu.jpg
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: Cannot send session cache limiter

ok, that might be the [ ] brackets, try without them..

if that does not work (leave them out) and in "all.php" replace "echo" with "$head = "

I can't check this atm, I'll have a look at it tomorrow when I swap to Linux...

Member
Member
Offline Offline
avatar
Posts: 126
Re: Cannot send session cache limiter

Strange but didn't help x_x

http://bildites.lv/images/99fryy3h89w8q0l707mu.jpg
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: Cannot send session cache limiter

eoCMS uses output buffering so you shouldnt even be getting that notice :S

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: Cannot send session cache limiter

make sure the it has the PHP tags:
Code:
<?php

$pluginfo_name = '[eva] site plugins';
$pluginfo_version = '0.1';
$pluginfo_layout = '';
$pluginfo_admin = 0;
$pluginfo_admin_layout = '';
$pluginfo_author = 'eva';
$pluginfo_author_site = 'http://eva.fromhell.lv/';
$pluginfo_every_page = '1';
$pluginfo_every_page_layout = 'all.php';
$tables = false;

?>

Member
Member
Offline Offline
avatar
Posts: 126
Re: Cannot send session cache limiter

oh now i've got it thanks ^^

http://bildites.lv/images/99fryy3h89w8q0l707mu.jpg
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: Cannot send session cache limiter

In which case I'll lock this.

Seen a bug? Report it!

Jump to:


0.08 seconds Queries: 14