Recent Topics

1 Sep 11, 2008 14:52    

oi people...

digam-me uma coisa...

acabei de instalar o blog acabadinho de tirar deste portal e dá-me o codigo do "Header"

Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 159
foo
Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 159
foo
Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 159
foo
Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 159
foo
Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 159
foo
Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 159

Warning: Cannot modify header information - headers already sent by (output started at /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php:158) in /home/www/balsanovaascdr.freehostia.com/skins_adm/_html_header.inc.php on line 40

e fui ver nas faq e de facto vem lá alguma coisa sobre isso mas o que vem,

Errors
[edit] "Cannot modify header information"

The PHP warning

Warning: Cannot modify header information - headers already sent

is caused, because there's output (from PHP) already, when there's a call to e.g. header(), which cannot send a HTTP header then anymore.

This is usually caused by e.g. adding newlines at the end of some file you've manually edited (e.g. a configuration file in /conf).

Usually the cause of the error is given in the error message itself:

Warning: Cannot modify header information - headers already sent by
(output started at /path/to/file/with/output:LINE)
in /path/to/file/with/warning on line X

Take a look at /path/to/file/with/output, especially at/around line LINE.

If there's no "output started at" info given, you're kinda out of luck. The only possible solution (apart from taking a look at the file's you've modified) seems to be adding manually echo "foo"; statements into the code to see if the error already gets triggered here (then the /path/to/file/with/warning and "line X" would change accordingly). 

mas fala lá que "(apart from taking a look at the file's you've modified)" mas a instalação é nova e ainda não tive tempo para mexer em nada...

se alguem souber me diga alguma coisa tá...

um abraço...

P.S. podem ir ver no meu site, mesmo... http://balsanovaascdr.freehostia.com

2 Sep 11, 2008 17:31

Esquisito cara, vou ver se arrumo um tempo pra dar uma olhadinha nisso, até amanhã.

3 Sep 12, 2008 11:37

Walter wrote:

Esquisito cara, vou ver se arrumo um tempo pra dar uma olhadinha nisso, até amanhã.

OK THKS...

4 Sep 30, 2008 17:07

e então ainda nada...

estou mesmo aflitinho, e não preciso de "evacuar"...

se poder arranjar uma ajudinha, agradecido...

5 Sep 30, 2008 19:20

Se deve a questões de retorno por referência do php5.

Sugestões:
Edite o /home/www/balsanovaascdr.freehostia.com/inc/collections/model/_blogcache.class.php

Substitua function & get_by_url (linha 99) Por function get_by_url (sem o &)

Em /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectcache.class.php, a linha 151, também retirando o & em function & new_obj( $row = NULL )

Creio que isso solucionará seu problema.

[]'s
- Walter

6 Oct 01, 2008 20:31

walter foi na muche...

mas dá-me agora esse erro:

Notice: Only variables should be assigned by reference in /home/www/balsanovaascdr.freehostia.com/index.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at /home/www/balsanovaascdr.freehostia.com/index.php:59) in /home/www/balsanovaascdr.freehostia.com/inc/skins/_skin.funcs.php on line 379


Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/_core/model/dataobjects/_dataobjectlist2.class.php on line 195

Notice: Only variable references should be returned by reference in /home/www/balsanovaascdr.freehostia.com/inc/items/model/_itemlist.class.php on line 298

7 Oct 01, 2008 21:03

O ideal seria vc poder mudar a configuração do php.ini e colocar allow_call_time_pass_reference como Off. Isso resolveria o problema.

Sem isso, você precisa tirar o & antes das definições de funções.

As que são ditas aí, são em

_dataobject2.class.php em function & get_next() (linha 187) (mas tem mais funções nesse arquivo)

e em _itemlist.class.php na função get_item

Uma opção simples seria desabilitar o reporte de erros no nivel notice e warning.

Para isso, em conf/_advanced.php, onde tem:
error_reporting( E_ALL );
Substitua por
error_reporting( E_ALL & ~E_NOTICE| E_WARNING );

De um toque quando estiver tudo ok!

8 Oct 02, 2008 11:55

ficou um brinquinho... muito obrigado...

espero não chatear mais...

:oops:

9 Oct 02, 2008 15:24

Sem problema, não é uma chateação não!


Form is loading...

Secure CMS – This forum is powered by b2evolution CMS, a complete engine for your website.