← WordPress

Linha 866 pluggable.php

Lida 2115 vezes

Offline

Klash 
Membro
Mensagens 17 Gostos 0
Troféus totais: 17
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 3 Level 2 Level 1 10 Posts First Post Signature Karma

Warning: Cannot modify header information - headers already sent by (output started at /home/XXX/XXX/XXX/wp-includes/pluggable.php:1) in /home/XXXX/XXXl/XXX/wp-includes/pluggable.php on line 866

Como resolvo isso?

function wp_redirect($location, $status = 302) {
   global $is_IIS;

   $location = apply_filters('wp_redirect', $location, $status);
   $status = apply_filters('wp_redirect_status', $status, $location);

   if ( !$location ) // allows the wp_redirect filter to cancel a redirect
      return false;

   $location = wp_sanitize_redirect($location);

   if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
      status_header($status); // This causes problems on IIS and some FastCGI setups

LINHA 866:    header("Location: $location", true, $status);
}
endif;


Também no final do arquivo, linha 1743, não tem <?
Precisa disso?
OBS.: Coloquei e continuou o problema, só quero saber se é necessário.

Obrigado!
Offline

Klash 
Membro
Mensagens 17 Gostos 0
Troféus totais: 17
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 3 Level 2 Level 1 10 Posts First Post Signature Karma

UP!
Alguém ajuda?
Offline

kaydara 
Membro
Mensagens 616 Gostos 1
Feedback +1

Troféus totais: 21
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 4 Level 3 Level 2 Level 1 500 Posts 100 Posts

isso quer dizer que já houve output de algo antes dessa linha, é isso que tens de resolver
Offline

Pedro Lopes 
Beta tester
Mensagens 3568 Gostos 18
Feedback +6

Troféus totais: 32
Trófeus: (Ver todos)
Level 6 Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

Faz download do WordPress e reenvia de novo esse ficheiro...