Nerds at Work

RSS

Can’t Create Thumbnails in Nextgen Gallery WordPress Plugin

Written by Brian on August 15, 2010 – 9:57 am -

Ran into some weird trouble with the Nextgen Gallery WordPress plugin. Couldn’t find a lot of information to help solve the problem, so I thought I’d write up the experience for anyone else having a similar problem.

In the admin area, you can create custom thumbnails for your images. An image is supposed to pop up that you can drag a thumbnail over. But for some reason, when I opened up the window to create a thumbnail, the image didn’t appear. The image was coming up blank, like if you link to an image that isn’t there.

The actual image was there on the server, so that wasn’t a problem. I followed the trail a bit and figured out that the image for the thumbnail creation process was created by a script, nggshow.php (part of the Nextgen plugin). The script itself was working. It fetched all the information, put it in an object, and then it was supposed to spit out an image.

The problem was that the final output is supposed to be a jpeg. But, some white space was added at the top of the file, so the output was corrupted. The jpeg was there, but the browser couldn’t render it because of the added white space at the top of the file. I don’t know where exactly that was coming from, but it was added in somewhere in the Nextgen Gallery plugin files.

I tried to go through, eliminate any extra lines outside the php tags, and get rid of the white space. I eliminated one of the two newline characters that was in the output, but I couldn’t find the second. After pulling my hair for a while, I realized that I was working with an older version of Nextgen Gallery (1.5.3). I updated to the most recent (1.5.5), and it worked fine. Doh.

So… simple solution. Upgrade to the latest version of the plugin.

Posted in CMS Tricks, Nerds at Work, Web Design | No Comments »
Tags: ,

Backup Your WordPress Database: Updraft Plugin

July 30, 2010 – 10:09 am

I love Wordpress. Just about every site I've ever designed has used Wordpress as a ...

No Comments »

New Project: Digital Photography How To

July 16, 2010 – 12:26 pm

It's summer time, which means it's time to start working on a new project. We'll ...

No Comments »

Using a jQuery Gallery in a Photography Website

April 10, 2010 – 7:17 pm

Recently, I've made a foray into the world of professional photography with one of my ...

2 Comments »

Site Still Clean. Although Not Worked On.

February 13, 2010 – 10:25 pm

Damn. I've been busy. Hard to believe that I moved this site to ...

No Comments »

Moved to a New Host – HostGator

December 27, 2009 – 6:59 pm

A couple years ago, I started dabbling in web design and web programming.  I started ...

1 Comment »

Finally Killed the Virus?

December 4, 2009 – 11:14 pm

For a while now, I've been battling with a virus that has infected the sites ...

No Comments »

Where to Host Photo Slideshows for Your WordPress Blog

November 22, 2009 – 11:03 pm

At school, I'm the yearbook adviser. I realized this year that we have thousands and ...

No Comments »

Grr… I Hate iFrame Injections.

October 24, 2009 – 8:58 pm

Eugh.  I hate iframe injections. Quite some time ago, I gave up on maintaining my various ...

2 Comments »

How to Use Pre-Cached Javascript Libraries: Google’s AJAX API

January 13, 2009 – 9:15 pm

Recently, I stumbled on Google's AJAX API project. There are a number of things I like, ...

No Comments »