rockxl1 Posted March 27, 2009 Share Posted March 27, 2009 Hi again ppl! Every time i put php.ini file in my server with (max_file_size = 1000M) inside, do this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/rockxl1/demo1.site-facil.net/admin.php:2) Session Cache conflit with php.in-> max_file_size... :S Any help? thanks Rafael Rocha Portugal Link to comment https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 27, 2009 Share Posted March 27, 2009 It's likely that your php.ini with the max_file_size setting is changing another setting that was masking the header error. Line 2 of admin.php is sending output to the browser that is preventing headers from working. What do lines 1 - 2 of admin.php contain? Link to comment https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795563 Share on other sites More sharing options...
rockxl1 Posted March 28, 2009 Author Share Posted March 28, 2009 i have : session_start(); Link to comment https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795773 Share on other sites More sharing options...
KPH71 Posted March 28, 2009 Share Posted March 28, 2009 Can you copy and paste the first two lines of code Link to comment https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795776 Share on other sites More sharing options...
rockxl1 Posted March 28, 2009 Author Share Posted March 28, 2009 Error is: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/rockxl1/demo1.site-facil.net/admin.php:2) in /hsphere/local/home/rockxl1/demo1.site-facil.net/admin.php on line 24 code is: <?php //GESTAO require '../library/Gestao/config.inc.php'; require '../library/Gestao/Cliente_Servicos.Class.php'; require '../library/Gestao/Datas.php'; //site facil require 'config.php'; require '../library/SiteFacil/conteudo.class.php'; require '../library/SiteFacil/config.class.php'; require '../library/SiteFacil/template.class.php'; require '../library/SiteFacil/menu.class.php'; require '../library/SiteFacil/includes/configurar.php'; require '../library/SiteFacil/includes/varios.php'; require '../library/SiteFacil/includes/paginas.php'; //outros require '../library/Varios/Smarty-2.6.22/libs/Smarty.class.php'; session_start(); include VerificarLingua(); ini_set("display_errors", "1"); $Classe_ClientesServicos = new Cliente_servicos(); $Classe_ClientesServicos->CarregarDadoscliente_servicos(ID_CLIENTE_SERVICOS); $Classe_config = new config(ID_CLIENTE_SERVICOS); $Classe_Data = new Data(); if($Classe_ClientesServicos->getEstado() == 2 || $Classe_ClientesServicos->getEstado() == 3){ include 'error.php'; exit(); } Link to comment https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795790 Share on other sites More sharing options...
PFMaBiSmAd Posted March 28, 2009 Share Posted March 28, 2009 You have two blank lines before the first <?php tag. Link to comment https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795806 Share on other sites More sharing options...
rockxl1 Posted March 28, 2009 Author Share Posted March 28, 2009 lol... it works! how is possible? blank lines? Link to comment https://forums.phpfreaks.com/topic/151461-session-vrs-phpini/#findComment-795842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.