How can WP White screen be solved

Akinyande ayo

BANNED
Joined
Feb 5, 2017
Messages
2,654
Reaction score
1,080
I need an explanation of this error, WordPress site is showing white blank page ( White screen of dealth)

[13-Jul-2022 03:52:16 UTC] PHP Warning: fileperms(): stat failed for /home/website/public_html/mywebsite.com/index.php in /home/website/public_html/mywebsite.com/wp-admin/includes/file.php on line 202

Anyone that can guide me to fix this error.
 
post the contents of /home/website/public_html/mywebsite.com/wp-admin/includes/file.php enclosed in php code like this
PHP:
<?php content
 
Issue with file permissions (your theme wants to write something and it can’t). Are you trying to host it yourself? Try chmoding the project folder to 644.
 
Reinstall the WP core and this should be fixed, the file is either modified or deleted and hence this error. You can install WP Core using wp-cli if you have access to the terminal in cPanel or you can use WP Kit
 
post the contents of /home/website/public_html/mywebsite.com/wp-admin/includes/file.php enclosed in php code like this
PHP:
<?php content
I've tried this and didn't work
When this start occurs? Have you installed any incompatible plugins?
Nope, my host migrated my sites to another server, and while other site worked fine, this particular site is showing blank white screen
Issue with file permissions (your theme wants to write something and it can’t). Are you trying to host it yourself? Try chmoding the project folder to 644.
Nope, server migration. My bad, I don't have the technical knowledge to chmode the project folder
Which php version?
Not sure, but should be 7.4 or more, and my PHP setting is now 8.0 as some of my sites not working in PHP setting lesser than 7.4
Reinstall the WP core and this should be fixed, the file is either modified or deleted and hence this error. You can install WP Core using wp-cli if you have access to the terminal in cPanel or you can use WP Kit
Can you help with the default wp admin/ includes/file.php so I can paste it and save. Would this work?
 
Can you help with the default wp admin/ includes/file.php so I can paste it and save. Would this work?
It is a core file of wp. Don't touch it. ;)
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/file.phpThe problem like I said is with folder permission. If you don't know how to do chmod, ask your provider. It's a 5 second job for them. Your cpanel should let you do the same as well (try opening the file browser and right clicking on the project folder at /home/website/public_html. It is named mywebsite.com according to your original post).
 
I've tried this and didn't work

Nope, my host migrated my sites to another server, and while other site worked fine, this particular site is showing blank white screen

Nope, server migration. My bad, I don't have the technical knowledge to chmode the project folder

Not sure, but should be 7.4 or more, and my PHP setting is now 8.0 as some of my sites not working in PHP setting lesser than 7.4

Can you help with the default wp admin/ includes/file.php so I can paste it and save. Would this work?
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/file.php
This is the original file.php download it and replace the one you have with this, if you face any error just let me know
 
Back
Top