Hi Cleaus,
The White Screen means an error occurred on your theme’s code.
Make sure you turn the mode debug as on and you’ll see what error is showing up. Alternativalley, you can have a read on Logs Errors.
This Article might help you: http://codex.wordpress.org/Debugging_in_WordPress.
Probably, a simple: define(‘WP_DEBUG’, true); will make easy for you.
Thread Starter
cleaus
(@cleaus)
Hi Leo,
Thank you for your quick reply. I appreciate that a lot.
I have added that and got this message:
“Warning: Cannot modify header information – headers already sent by (output started at /Users/CleausNB/Sites/wordpress/wp-content/themes/egtheme/functions.php:12) in /Users/CleausNB/Sites/wordpress/wp-includes/pluggable.php on line 1173”
Does this mean the custom header info i tried adding to the functions.php is wrong? I added:
<?php
$args = array(
‘width’ => 150,
‘height’ => 150,
‘default-image’ => get_template_directory_uri() . ‘/images/header.jpg’,
‘uploads’ => true,
);
add_theme_support( ‘custom-header’, $args );
Also, how come i do not have the problem on the live site?
Thank you again for your assistance! 🙂
Hi @cleaus,
No worries!
So, I believe your server is just hiding the bug, check their error logs file.
Warnings are just warnings and they are goot to help us with possible bugs, that’s why probably your Live is working fine, still passing through the warning.
Anyway, focusing on the problem, this warning is telling you that something else is showing before the header settings.
We aren’t allowed to print out anything before change the header (like a Header:Location…) and that’s why the warning and the problem.
Read more here: http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php#answer-8028987
I realised that your function is on line 12 as seems be fine, which means the error must be before that. Can be a plugin as they load before the functions.php also.
A good way to debug is disabling one plugin by one and try if works or not. Also, I like to check line by line using the exit(), like so:
functions.php
<?php
$foo = 'bar';
exit('stop here and say foo is ok');
$example = 'testing';
?>
After I try the next one:
<?php
$foo = 'bar';
$example = 'testing';
exit('stop here and say example is ok');
?>
Do that until the line 12 and let’s see if the error is in functions.php or in a plugin.
PS: Try log out and log in and check if the bug still working/not working in Live and Local. The WP checks a lot of permissions for logged users before the header and this can also help on debug.
I had a similar issue with white screen when I published a page in my wordpress child theme. I found than when I created a New Page and published it my browser went to a white screen and I would have to hit the back button to get back to the admin panel where the page would be published.
I turned on the debug in the wp-config.php file (– define(‘WP_DEBUG’, true);—) and that gave me an error when I tried to publish. I subsequently found from this information that the issue was being caused by the functions.php file that I was told to create in my Child-Theme folder. When I removed the functions.php file everything was back to normal.
Try it and see if it sorts out your problem.
Another Issue I was getting working with MAMP and WordPress was an inability to access the wp-admin area of the website to add pages, themes etc. After a bit of searching I found an article which informed me that the issue was being caused by the php.ini file which can be found at this path:
/Applications/MAMP/conf/php.5.4.4/php.ini
Do a search for zlib.output_compression = Off
Once you find this change it to
zlib.output_compression = On
After you save it Restart your MAMP Apache Servers and try again.
I know this is an extra bit of info and I hope people are not offended when I publish it here.
The Author of the article is:
http://simon-davies.name/mamp/wp-admin-broken-after-updating-wordpress
This error usually results into a plain white screen with no error message which makes it the most puzzling because you have no clue where to look and what to fix. Most of the time it is caused when a script exhausts PHP memory limit.
Solution
A Plugin is causing compatibility issues. Login to your website via FTP or cpanel. Locate the folder wp-content/plugins and rename the Plugin folder one by one. This will deactivate all of your Plugins.
Your Theme may be causing the problem. If the problem seems to be exist by doing the above method then no problem from plugin, now you should activate the default theme WordPress Twenty Fifteen Theme. By navigating to the /wp-content/themes/ folder. Rename the folder of the active Theme.
related questions & solutions:click here
more info:http://www.prapti.co.uk/
I am a similar problem. I downloaded a WordPress theme. I have loaded it to the local server. I can login to the admin panel.
However, when I try and customize it, it just keeps loading and it doesn’t actually show anything. I’ve waited up to 30 minutes and the loading icon just remains.
Please assist. . .
If you are getting a blank white screen when you call your them in the localhost. This issue I found can be caused by the functions folder in your theme. Check your functions folder and see if there is any white space below the last line of code. If there is remove the excess space or lines of nothing and see if this fixes the error. I had this issue using wordpress and the zerif lite theme, when we added a function to the functions folder and there was excess white space. We are working on a new version of this website [irrelevant link moderated] – I hope this helps you.
I too had this exact issue, and thanks to a few threads I figured it out. I had the extra lines in my .php file (Child Theme folder). Once I deleted those, all is well.