Thesography 1.0 Support

This page is intended for feedback and questions for Thesography version 1.0.

{ 26 comments }

1 Cecily 30 August 2009 at 10:14

Hi Kristarella,

I’m totally scratching my head over here. I have Thesography installed on two blogs. One one blog (the one linked above) the EXIF plug in is working as it should, but on the other, I can’t seem to get the EXIF data to show up at all. Do you know why this might be?

2 Cecily 30 August 2009 at 10:17

Actually, I take that back. It’s working on one photo on the blog linked above, but not on the others! It is working fine here: http://cecily.info/2009/08/29/.....e-library/

But it doesn’t show here: http://cecily.info/2009/08/29/.....ht-market/

3 kristarella 30 August 2009 at 11:04

Hey Cecily,

Make sure that the photos are actually attached to the post. You can do that by going to the Media Library and there is a column saying which post the photos is attached to.
Since WordPress 2.8 there is a weird little behaviour where you have to have entered a title and clicked in the writing box, triggering a save of the draft before uploading your images, otherwise there is no post ID assigned to the post to attach the image to. Or something like that.
If that’s the case try editing the relevant post and uploading the image again from there (maybe delete the first one from the media library if it’s not attached to anything).

Lovely Bubble Day photo by the way!

4 Cecily 30 August 2009 at 12:35

Wow, that was fast. Thanks for the tip – it worked like a charm!

5 Elaine- 30 August 2009 at 16:31

I’m confused, I’m using thesis and the exif data did NOT show up anywhere automatically!! I tried inserting some of the codes you suggested into open hook, but they didn’t work… i’m not sure what i’m doing wrong?? help! :)

6 kristarella 30 August 2009 at 21:40

Hi Elaine,

Have you selected the EXIF items to display either on the main options page, or on the Write Post page? And have you double checked that the image is actually attached to the post as I mentioned to Cecily above? Also, some editing programs don’t preserve EXIF, so it could be worthwhile, if the above things have been checked, to see if there is any EXIF in the image file (there are a variety of free EXIF viewers one can download, or you might be able to get it in the info of the image file when you right click on it).

7 Elaine- 31 August 2009 at 05:11

Hi Kristarella! well yes i checked off the exif items to display on the main options page, didn’t do anything.. and there is nowhere to check them off on my post page :( and i checked the media library, and changed the post url to the actual post url, still nothing.. and photoshop does preserve exif.. so i’m still at a loss as to why this doesn’t work, could it be because i upload my images via the wordpress uploader rather than showing the one that thesis uploads? i do this because i like to change themes every now and then, and need my images to show up lol and and why can’t i use some of the code you post on your main page to show the exif data, i just get nothing or errors… i really miss my exif, i’m hoping to make this work!! thanks Kristarella!!

8 Elaine- 31 August 2009 at 05:14

oh i see where to click the exifs you want shown on the post page, and yes they are clicked :)

9 kristarella 31 August 2009 at 09:37

Elaine — if you had to change the URL of the post that the image was attached to in the media library then I doubt WordPress knows which post the image is attached to. If it doesn’t have the Post Title in the attachment column:
Image Post Attachment
I would recommend uploading it within the post’s uploader again (and deleting the old one).

10 Elaine- 31 August 2009 at 12:27

