Peter Fletcher

  • About
  • Blog
  • Contact

How plugins can quickly create headaches

January 17, 2011 by Peter Fletcher

Tweet

Edit: Since publishing I’ve discovered that AddToAny have pushed a release that sorts out the issue described here. That was quick.

I’ve just been gifted a blog topic for the day. As I went to log into WordPress I got the following message:

Cannot modify header information – headers already sent by…

This message usually happens when a WordPress plugin contains some bad code. In this case it looks as though the problem is with the Add-to-any plugin. That plugin adds some social sharing buttons into the bottom of each post.

Because the problem stopped me from getting into my site’s backend I wasn’t able to use the built-in WordPress plugin manager to deactivate the plugin. Instead I deleted all the plugin files using my FTP client and that’s fixed the problem.

It may be unfair for me to blame Add-to-any 100 percent. There’s a possibility that the problem was caused by a conflict with the WPSuperCache plugin. In any case now that I’ve deleted Add-to-any I’ll wait a few days and then reinstall the plugin. It’s only a few minute operation, which is one of the things I love about WordPress.

What it does highlight is the importance of keeping plugins to a minimum and using only the best. Add-to-any is a great plugin – as is WPSuperCache but this is software we’re dealing with and there’s always a chance of human error in building the code. Another reason to keep the number of plugins to a minimum is that it reduces maintenance time. Every new plugin means another lot of maintenance and upgrades and there’s always a chance that one of those upgrades will go south as it appears has happened in this case.

For the geeks amongst us  here’s the error messages the plugin threw up.

Warning: Cannot modify header information - headers already sent by (output started at deleted/wp-content/plugins/add-to-any/services.php:2) in deleted/wp-login.php on line 337

Warning: Cannot modify header information - headers already sent by (output started at  deleted/wp-content/plugins/add-to-any/services.php:2) in deleted/wp-login.php on line 349

Warning: Cannot modify header information - headers already sent by (output started at  deleted/wp-content/plugins/add-to-any/services.php:2) in deleted/wp-includes/pluggable.php on line 690

Warning: Cannot modify header information - headers already sent by (output started at  deleted/wp-content/plugins/add-to-any/services.php:2) in deleted/wp-includes/pluggable.php on line 691

Warning: Cannot modify header information - headers already sent by (output started at  deleted/wp-content/plugins/add-to-any/services.php:2) in deleted/wp-includes/pluggable.php on line 692

Warning: Cannot modify header information - headers already sent by (output started at  deleted/wp-content/plugins/add-to-any/services.php:2) in deleted/wp-includes/pluggable.php on line 890

Related posts:

  1. My Experiment With The Facebook Comments Plugin Edit: Facebook Comments for WordPress plugin has released an upgrade...
  2. Are You Having Problems Posting The Right Thumbnail to Facebook? I manage two almost identical WordPress blogs. Both use a...
  3. The WP-Table Reloaded Plugin – why I love it! There is a lot to love about WordPress. It’s easy...
  4. BackupBuddy – the ultimate backup solution for self-hosted WordPress sites I just installed the BackupBuddy WordPress plugin that’s set to...
  5. The morning after: Kalgarin in the early light. Last night Rita and I attended a 21st on a...

Filed Under: Blogging Tagged With: Add-to-any, blog maintenance, plugins, Wordpress, WP-SuperCache

Comments

  1. module17 says

    January 18, 2011 at 3:04 pm

    I also experienced the Headers issue with the AddToAny plugin on one of my client’s blogs. The problem was with some white-space at the top of services.php. There cannot be any data sent to the browser before headers are sent, ie. Session_start. Removing this white-space fixes the issue and the admin back-end is available again.

  2. Peter Fletcher says

    January 19, 2011 at 2:04 am

    I suspect that was exactly my problem. Thanks for sharing the solution.

  3. Peter Fletcher says

    January 19, 2011 at 2:04 am

    I suspect that was exactly my problem. Thanks for sharing the solution.

Trackbacks

  1. The 5000/365 Report | Peter Fletcher. New media strategist. says:
    January 24, 2011 at 10:20 am

    […] To create advanced functionality I’ve installed a number of plugins and one of those gave me a headache last week. It’s all sorted now. But my headaches pale in comparison to the challenges some […]

About Peter

Speaker, trainer and coach. I write about living, loving and working better. Love a challenge. More...

Subscribe

Get the latest posts delivered to your inbox.

Recent Posts

  • The Perth Property Market: Free Drinks For Everyone
  • Perth Property Market Performance – W/E 22 August 2021
  • Perth property market report
  • Mandating madness: The case against compulsory e-conveyancing
  • PEXA: Stop treating conveyancers like idiots

Location

You can find me at Residential Settlements in Burswood.

5/170 Burswood Road
Burswood WA 6100

Let’s catch up

If you're ready to take your business to the next level, get in touch with me now.

Send me an email using the contact form or call me direct on 0419 538 838.

Connect

Connect with me on one of these social networks.
  • Facebook
  • LinkedIn
  • Tumblr
  • Twitter

Copyright © 2022 · Agency Pro Theme on Genesis Framework · WordPress · Log in