I am writing my custom node--blog.tpl.php for my Drupal7 based site. I want to print the author image of the blog so in my tpl file i include the following:
$user = user_load($user->uid);
print theme_image_style(
array(
'path' => $user->picture->uri,
'attributes' => array(
'class' => 'in-blog-user'
)
)
);
However, it does not display any image and i get a error as :
The requested page "/sites/default/files/styles//public" could not be found
What am i doing wrong?
Regards
PS: my pictures directory is "pictures"