you are right, that lots of my images don’t even seem to BE in the media library, and some that were there had nothing attached to it, but i also looked at some of the posts that WERE in there and attached to the right post, and even on those posts, NO EXIF DATA :(

i don’t think this is going to work for me, and i even tried putting in a custom function for another exif plugin and got errors that crashed my blog… btw, shouldn’t there be code in custom functions for YOUR plugin? coz there’s nothing there about it…

anyway, yeah, i don’t want to go back and re-upload tons of pictures, i’ve gone back over my blog toooo many times lol guess there’s no exif data to be had for little ol’ me :( thanks anyway!!

11 kristarella 31 August 2009 at 12:48

Elaine — My plugin uses the thesis_hook_after_post hook, so that needs to be in tact (and should be in Thesis unless you’ve got something funky going on with page templates). It also uses the EXIF that is automatically imported to the database by WordPress, but does not display anything if that EXIF isn’t there.

The EXIF is definitely in your image, I can see it if I open the image with MacMetaShow… Do you have any other image related plugins that might interact with the uploading of images to WordPress? Perhaps they are not compatible with my plugin and I would like to test that out.

My plugin does not need to add anything to custom_functions.php. It uses the same principles as using functions in custom_functions.php. In fact, before I wrote the plugin I did have most of it in custom_functions.php on my site. By putting it in a plugin I merely activate the functions from a different location in the WordPress installation.

I wouldn’t suggest that you need to re-upload all your old images, but that doesn’t mean you can’t display EXIF for future images… If you care to, you could make me a temporary user account with administrator privileges for your blog and I can see if I can diagnose the problem. I don’t think I can do much more remotely. Let me know if you want to do that and I’ll email you.

12 Elaine- 31 August 2009 at 12:53

the thesis_hook_after_post space is there, in open hook, but there is nothing in it, codewise… ok, just let me figure out how to make you a user in my blog and i will do that, or email me about :) thank you!!

13 Elaine- 31 August 2009 at 13:17

hi, i made you an editor, is that enuff? it should have sent the info to you at your gmail addy… do let me know what’s happening lol thank you!!

14 Elaine- 31 August 2009 at 13:19

ok, changed it to admin, sigh lol makes me nervous!! ok you can go in now and see…

15 kristarella 31 August 2009 at 13:56

Thanks for that Elaine! I found the problem… and the EXIF is working now (to a point). It’s working on this post.

The problem was that your most recent post didn’t have the image attached to the post, so the plugin can’t automatically detect the image ID. For older posts, the field that I’m using to determine whether the EXIF should be displayed or not is only saved when the post is saved, since old posts were saved before the plugin was installed, the field isn’t there. This does seem like a bug and I will try to come up with a way to fix that.

In the meantime, if you make sure that you enter the title and click in the post text box before you upload your image, that will ensure that the image is attached to the post and all your future posts will display EXIF.
To show EXIF on your old posts you can add the display function via custom_functions.php. I tested this in your custom_functions.php and it seems to work:

function display_old_exif() {
	$oldposts = 20090830;
	if ((get_the_time('Ymd') < $oldposts) && function_exists('display_exif'))
		echo display_exif('aperture,camera,focus,iso,shutter');
}
add_action('thesis_hook_after_post','display_old_exif');
16 Elaine- 31 August 2009 at 14:06

thank you so much!!! u rock sister!! of course i never would have been able to do that myself, so i’m very very grateful!

17 Elaine- 31 August 2009 at 15:02

getting these errors on the photos that aren’t attached!! Warning: Invalid argument supplied for foreach() in /home2/wonders/public_html/foto/wp-content/plugins/thesography/thesography.php on line 310<<Fatal error: Cannot use string offset as an array in /home2/wonders/public_html/foto/wp-content/plugins/thesography/thesography.php on line 317

help!! lol

18 Elaine- 1 September 2009 at 16:26

did you get the files off my photoblog?? just wondering when i can put back the regular password :) hope you got the files and they help you diagnose probs :)

19 Cecily 1 September 2009 at 18:46

Hi again, Kristarella – and thanks for the shout out on Twitter!

I’m curious – if I wanted the EXIF data to appear elsewhere in my post, where would I put it? For example, I have my images appearing before the headline in Thesis. I’d like to put the EXIF data immediately after the image, also before the headline. How would I make that happen?

(If that’s beyond the scope of support, let me know and I’ll try to find help elsewhere – thanks so much!)

20 kristarella 2 September 2009 at 01:19

Hey Cecily,

You can place the EXIF before the title using something like the following in custom_functions.php.

function display_exif() {
	if (function_exists('display_exif'))
		echo display_exif('aperture,camera,focus,iso,shutter');
}
add_action('thesis_hook_before_headline','display_exif');

Or maybe using the thesis_hook_before_post hook. Whichever puts it in the right place.

If you want to keep using the checkboxes in the posts you can call those options instead of specifying fields in the function.

21 Cecily 2 September 2009 at 12:49

SWEET. Thanks again, Kristarella!

22 Cecily 2 September 2009 at 13:03

Whoops, I just tried this and the entire site went blank.

23 kristarella 2 September 2009 at 13:18

Oops! My bad… named the function something that was already a function name. It needs to be

function custom_exif() {
	if (function_exists('display_exif'))
		echo display_exif('aperture,camera,focus,iso,shutter');
}
add_action('thesis_hook_before_headline','custom_exif');

I.e., the function name to insert the exif into the theme should not be “display_exif”.

24 Cecily 6 September 2009 at 04:00

It’s me again..
I was about to start working on my about page (hadn’t touched it yet) when I noticed something strange. Here’s the URL: http://heycecily.ca/?page_id=2

If you notice, the boilerplate about text still shows, but there are two PHP errors that occur in the page:

Warning: Invalid argument supplied for foreach() in /home/cecily/public_html/heycecily.ca/wp-content/plugins/thesography/thesography.php on line 310

Fatal error: Cannot use string offset as an array in /home/cecily/public_html/heycecily.ca/wp-content/plugins/thesography/thesography.php on line 317

The thing is, I’m not using any images all on the page, other than the header image, but that isn’t attached to a post.

Just thought I’d give you a heads up.

25 Cecily 6 September 2009 at 04:02

FYI, it seems to be related to the custom function we wrote for display_exif. IF I comment that out, the about page shows like it should.

26 kristarella 6 September 2009 at 10:29

Hi Cecily,

I will be working on fixing that error for the next version. In the meantime, if you exclude the display function from pages it could be okay. I.e.,

function custom_exif() {
	if (function_exists('display_exif') && !is_page())
		echo display_exif('aperture,camera,focus,iso,shutter');
}
add_action('thesis_hook_before_headline','custom_exif');

Comments on this entry are closed.