Thursday, September 25, 2014

Fixing My Missing WordPress Comments AND "Cannot modify header information" Error

Fixing My Missing WordPress Comments AND "Cannot modify header information" Error

This piece addresses how I fixed my missing WordPress site Comments AND the remedy for the error message "Warning: Cannot modify header information - headers already sent by," under my THESIS 1.8.5 version installation.

-

All WordPress Comments Are Gone, What To Do?


I have no clue when my website comments went away, but it seemed that this problem started when WordPress updated itself to 4.0 on my website, www.brusimm.com. This update did NOT agree with my Thesis v1.8.5 installation, at all and that, was the problem. At least for me, after much deliberation and research.

So if you're a Thesis user, don't freak out and blame any one plugin, don't reinstall the update. Don't go off deactivating and reactivating every single plugin attached to your site or reinitializing plugin folders.

Nope, that was about a week's worth of my time tinkering with all that noise.  When nothing worked, I focused my attention on looking for the error, in conjunction with my installed Thesis framework, and low and behold, I found an answer.

-

NOTE: This worked with my Thesis 1.8.5 installation. I do not believe it will work for any other version.

- Using an FTP client, navigate to " /wp-content/themes/thesis_185/lib/classes/ " folder.

- Back up then edit your "comments.php" at line 187 or this exact set of lines, whereever it may occur:

The ORIGINAL looks like this:
$wp_query->comments_by_type = &separate_comments($wp_query->comments);
    $_comments = $wp_query->comments_by_type['comment'];

The NEW VERSION looks like this:

$wp_query->comments_by_type = separate_comments($wp_query->comments);
    $_comments = &$wp_query->comments_by_type['comment'];

If you look carefully, all that actually happened was that the ampersand "&" moved from "&separate_comments" to "&$wp_query->comments_by_type" in the section.

That's it... a simple move of the Ampersand.

Wednesday, September 17, 2014

WORDPRESS Auto Update Seems To Be Tripping Users

I was leery about an application that automatically updates itself. I've turned it off on my phone and yet here I and many others are, sitting, suffering from an automatic update to Wordpress 4.0.

For me, the problem was multi-fold.  Using the soon-to-be deleted Thesis theme, all my comments seem to be present but can't be seen. After spending a week tooling around with a series of useless but well meaning suggestions, I hit on something that got some of my comments back, but not all.

Then there's the thing about images.

It seems that since Wordpress 4.0 came on the scene people can't upload or see their website images via their managing control panel.

The fixes are typical... cancel, kill or update various plugins.  But to shame the plugin when the update to the core process has an obvious issue seems afoul.

Plus, I have no slider or slide-bar next to a post I'm creating or editing.

Personally, I'm good with getting a version that works and not being forced to the next best thing. But the WordPress development community seems to have another mind about the matter and their decisions are presently impacting this hobby blogger. I just don't have time to be dicking around with turning plugins on and off or toying with editing php files.

WordPress was stable when I had control. Now we're all suffering with greyed out place holders for images, not seeing our uploaded images and what not.  Give us our control back people!

So if you can't see your comments (and you're one of the abandoned Thesis 1.8.5 users), can't see your uploaded pics, or don't have a slider bar in your editing window, thank WordPress.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Follow or subscribe to Consumer Bits on

Palo Alto's Water Police

The city of Palo Alto is looking to spend an extra $29k from their budget to deploy what they call "Water Police."

So know we know how much they're going to pay the guy.

But what has me confounded isn't what Palo Alto is doing, but the focus on the general public.

If the public was a big user, I'd understand. But I've seen on several different sites where we make up only about ten percent of California's water usage.

That leaves big business, such as agriculture and what not, as the true majority users.

I'm sure "big business" is doing their part, even if we're not hearing about it.  Right?

In the meantime, all the restrictions and focus seem to be on the average Joe as they get pounded over and over about this dire situation. Right now most parks have backed off watering.  Most... some still seem pretty green around town here.

And then there's the bit I heard a few months back when this all started, where here in the Bay Area I heard one news report that said water usage went up versus last year, a small percentage. Way to go Bay Area... 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Follow or subscribe to Consumer Bits on

Thursday, September 11, 2014

Always Remove Your Stuff from Your Bicycle When...

For several years now I've been taking my bicycle to Menlo Velo in Menlo Park, CA. They do a bang up job, no matter what you bring them. They're friendly and always willing to help out if they can. It's a very popular shop, so they sometimes have a week's waiting list to get things done.

That was my "this is an awesome place" disclaimer up front.

But what I want to warn you about today, and I'm sure this can apply to any bike shop, is that if you like your gear on your bike, TAKE IT OFF before leaving it with them.

On two separate visits, I lost an item from my bike during the work process, and they were irreplaceable, in the scheme of things.

Last year they did work on my bike, and they needed to take things off my bike. One of those things was a custom light bracket. I had already pulled the light off it, but left the bracket.  But when I got the bike back, they had replaced all the standard gear and brackets, but because this was the odd man out, so to speak, I guess they didn't think it went on my bike.

Then two weeks ago they were working on my bike, and they removed my two tail lights, but only put one back on. The one they left off was a gift from a friend, from almost 15 years ago. It had more sentimental value then anything... even if it was still working.

And Menlo Velo doesn't keep a box of extras laying around. So I was out one sentimental light.

Suffice it to say, all I'm truly saying is if you value it, don't leave it on your bike when you take it to the shop. If it's just another gadget, who cares. But if not, pay heed and take care.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Follow or subscribe to Consumer Bits on