This is all new for me. My wordpress website is throwing this error...
[25-Jun-2015 11:28:24 UTC] PHP Warning: Creating default object from empty value in /.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php on line 229
And unwanted ads started showing up everywhere. So I tried to log into my admin panel to see if it was a plugin problem and it throws this error...
[25-Jun-2015 13:53:42 UTC] PHP Warning: Creating default object from empty value in /.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php on line 229
[25-Jun-2015 13:53:42 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php:229) in /.../public_html/chrismarsh.us/wp-includes/pluggable.php on line 1178
Can anyone help me out? The website is chrismarsh.us
Double-check your wp-config.php and your /wp-content/themes/StandardTheme_272/functions.php to make sure there is no whitespace before the
<?php
part of the file. I don't know why that happens but it does happen sometimes and it will throw "PHP Warning: Cannot modify header information - headers already sent by..." as a result.Not saying this is the only possible reason but it is one possible reason based on what I've encountered working with WordPress.