Ask your WordPress questions! Pay money and get answers fast! (more info)

Need help optimizing site with a LOT of traffic. Keeps crashing. WordPress

Greetings,

Recently launched a WP site that is getting a lot of traffic.

The site is crashing quite a bit and according to my hosting, it is due to excessive PHP requests, which go beyond the allowed limit.

Among the obvious optimizations I am currently performing on my website to hopefully improve its performance, they pointed out at an error that keeps showing up in their error logs.

It's the following:

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/elvocero/public_html/wp-includes/functions.php:1110) in /home/elvocero/public_html/wp-includes/functions.php on line 1095

I have searched for a couple of hours, but haven't really gotten to the bottom of it, since it's referring to a core WP file, and not a plugin, or anything that could have been wrongfully edited.

I need help figuring this out.

Website is: elvocero.com

Let me know which other information you need to help me debug this.

Thanks

Answers (6)

2014-01-05

Arnav Joy answers:

open your functions.php file and at top of it write following.

@ob_start();


plaxplax comments:

wp-includes/functions.php
or my theme's functions.php?


Arnav Joy comments:

theme's functions.php


plaxplax comments:

thanks. made the change. give me 24hours or so and see if it's fixed.


Arnav Joy comments:

ok , good to hear that it is fixed , let us know if you have any problem.


plaxplax comments:

it isn't fixed yet. i will monitor it and see if i get the error again or not. give me til tomorrow.

2014-01-05

Hariprasad Vijayan answers:

Hello,

You may have blank spaces or blank lines before an opening <?php tag or after a closing ?> in your php files. Remove those blank spaces/lines.

Check this link : http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

2014-01-05

Abdelhadi Touil answers:

Hi.
Do you use a Cache plugin or not?
You should use one, and you should optimize your database and delete revisions because they make database bigger.
You can test using Quick Cache plugin as it's easy to use:

http://wordpress.org/plugins/quick-cache/

and it's good to read and use plugin described here:

http://www.wpexplorer.com/optimize-wordpress-database/

Good luck!


plaxplax comments:

yes, I use Super Cache.

2014-01-05

phppoet answers:

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/elvocero/public_html/wp-includes/functions.php:1110) in /home/elvocero/public_html/wp-includes/functions.php on line 1095

although this error directs you to wordpress core , in most of cases such a error is caused by a some plugin. You should disable all the plugin first and then enable each one by one and check the error to get the conflicting one .

regards

2014-01-06

Francisco Javier Carazo Gil answers:

If your host allow you to use a it, use Varnish. This is a cache in the server level, so much better than WP Super Cache (you can use both at the same time). It is a proxy software and your site will be able to support much more traffic and the speed will be increased a lot.

Try it or talk with them if you can: https://www.varnish-cache.org/

2014-01-08

Bob answers:

is it fixed?