[SOLVED] thumbnails not resizing

narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Thu, 2005-03-24 03:56

everyone seems to be having thumbnail problems :roll:...so here's mine...

The thumbnails in my gallery are acting very oddly. They are (for the most part) stuck at 150x150. If I try to resize the thumbnails then they just stay the same size. I tried to resize the main gallery page thumbnails to 200x200 but they didn't budge. Until the other day when one popped to 200x200 and another (which is a private album, therefore not publically viewable) changed to 250x250. They are stuck like this now. Nothing I seem to do has any effect on them.

I've tired resizing thumbnails in albums too, and they won't change from 150sq either. You can see how it looks at my gallery, there is one odd sized thumbnail on the front page that sticks out like a sore thumb (no pun intended...).

I've tried using each graphics toolkit alone to test each one out and none of them have made a difference. I'm currently just running Image Magick. All toolkits say 'passed' when I test them. So I'm really not sure what the problem is here...

Any ideas? Thanks.

----

Gallery URL (optional): http://jasmine.wyrdweb.com/~narflet/gallery2
Gallery version: g2 cvs 24/05/03 @ 3.40am GMT
Webserver (with version): Apache/1.3.26 (Unix)
Datatabase (with version): ??? (can find out if needed...)
PHP version (eg 4.2.1): PHP/4.1.2
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: GNU/Linux
Web browser/version: firefox 1.0.1
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-03-24 06:23

try this..
1) make sure imagemagick is the only active toolkit
2) do 'edit photo' / Photo tab for a photo
3) put G2 in buffered debug mode in config.php
4) enter a new thumbnail size and click Save
5) in the intermediate debug page look for 'UPDATE g2_Derivative' in the output and make sure it has 'thumbnail|{size-you-entered}' in the sql
6) click continue
7) look for 'Executing' in the debug output and post from there down to the 'Status' line
8) did the page refresh showing the old or new thumbnail size?

 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Thu, 2005-03-24 10:30

right, I followed that with imagemagick as the only active toolkit.

got to 5 - the UPDATE g2_Derivative was there:
(mysql): UPDATE g2_Derivative SET g_derivativeOperations='${1}200' WHERE
g_id=1881

However when I get to 7 and look for 'executing' in the output it doesn't seem to be there. So here is the whole lot pasted for you as I have no idea what you might need:

