I use this theme,when I active gravatar modules,home page and node active comment will display incorrect,but book page,and other no comment node is correct.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

423300’s picture

I use this theme:
http://drupal.org/project/tarski
when I active gravatar modules,home page and node active comment will display incorrect,but book page,and other no comment node is correct.

mariusz.slonina’s picture

Also happens in Bartik theme, after default, fresh installation

chrissearle’s picture

Same here. If you go to the user page with gravatar enabled you see

Fatal error: Call to a member function getDirectoryPath() on a non-object in [path_to_site_install]/modules/image/image.module on line 809

Narno’s picture

@chrissearle, duplicate issue: http://drupal.org/node/937562

chrissearle’s picture

@Narno Thanks for the link :)

chrissearle’s picture

OK - after update to beta2 I can now set a default pic as described in http://drupal.org/node/937562 without breaking the site. I don't see the image on any posts or the user pages though - so something there is still odd (I used the example given - http://images.adbard.net/sites/default/files/audience_1.png)

The 2010-Aug-14 7.x-1.x gravatar is still giving the error about getDirectoryPath() - line 809 in image module.

$url = url(file_stream_wrapper_get_instance_by_scheme($scheme)->getDirectoryPath() . '/' . file_uri_target($destination), array('absolute' => TRUE));

chrissearle’s picture

http://drupal.org/node/950348 for non-display of default pic

chrissearle’s picture

Just tested in D7 beta3 - still seeing the error about getDirectoryPath(). http://drupal.org/node/937562 is marked fixed in CVS head over a month ago - so I assume that fix has made it in to at least the latest beta.

zyxware’s picture

Title: Main page display incorrect » Fatal error: Call to a member function getDirectoryPath() on a non-object when gravtar is enabled
FileSize
672 bytes

The patch mentioned in #937562: [Regression] Fatal Error Call to a member function getDirectoryPath() on a non-object when Default picture is set has gone into D7 beta 3. This error is due to an error in the gravtar module itself. In the gravatar_preprocess_user_picture function theme('image_style', ... is called for an external URI. The check on file_valid_uri($picture) should be done here as well.

I have changed the title of the issue to reflect the error message

I am attaching a patch that adds the file_valid_uri check before calling the image_style theme function.

zyxware’s picture

Component: User interface » Code
Assigned: 423300 » Unassigned
Status: Active » Needs review

Changing status

jackread’s picture

this patch fixed the problem for me

Dave Reid’s picture

Status: Needs review » Fixed

Thanks! Committed #9 to CVS!
http://drupal.org/cvs?commit=456396

Dave Reid’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.