Boas tardes,
lamento não ter respondido mais cedo, mas só hoje consegui ter tempo para eventurar-me pelo FTP e começar a reparar a coisa.
Reinstalei o WP e consegui pô-lo a funcionar. Depois mudei o theme e agora aparecem-me estes erros sempre que tento fazer login enquanto user ou no painel:
Warning: Cannot modify header information – headers already sent by (output started at /home/luxinoxn/public_html/wp-config.php:1) in /home/luxinoxn/public_html/wp-login.php on line 415
Warning: Cannot modify header information – headers already sent by (output started at /home/luxinoxn/public_html/wp-config.php:1) in /home/luxinoxn/public_html/wp-login.php on line 427
Warning: Cannot modify header information – headers already sent by (output started at /home/luxinoxn/public_html/wp-config.php:1) in /home/luxinoxn/public_html/wp-includes/pluggable.php on line 678
Warning: Cannot modify header information – headers already sent by (output started at /home/luxinoxn/public_html/wp-config.php:1) in /home/luxinoxn/public_html/wp-includes/pluggable.php on line 679
Warning: Cannot modify header information – headers already sent by (output started at /home/luxinoxn/public_html/wp-config.php:1) in /home/luxinoxn/public_html/wp-includes/pluggable.php on line 680
Warning: Cannot modify header information – headers already sent by (output started at /home/luxinoxn/public_html/wp-config.php:1) in /home/luxinoxn/public_html/wp-includes/pluggable.php on line 896
Andei a pesquisar e algumas das sugestões dadas a este tipo de erro remetem a espaços nos ficheiros php. Duvido que seja esse o caso, pois eu nem alterei a maioria dos ficheiros php. Estão como por defeito.
Estas são as linhas de código referidas nos erros:
wp-login.php
(linha 415) header(‘Content-Type: ‘.get_bloginfo(‘html_type’).’; charset=’.get_bloginfo(‘charset’));
(linha 427) setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
pluggable.php
(linha 678) setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
(linha 679) setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
(linha 680) setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true);
(linha 896) header(“Location: $location”, true, $status);
Parece algo relacionado com cookies e com o header. Não faço a menor ideia…
Obrigado pela atenção.
PS: isto deixou-me impedido de aceder ao painel, pelo que não poderei fazer grande coisa com as configurações…