Hello,

Just took a single site install and brought it over to a multi-site install so that it would be easier to configure.

Pretty much everything seems to be working well except for the thumbnails.

I have the images in files/fvc/images rather than files/images, but the original images are showing up just fine.

The thumbnail versions on the other hand don't.

I think that it must be a problem with the script that checks to see if the thumbnail exists or not..

Any other ideas? this is based on a civicspace svn install.

Mike

Comments

mgifford’s picture

These are public anyways, so I thought I'd throw in the links:

Working install:
http://hameedlaw.ca/image

Multi-site install:
http://hameedlaw3t.openconcept.ca/image

Mike

mgifford’s picture

Took the time to dig into the code. Checked the time when image_updated had listed:

if ($node->images[$label] != $node->images['_original'] &&
(!file_exists(file_create_path($node->images[$label])) ||
filemtime(file_create_path($node->images[$label])) < variable_get('image_updated', 0))) {
_image_build_derivatives($node);
}

The files were newer than the database (as I just copied them over to a new location).

I updated the db to the current unix time & cleared the cache:
UPDATE `variable` SET `value` = 's:10:"1139057531";' WHERE CONVERT( `name` USING utf8 ) = 'image_updated' LIMIT 1 ;
TRUNCATE TABLE `cache`

This helped with the preview, but not with the blocks. This isn't a problem with multi-site installs, but with file migration.

I'm not sure how this happened however, but I seemed to have lost the references to preview & thumbnail images in the files database.

I copied them over too and then it seemed to work as expected.

Mike

godo’s picture

I am changing my site from one isp to another. First I upgraded my database, AND THEN, I put (with ftp) my "images" directory to the new location.

Now, my "random image" block find the thumbnail sometimes and another times not.

My new site is configured as multisite but my old webspace not.

You can check this here:

new site: godest.vivencias.net

old site: godest.bitacoras.com

I have tested this to solve the problem: When one image is shown in original size (no thumbnail) I have saved this in my hard disk and after, I have updated his node with the same image saved... now the module find the thumbnail ok. But it is a slow process to solve the problem. Ah! I have upgrade the module to last cvs version but the problem continues.

Thanks.

drewish’s picture

Status: Active » Closed (fixed)

This version is no longer supported. If this issue is occurring with a more recent version please open a new issue.