I have a strange problem where on my local (Ubuntu) setup, as well as our production and staging environments (also Unix) everything works fine. But on my colleagues (Windows) environment the error "undefined function the_post_thumbnail" shows up on the front-page (and only the front-page).
The strange thing is that it only happens on the front-page even though post thumbnails are being used on more or less every page.
We are of course adding post thumbnail support (through add_theme_support('post-thumbnails')
). This was (incorrectly I believe (now)) done on the 'init' hook but we have tried 'after_theme_setup' too (both works for me - none for him)).
We tried die()
inside the same function that calls add_theme_support()
and the die-text does show up on the front-page which tells me all the code in that function is being run.
How come it works on all other pages but not on the home page (not sure if it's worth mentioning but we are using a static front-page along with the front-page.php
template as opposed to a blog home page)? How come it's specific to his machine?
Has anyone else experienced this?