Cant login to wp-admin

Since my wordpress-instalation updated itself, i cant get access to the wp-admin page.All i get is a blank page withWar

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
  • It looks like the problem is in your theme. The simplest way to make this work would be to rename the sjr directory and symlink it to a default theme e.g. twentynineteen instead. However that would remove the theme from your site in the meantime. You could also make a second copy of the site, change the theme files in that copy only and add WP_SITEURL and WP_HOME to the copy's wp-config so that it works without redirecting you - you should then be able to log into the admin site on the copy to investigate. Or you can just try debugging your theme and hopefully spot the error there. – Rup Commented Oct 15, 2019 at 10:54
  • Incidentally since the output from the first line of the theme I half suspect someone's put some malicious code into your theme. The first line of /www/htdocs/v084729/wordpress/wp-content/themes/sjr/functions.php should just be <?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
  • activate another theme and problem should go away. If the problem is with your theme, then make sure there is no space/new line before opening php tag (<?php). If that's not the case, you will have to consult with a professional. – maverick Commented Oct 15, 2019 at 10:57
Add a comment  | 

3 Answers 3

Reset to default 1

Compromised 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

相关推荐

  • Cant login to wp-admin

    Since my wordpress-instalation updated itself, i cant get access to the wp-admin page.All i get is a blank page withWar

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信