[wp-testers] WP 2.5 RC1 - Galllery / Permalinks for images

Nick Bohle mail at nickbohle.de
Tue Mar 18 23:46:10 GMT 2008


I tried to create an image gallery today. Uploading the images, inserting
the [gallery] into the post, etc.  My first impression was: fast, easy to
use, great new feature. 

But then, when I looked at the new gallery (thumbnails were displayed
correctly), I had to realize that the (perma)links to the images are broken.
Clicking on an image returned an 404 Not Found error message.

<a href='http://localhost/wordpress/uncategorized/test-gallery/garden001/'
title='garden001'><img
src="http://localhost/wordpress/wp-content/uploads/2008/03/garden001-150x150
.jpg" width="150" height="150" class="attachment-thumbnail" /></a>

After deactivating all plug-ins, the error persisted. Therefore, I thought
that it could have something to do with the permalink structure. So I
changed my "pretty" customized permalinks from /%category%/%postname%/ to
the "ugly" version /?p=123.

The result proved me right. The gallery was working fine with the "ugly"
permalink structure:

<a href='http://localhost/wordpress/?attachment_id=280'
title='garden001'><img
src="http://localhost/wordpress/wp-content/uploads/2008/03/garden001-150x150
.jpg" width="150" height="150" class="attachment-thumbnail" /></a> 

Any ideas why the "pretty" permalinks do not work? The images are uploaded
into /wp-content/uploads/YEAR/MONTH.



More information about the wp-testers mailing list