admin管理员组文章数量:1306262
My wordpress site got hacked, I fixed the problem but had to delete the TwentyFifteen theme (the one that was hacked). The theme I was originally using was different, but the hackers hacked the TwentyFifteen theme. When I deleted the theme, I went back to the wordpress dashboard and see this:
As you can see it's not recognizing any theme and I can't activate them. Also the Homepage is blank. Any ideas on how to activate a theme via FTP?
Thanks
My wordpress site got hacked, I fixed the problem but had to delete the TwentyFifteen theme (the one that was hacked). The theme I was originally using was different, but the hackers hacked the TwentyFifteen theme. When I deleted the theme, I went back to the wordpress dashboard and see this:
As you can see it's not recognizing any theme and I can't activate them. Also the Homepage is blank. Any ideas on how to activate a theme via FTP?
Thanks
Share Improve this question asked Mar 4, 2016 at 3:30 SoulipsyzSoulipsyz 131 silver badge5 bronze badges 1- If a core theme was hacked I would contact with WordPress Security Team to report it. Please, do it. – cybmeta Commented Mar 4, 2016 at 7:12
1 Answer
Reset to default 1Issue 1: Look at your dashboard; you're not logged in as an administrator, and as a result you don't have the privileges and can't activate themes or plugins.
With adminer or phpmyadmin, check your wp_usermeta
table for your user and be sure the wp_capabilities
key is for an admin: a:1:{s:13:"administrator";s:1:"1";}
Or, add a new admin via SQL:
INSERT INTO `*yourdatabasename*`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('999999', '*yourusername*', MD5('*password*'), '*yourfullname*', '*youremail*', '*http://example*', '2016-01-01 00:00:00', '', '0', '*yourfullname');
INSERT INTO `*yourdatabasename*`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '999999', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
Replace *examples*
with user name, real name, password (in plain text), etc. The user_id
is set to 999999 to avoid collisions with existing user IDs.
Issue 2: Be sure you have carefully followed FAQ - My Site Was Hacked - WordPress Codex. You may not have done a complete job cleaning the hack. Then take a look at the recommended security measures in Hardening WordPress - WordPress Support and Brute Force Attacks - WordPress Codex
本文标签: ftpWebsite Got HackedFixedNow Cannot Activate Theme
版权声明:本文标题:ftp - Website Got Hacked - Fixed - Now Cannot Activate Theme 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741801490a2398251.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论