I am getting this error on my attachment pages:
Notice: Undefined property: stdClass::$post_ID in .../thematic/attachment.php on line 45
Line 45 is:
<div class="entry-attachment"><?php the_attachment_link($post->post_ID, true) ?></div>
If I change
$post->ID the error is fixed. After doing some research, I found the issue noted as a bug on this Trac ticket from last year but it doesn't seem to have been changed.
I could copy attachment.php into my child theme and make the change, but I don't want to mess with the core files in order to keep the theme intact for updates. Does anyone else have this issue and/or is there something obvious I'm missing? Thanks.