Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialArshdeep Singh
Courses Plus Student 8,349 PointsWordpress blog not working even the admin login Panel.
Hello, Recently my blog was attacked by malware. After scanning the website all the infected files were found in the wp-include folder. I was advised by my hosting company to replace the wp-include folder with a new one from wordpress. However now I do not see any css, entire website comes as plain html, Even the wordpress admin login page comes as plain html. Please help. Thanks
3 Answers
Craig Watson
27,930 PointsHi Arshdeep,
Im not an expert but ive done quite a lot on wordpress on treehouse, this might not be the correct answer but its worth a shot and i dont see why it wouldn't work if not im sure Zac Gordon will help us out.
I'm thinking the wp-include folder would be subject to updates from wordpress for its latest install, its quite possible that your new wp-include doesnot marry up with the content that was kept separate and survived the malware attack.
It might be worth while grabbing your themes folder putting it to one side keeping your content away from the install, remove wordpress and reinstall the latest version and then throw back in your content.
As i say this is what id be trying to do not what is necessarily the correct way to fix your issue but i hope ive been of some help if simply tagging Zac in the Post.
Good Luck Craig
Craig Watson
27,930 PointsIm quite sure Arshdeep, the way to obtain your content from wordpress needs to be done through c panel phpMyAdmin, this is because the data (posts n pages) is stored on the database rather than as content on html.
Is the above something you have access to ?
If so I personally would be taking a backup of the every file in this situation with the thought to clear it up once I know I have completed the changes.
Your sites theme if old will have been subject to updates along the way and it may also be possible that it is not quite up to scratch with the new install you are about to do (just a thought I'd look into this a little more) , link this link should have some useful pointers not to miss out on well worth a read before any steps are taken.
From what I can gather off the link the process should be quite simple and really affective as you will have all the benefits of the new and updated wordpress along with some fantastic themes.
Let me know if you have access to php My Admin then I can do a few little bits of digging on a dummy site on my local host to make sure the right steps are taken to prevent any loss of content but the Link should sort just about everything out for you!
Hope This Helps !!
Zac Gordon
Treehouse Guest TeacherIt sounds to me like the new wp-includes folder was not completely uploaded. You may want to try deleting the current one and uploading again.
Hopefully that will let you regain access to the control panel. It is correct though that your content lives in the database and you will need to back that up through a tool like phpMyAdmin. You hosting company can probably also help you with this.
Arshdeep Singh
Courses Plus Student 8,349 PointsArshdeep Singh
Courses Plus Student 8,349 PointsThankyou Craig, if I want to re-install wordpress, what is the main folder should I make a backup for, where all the articles and comments are saved. I do not want to lose any data on the website, as it is a very old and popular blog.