file_exists(/away/narflet/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
fopen(/away/narflet/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc,
rb, 0)
fread(Resource id #1, 4096)
fread(Resource id #1, 4096)
fread(Resource id #1, 4096)
fclose(Resource id #1)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/rewrite/classes/RewriteUrlGenerator.class)
file_exists(/away/narflet/g2data/sessions/53940165626b9362561f3419f6d32551)
clearstatcache()
filesize(/away/narflet/g2data/sessions/53940165626b9362561f3419f6d32551)
fopen(/away/narflet/g2data/sessions/53940165626b9362561f3419f6d32551, rb,
0)
flock(Resource id #2, 6, )
fread(Resource id #2, 12761)
flock(Resource id #2, 3, )
fclose(Resource id #2)
Continuing navigation x9bfe6fce
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_core ->
/home/narflet/public_html/gallery2/modules/core/locale
file_exists(/away/narflet/g2data//versions.dat)
file(/away/narflet/g2data//versions.dat, )
[1111659754] can't guarantee 5 -- extending!
file_exists(/away/narflet/g2data/cache/entity/0/0/5.inc)
fopen(/away/narflet/g2data/cache/entity/0/0/5.inc, rb, 0)
fread(Resource id #3, 4096)
fclose(Resource id #3)
file_exists(/away/narflet/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
fopen(/away/narflet/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc,
rb, 0)
fread(Resource id #4, 4096)
fread(Resource id #4, 4096)
fread(Resource id #4, 4096)
fclose(Resource id #4)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/../../../modules/core/ItemAdmin.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/../../../modules/core/ItemAdmin.inc)
file_exists(/away/narflet/g2data/cache/module/core/0/0/0.inc)
fopen(/away/narflet/g2data/cache/module/core/0/0/0.inc, rb, 0)
fread(Resource id #5, 4096)
fclose(Resource id #5)
file_exists(/away/narflet/g2data/cache/entity/1/8/1880.inc)
fopen(/away/narflet/g2data/cache/entity/1/8/1880.inc, rb, 0)
fread(Resource id #6, 4096)
fclose(Resource id #6)

(mysql):
SELECT
g2_Derivative.g_id, g2_ChildEntity.g_parentId
FROM
g2_Derivative, g2_ChildEntity
WHERE
g2_Derivative.g_id = g2_ChildEntity.g_id
AND
g2_ChildEntity.g_parentId IN ('1880')

AND
g2_Derivative.g_derivativeType IN (1)

file_exists(/away/narflet/g2data/cache/entity/1/8/1881.inc)
fopen(/away/narflet/g2data/cache/entity/1/8/1881.inc, rb, 0)
fread(Resource id #9, 4096)
fclose(Resource id #9)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/albumselect/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_albumselect ->
/home/narflet/public_html/gallery2/modules/albumselect/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/archiveupload/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_archiveupload ->
/home/narflet/public_html/gallery2/modules/archiveupload/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/comment/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_comment ->
/home/narflet/public_html/gallery2/modules/comment/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/customfield/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_customfield ->
/home/narflet/public_html/gallery2/modules/customfield/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/debug/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_debug ->
/home/narflet/public_html/gallery2/modules/debug/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/exif/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_exif ->
/home/narflet/public_html/gallery2/modules/exif/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/imageblock/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_imageblock ->
/home/narflet/public_html/gallery2/modules/imageblock/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/imageframe/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_imageframe ->
/home/narflet/public_html/gallery2/modules/imageframe/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/imagemagick/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_imagemagick ->
/home/narflet/public_html/gallery2/modules/imagemagick/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/members/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_members ->
/home/narflet/public_html/gallery2/modules/members/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/migrate/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_migrate ->
/home/narflet/public_html/gallery2/modules/migrate/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/newitems/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_newitems ->
/home/narflet/public_html/gallery2/modules/newitems/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/randomhighlight/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_randomhighlight ->
/home/narflet/public_html/gallery2/modules/randomhighlight/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/rearrange/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_rearrange ->
/home/narflet/public_html/gallery2/modules/rearrange/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/register/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_register ->
/home/narflet/public_html/gallery2/modules/register/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/remote/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_remote ->
/home/narflet/public_html/gallery2/modules/remote/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/rewrite/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_rewrite ->
/home/narflet/public_html/gallery2/modules/rewrite/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/search/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_search ->
/home/narflet/public_html/gallery2/modules/search/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/sizelimit/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_sizelimit ->
/home/narflet/public_html/gallery2/modules/sizelimit/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/slideshow/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_slideshow ->
/home/narflet/public_html/gallery2/modules/slideshow/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/squarethumb/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_squarethumb ->
/home/narflet/public_html/gallery2/modules/squarethumb/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/thumbnail/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_thumbnail ->
/home/narflet/public_html/gallery2/modules/thumbnail/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/thumbpage/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_thumbpage ->
/home/narflet/public_html/gallery2/modules/thumbpage/locale
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/uploadapplet/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_uploadapplet ->
/home/narflet/public_html/gallery2/modules/uploadapplet/locale

(mysql):
SELECT
g2_UserGroupMap.g_userId
FROM
g2_UserGroupMap
WHERE
g2_UserGroupMap.g_userId = 5
AND
g2_UserGroupMap.g_groupId = '2'
LIMIT 1

(mysql):
SELECT
g2_Group.g_id,
g2_Group.g_groupName
FROM
g2_UserGroupMap, g2_Group
WHERE
g2_Group.g_id = g2_UserGroupMap.g_groupId
AND
g2_UserGroupMap.g_userId = 5
ORDER BY
g2_Group.g_groupName
LIMIT 18446744073709551615

(mysql):
SELECT
g2_PermissionMap.g_itemId,
BIT_OR(g2_PermissionMap.g_permission)
FROM
g2_PermissionMap
WHERE
g2_PermissionMap.g_itemId IN (1880)
AND
(g2_PermissionMap.g_userId = 5
OR
g2_PermissionMap.g_groupId IN (1, 3, 2))
GROUP BY
g2_PermissionMap.g_itemId

(mysql):
SELECT
g2_PermissionSetMap.g_module,
g2_PermissionSetMap.g_permission,
g2_PermissionSetMap.g_description,
g2_PermissionSetMap.g_bits,
g2_PermissionSetMap.g_flags
FROM
g2_PermissionSetMap

(mysql):
SELECT
g2_Derivative.g_id, g2_Derivative.g_derivativeSourceId
FROM
g2_Derivative
WHERE
g2_Derivative.g_derivativeSourceId IN (1880)

AND
g2_Derivative.g_derivativeType IN (1)

(mysql):
SELECT
g2_PermissionMap.g_itemId,
BIT_OR(g2_PermissionMap.g_permission)
FROM
g2_PermissionMap
WHERE
g2_PermissionMap.g_itemId IN (784)
AND
(g2_PermissionMap.g_userId = 5
OR
g2_PermissionMap.g_groupId IN (1, 3, 2))
GROUP BY
g2_PermissionMap.g_itemId

(mysql):
SELECT
COUNT(DISTINCT g2_Item.g_id)
FROM
g2_Entity, g2_Item, g2_PermissionMap
WHERE
g2_Entity.g_entityType = 'GalleryAlbumItem'
AND
g2_Item.g_id = g2_Entity.g_id
AND
g2_PermissionMap.g_itemId = g2_Entity.g_id
AND
(g2_PermissionMap.g_userId = 5
OR
g2_PermissionMap.g_groupId IN (1, 3, 2))
AND
g2_PermissionMap.g_permission & 16 = 16

file_exists(/home/narflet/public_html/gallery2/modules/core/classes/../../../modules/core/ItemEdit.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/../../../modules/core/ItemEdit.inc)

(mysql):
SELECT
g2_ItemAttributesMap.g_parentSequence
FROM
g2_ItemAttributesMap
WHERE
g2_ItemAttributesMap.g_itemId = 784

file_exists(/away/narflet/g2data/cache/entity/0/0/6.inc)
fopen(/away/narflet/g2data/cache/entity/0/0/6.inc, rb, 0)
fread(Resource id #18, 4096)
fclose(Resource id #18)
file_exists(/away/narflet/g2data/cache/entity/7/8/784.inc)
fopen(/away/narflet/g2data/cache/entity/7/8/784.inc, rb, 0)
fread(Resource id #19, 4096)
fclose(Resource id #19)

(mysql):
SELECT
g2_Derivative.g_id, g2_ChildEntity.g_parentId
FROM
g2_Derivative, g2_ChildEntity
WHERE
g2_Derivative.g_id = g2_ChildEntity.g_id
AND
g2_ChildEntity.g_parentId IN (1880)

AND
g2_Derivative.g_derivativeType IN (1)

file_exists(/away/narflet/g2data/cache/derivative/1/8/1881.dat)
fopen(/away/narflet/g2data/locks/1/8/1881, wb+, 0)
flock(Resource id #21, 6, )

(mysql): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (1881)

(mysql): SELECT g2_Entity.g_id, g2_Entity.g_creationTimestamp,
g2_Entity.g_isLinkable, g2_Entity.g_linkId,
g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber,
g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers,
g2_ChildEntity.g_parentId, g2_Derivative.g_derivativeSourceId,
g2_Derivative.g_derivativeOperations, g2_Derivative.g_derivativeOrder,
g2_Derivative.g_derivativeSize, g2_Derivative.g_derivativeType,
g2_Derivative.g_mimeType, g2_Derivative.g_postFilterOperations,
g2_DerivativeImage.g_width, g2_DerivativeImage.g_height FROM g2_Entity,
g2_ChildEntity, g2_Derivative, g2_DerivativeImage WHERE g2_Entity.g_id IN
(1881) AND g2_ChildEntity.g_id=g2_Entity.g_id AND
g2_Derivative.g_id=g2_Entity.g_id AND
g2_DerivativeImage.g_id=g2_Entity.g_id

file_exists(/away/narflet/g2data/cache/derivative/1/8)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/exif/classes/ExifToolkit.class)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/imagemagick/classes/ImageMagickToolkit.class)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/thumbnail/classes/ThumbnailToolkit.class)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/archiveupload/classes/ArchiveExtractToolkit.class)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/squarethumb/classes/SquareThumbToolkit.class)

(mysql):
SELECT
g2_TkOperatnMimeTypeMap.g_toolkitId,
g2_TkOperatnMap.g_outputMimeType
FROM
g2_TkOperatnMap,
g2_TkOperatnMimeTypeMap
WHERE
g2_TkOperatnMap.g_name =
g2_TkOperatnMimeTypeMap.g_operationName
AND
g2_TkOperatnMimeTypeMap.g_mimeType = 'image/jpeg'
AND
g2_TkOperatnMap.g_name = '${1}200'
ORDER BY
g2_TkOperatnMimeTypeMap.g_priority ASC

file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditPhotoThumbnail.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditRotateAndScalePhoto.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditPhoto.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditLayout.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditAlbum.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditItem.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditAnimation.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/ItemEditMovie.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/customfield/CustomFieldItemEdit.inc)
file_exists(/away/narflet/g2data/cache/module/customfield/7/8/784.inc)
fopen(/away/narflet/g2data/cache/module/customfield/7/8/784.inc, rb, 0)
fread(Resource id #25, 4096)
fclose(Resource id #25)
file_exists(/away/narflet/g2data/cache/module/customfield/0/0/0.inc)
fopen(/away/narflet/g2data/cache/module/customfield/0/0/0.inc, rb, 0)
fread(Resource id #26, 4096)
fclose(Resource id #26)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/thumbpage/ItemEditThumbPage.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/thumbpage/ItemEditThumbOffset.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/multilang/MultiLangItemEdit.inc)
file_exists(/home/narflet/public_html/gallery2/modules/core/classes/helpers/../../../../modules/multilang/module.inc)
realpath(/home/narflet/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_multilang ->
/home/narflet/public_html/gallery2/modules/multilang/locale

(mysql):
SELECT
g2_Derivative.g_id, g2_ChildEntity.g_parentId
FROM
g2_Derivative, g2_ChildEntity
WHERE
g2_Derivative.g_id = g2_ChildEntity.g_id
AND
g2_ChildEntity.g_parentId IN (1880)

AND
g2_Derivative.g_derivativeType IN (2)

file_exists(/away/narflet/g2data/cache/entity/2/2/2255.inc)

(mysql): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN ('2255')

(mysql): SELECT g2_Entity.g_id, g2_Entity.g_creationTimestamp,
g2_Entity.g_isLinkable, g2_Entity.g_linkId,
g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber,
g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers,
g2_ChildEntity.g_parentId, g2_Derivative.g_derivativeSourceId,
g2_Derivative.g_derivativeOperations, g2_Derivative.g_derivativeOrder,
g2_Derivative.g_derivativeSize, g2_Derivative.g_derivativeType,
g2_Derivative.g_mimeType, g2_Derivative.g_postFilterOperations,
g2_DerivativeImage.g_width, g2_DerivativeImage.g_height FROM g2_Entity,
g2_ChildEntity, g2_Derivative, g2_DerivativeImage WHERE g2_Entity.g_id IN
(2255) AND g2_ChildEntity.g_id=g2_Entity.g_id AND
g2_Derivative.g_id=g2_Entity.g_id AND
g2_DerivativeImage.g_id=g2_Entity.g_id

file_exists(/away/narflet/g2data/cache/entity/2/2)
fopen(/away/narflet/g2data/cache/entity/2/2/2255.inc, wb, 0)
flock(Resource id #30, 2, )
fwrite(Resource id #30, ..., )
fclose(Resource id #30)

(mysql):
SELECT
g2_TkOperatnMimeTypeMap.g_toolkitId,
g2_TkOperatnMap.g_outputMimeType
FROM
g2_TkOperatnMap,
g2_TkOperatnMimeTypeMap
WHERE
g2_TkOperatnMap.g_name =
g2_TkOperatnMimeTypeMap.g_operationName
AND
g2_TkOperatnMimeTypeMap.g_mimeType = 'image/jpeg'
AND
g2_TkOperatnMap.g_name = 'thumbnail'
ORDER BY
g2_TkOperatnMimeTypeMap.g_priority ASC

(mysql):
SELECT
g2_TkOperatnMimeTypeMap.g_toolkitId,
g2_TkOperatnMap.g_outputMimeType
FROM
g2_TkOperatnMap,
g2_TkOperatnMimeTypeMap
WHERE
g2_TkOperatnMap.g_name =
g2_TkOperatnMimeTypeMap.g_operationName
AND
g2_TkOperatnMimeTypeMap.g_mimeType = 'image/jpeg'
AND
g2_TkOperatnMap.g_name = 'scale'
ORDER BY
g2_TkOperatnMimeTypeMap.g_priority ASC

8 - the page refreshes showing the thumbnail broke and there is no thumbnail anymore. If I go through the process again the text in step 5. isn't there and it stays broke.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-03-24 19:51

wow, glad i added step 5.. almost didn't bother. ok, ${1}200 is invalid.. since it doesn't have 'thumbnail' it never even reaches imagemagick.. that's why you didn't find 'Executing'.

what do you get from this test.php on your server?

<?php
 print preg_replace('/((^|;)thumbnail\|)\d+/', '${1}200', 'thumbnail|150') . "<br/>\n";
 print preg_replace('/((^|;)thumbnail\|)\d+/', '${1}200', 'crop|1,2,3,4;thumbnail|250') . "<br/>\n";
?>
 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Thu, 2005-03-24 22:09

ok, I'm not wholey sure what I was ment to do with that. I'm really not very geekily minded *at all* but I've done my best. I asked for help on what to do and hope I did it right. If I haven't explain to me a bit more verbosely please and I will try again.

This is what it gave me:

${1}200
crop|1,2,3,4${1}200

hope that is what you were wanting.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-25 01:11

you're doing great.. we've isolated the problem. not sure why your php doesn't like that regular expression, but i'll try to simplify it to something that should work on everyone's php... try this:

<?php
 print preg_replace('/((^|;)thumbnail)\|\d+/', '$1|200', 'thumbnail|150') . "<br/>\n";
 print preg_replace('/((^|;)thumbnail)\|\d+/', '$1|200', 'crop|1,2,3,4;thumbnail|250') . "<br/>\n";
?>
 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Fri, 2005-03-25 01:48

I checked with the chap who's machine it is and he tested that php was running fine, so it seems it is.

this looks better I think...

thumbnail|200
crop|1,2,3,4;thumbnail|200

that good? thanks for being so helpful and patient with someone with such little knowledge as I.

So what do I do with it now? so it actually changes those thumbnails...

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-25 02:04

ok, i can fix the code now so it will work in future... unfortunately you now have some bad values in your database.. do you have access to phpmyadmin? i noticed you said "can find out" about database type above.. maybe now is the time.
you'll want to query for all rows in g2_Derivative table that contain ${1} anywhere in the g_derivativeOperations column.. then you'll need to repair those values. to start with, find out what administrative tools you have available for your database. if you have phpmyadmin and you don't mind giving me temporary access i could take a look (PM me the details).
and of course, don't edit any more thumbnails until you update your codebase tomorrow.. i'll put the fix in cvs right now.

 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Fri, 2005-03-25 17:59

well, I've inadvertently solved the problem. by, uhm, breaking everthing. I have no idea what I did or how I did it, but it's broken. totally. :o

I think I'm going to delete and start again. seems best.

thanks for the help even though it's kind of redundant now :roll:

wow.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-25 19:07

doh.. well, when you get setup again with the latest code you should be able to change thumbnail sizes :-)

 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Thu, 2005-03-31 00:27

thanks :) I've got things up and running again now. aye, it does indeed work. tickety boo.