Project Gallery: attachment.sizes.thumbnail.url undefined
-
So it seems like when there is an issue with image thumbnail/size generation. e.g. when the php5-gd library is not installed. WordPress still continues to function without multiple sizes, by falling back to the original image, full size.
However the WooThemes Projects plugin throws an error, and does not fallback to original image size. This can easily be fixed with one small change in assets/js/admin.js. Change:
<img src="' + attachment.sizes.thumbnail.url + '" />
to be:
<img src="' + attachment.sizes.thumbnail ? attachment.sizes.thumbnail.url : attachment.sizes.full.urll + '" />
Then it will fallback to use the fullsize image and allow the user to continue, outputting the fullsize image on the projects page gallery
Simples!
- The topic ‘Project Gallery: attachment.sizes.thumbnail.url undefined’ is closed to new replies.