Wordpress 2.7.1 Upgrade Tip

April 1st, 2009

brunette_screaming

Over the weekend, I had the pleasure of upgrading one of my sites from Wordpress 2.7 to Wordpress 2.7.1. Everything appeared to be going smoothly, as automatic upgrade worked behind the scenes to bring Wordpress up to date. When the upgrade was complete everything in my admin panel looked fine, and was fully functional.

However, when I went to check the site itself there was a problem. The front page wasn’t being served, however when visiting the site from an inbound link to an individual post, the site appeared fine.

I went through the normal gauntlet to make sure that the problem was actually with my site. I cleared the cache in Firefox and Internet Explorer and even tried accessing the site through a proxy. All three times, the browser wasn’t able to resolve the front page.

I decided I would leave the site be for a while as for some reason, issue like these sometimes resolve themselves. Umm, not the case here.

On Sunday, the site front page was working, but guess what? The site was crashing every 45-60 minutes! I tried deactivating all of the plugins, and nothing changed. However, I did notice that restarting Apache would bring the site right back up again. As the day went on, the time in between crashes got smaller and smaller, until it was at the point that the site couldn’t be live for more than 30 seconds.

I decided to enlist the help of my host Media Temple. From what they could see, something was generating open connections in MySQL and the connections were not closing. As these open connections piled up, they ultimately lead to the site crashing.

Media Temple suggested that I make some adjustments using SSH, such as increasing the maximum connections to 250 with the hope that it would give the server more time for the connections to close. Nope, that didn’t help, but I sure had a lot of fun reading the documentation on shell commands.

Now before I get to the solution, here are two of the errors I was seeing:

When visiting the site, I was getting the error message “error establishing a database connection“. I would then restart Apache, and in my Plesk control panel I would see…

*Service is not available now, probably your Plesk is misconfigured.
Contact Your provider for details.
Internal Plesk error occurred: Unable to connect to database: mysql_connect() [< a href='function.mysql-connect'>function.mysql-connect]: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)*

The Solution

A big round of applause to my buddies at Grand Master B and Buzz Pirates for suggesting the following to resolve the issue.

1. Disable wp-cache (super or original) from the WP Admin screen.
2. Stop Apache
3. Delete the entire wp-content/cache directory, as well as the wp-content/wp-cache-config.php and wp-content/advanced-cache.php files
4. Delete the wp-content/plugins/wp-cache and/or wp-content/plugins/wp-super-cache directories.
5. Remove any wp-cache rewrite rules from /.haccess file
6. Start up Apache.
7. Make sure everything is working.
8. Reinstall wp-super-cache from scratch. Be sure to get the latest version.

That’s it! How simple was that? If you find this solution useful, feel free to leave a comment or link back to this post.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • E-mail this story to a friend!
  • Reddit
  • StumbleUpon

Big Thanks To The Truth

March 30th, 2009

Paul Pierce Suite

Wow. The Celts put on a great show tonight at the Garden. Best of all, I had the chance to sit in Paul Pierce’s suite, compliments of the Truth himself and Twitter. Also I happened to bump into my friend Maureen who works in premium ticket sales, and the Celtics won, so overall it was a great night. FYI, if you’re company hasn’t rented a suite at the Garden for a C’s game yet, Maureen is the girl you want to talk to (shoot me an email and I’ll put you in touch with her).

So the game was awesome, Big Baby deserves some Band-Aid endorsement money after the performance he put on, and everyone in the suite had an absolute blast. Just want to give a huge thanks to the Truth, and if you haven’t done so, join Twitter and follow the man immediately.

Also, feel free to follow me on Twitter by clicking here to go to my profile.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • E-mail this story to a friend!
  • Reddit
  • StumbleUpon

Paul Pierce Gives Away Celtics Tickets Via Twitter

March 29th, 2009

Paul Pierce meets Twitter users

This morning I received an email from a buddy saying that Paul Pierce (@paulpierce34) was now on Twitter and he was going to give away tickets to the first 5 fans to meet him at the player’s entrance of the Garden. The only catch was that you had to be wearing a Paul Pierce jersey, and you had to say the password, which was “Truth”.

From @paulpierce34

aight on my way to arena b there at 430 with my jersey players entrance free tiket to game only got 5 left hurry up passcode is truth

At first I wasn’t going to go, as I figured I’d be standing there with a couple other saps while someone took a picture of us and posted it on Twitter with the caption “Look at these suckers”. Not the case.

When I arrived there was already a group of five fans, which quickly grew to about ten. Almost exactly on the dot at 4:30, a Range Rover with California plates and tinted windows pulled up. The window rolled down and Paul Pierced asked us what the password was. Everyone shouted “Truth” and he started dishing out tickets.

It got slightly chaotic as there was no real line to get a ticket. The crowd just closed in on the Truth and people started reaching out for tickets. Luckily, I was able to score a ticket and will be heading up to the Truth’s suite in about an hour.

So if you were wondering, yes, Paul Pierce is on Twitter.

Paul Pierce meets Twitter usersPaul Pierce meets Twitter usersPaul Pierce meets Twitter users

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • E-mail this story to a friend!
  • Reddit
  • StumbleUpon

For Those of You Asking “What is Twitter”

March 26th, 2009

This video has been making the rounds lately, and it’s perfect for those of you who don’t know what Twitter is. Remember, always choose your words wisely.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • E-mail this story to a friend!
  • Reddit
  • StumbleUpon

Mashable Monetizes Using Twitter

March 26th, 2009

Monetizing Twitter

As Twitter continues to grow and attract more and more users wondering why anyone would want to know that they just sneezed, the big question has been how to monetize the three year old site. Some have argued for paid placements, which would be about as annoying as receiving random text messages from Nike on your cell phone. Others have gone for the pay to play philosophy, where users could pay a fee for a premium account complete with a Twitter concierge service. Well not really, it was all tongue in cheek.

In the meantime Mashable.com has stepped up to offer an innovative way for companies to advertise on their site. They’re now syndicating Twitter accounts in their sidebar under the heading “Twitter Brand Sponsors”.

There’s a lot to love about this concept, particularly the fact that this is dynamic and engaging advertising. As a site visitor, I’d much rather see a small icon with a Tweet than a banner with a call to action.

Hopefully when Mashable has more data, they’ll provide share some insight as to the click through rates of banner advertising compared to the syndicated Twitter feed advertising.

Firms Seek Profit in Twitter’s Chatter [NYT]

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • E-mail this story to a friend!
  • Reddit
  • StumbleUpon