Since my wordpress-instalation updated itself, i cant get access to the wp-admin page. All i get is a blank page with
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v084729/wordpress/wp-content/themes/sjr/functions.php:1) in /www/htdocs/v084729/wordpress/wp-includes/pluggable.php on line 1251
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v084729/wordpress/wp-content/themes/sjr/functions.php:1) in /www/htdocs/v084729/wordpress/wp-includes/pluggable.php on line 1254
Can anybody help me?
Thanks in advance!
Kevin
Since my wordpress-instalation updated itself, i cant get access to the wp-admin page. All i get is a blank page with
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v084729/wordpress/wp-content/themes/sjr/functions.php:1) in /www/htdocs/v084729/wordpress/wp-includes/pluggable.php on line 1251
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v084729/wordpress/wp-content/themes/sjr/functions.php:1) in /www/htdocs/v084729/wordpress/wp-includes/pluggable.php on line 1254
Can anybody help me?
Thanks in advance!
Kevin
Share Improve this question asked Oct 15, 2019 at 10:31 Kevin AKevin A 1 3 |3 Answers
Reset to default 1Compromised theme, most likely. Check theme files for inserted code, along with inserted code in other files. Change credentials everywhere (Host, database, wp admin, ftp).
Look at all files manually, plus files that shouldn't be there (like extra ICO files as in .somefile.ico
, which have php code inside. (Notice the leading dot, which indicates a hidden file, so make sure you are showing hidden files also.) Check your htaccess file also.
For the probably-compromised theme, nuke it and re-upload theme files from known good source.
A quick solution is to simply navigate to wordpress/wp-content/themes/sjr/
and rename the theme folder.
For example sjr
to sjr-backup
- this will cause WordPress to pick another theme or no theme at all. Allowing access to the admin dashboard again.
I just had this after a host migration and tried everywhere to get it back until I discovered that I needed to change the encoding of my functions.php file in my text editor from:
Encode in UTF-8-BOM
to:
Encode in UTF-8
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744911589a4600584.html
<?php
- if there's more than that's suspicious, e.g. the example here. Can you replace it with a fresh copy of the theme, and make the files read-only to the web server process (so that any remaining infection can't just put them back)? – Rup Commented Oct 15, 2019 at 10:55