Hi guys,

maybe you can help me as I've been banging my head with this for almost a week.

When the user's profile picture gets uploaded, or Article module thumbnail is to be displayed, the paths in output are for example

http://www.domain.name/sites/default/files/styles/thumbnail/public/pictures/picture-1-1324844117.png

but neither the folders nor the image are actually in the file system, only the main picture is:

ls output:

sites/default/files/styles:
total 8
drwxrwxr-x 2 obfuscateduser obfuscateduser 4096 Dec 25 21:13 .
drwxrwxr-x 4 obfuscateduser obfuscateduser 4096 Dec 25 21:15 ..

This is the stock install of D7, I have just reinstalled it for the xth time, typical install, haven't altered anything but attempted to have admin's profile picture displayed. Nada.

Happens with Article module as well if I try to have the teaser with thumbnail displayed.

PHP 5.3.8, FCGI, no ownership/permissions issues (755/644, setup on which all other scripts work flawlessly), nothing in error logs.

What am I not seeing/doing wrong?

Comments

SupaDucta’s picture

Does anyone know if there is any module to capture what Drupal does when the images are to be created, as turning on it's own log shows nothing, as well as webserver's log?

SupaDucta’s picture

Turns out it wasn't me doing anything wrong or server's setup fault, it was Drupal afterall.

The fix was to adjust the line

drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
$themes = list_themes();

to

drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$themes = list_themes();

in file

includes/theme.inc

fixed it right off, thumbnail appeared right after.

I have updated the issue here:

http://drupal.org/node/1109312