4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: steven on December 28, 2002, 12:29:58 AM

Title: No thumbs appear while using plain upload
Post by: steven on December 28, 2002, 12:29:58 AM
Hello,

could anyone help me out with this one. I haven't seen it on another discussion...

My problem is that my thumbnails don't show up anymore although they appear in the right directory on the server...and when I want to edit a picture, I see the thumbnail (and i can delete it again by crossing the box asside of it) :roll: I don't use any 'auto thubnail generator'...just plain upload..

Since no thubnails appear anymore (it worked for some time), visitors can't see the normal version anymore either.

Anybody a clue?

tnx
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 02:32:06 PM
*Bump*

Sorry for bumping a 5 year old topic however I also a similar issue.

I have uploaded all my thumbnails via FTP and the structure looks like this:
/data/media/1/image.jpg
/data/thumbnails/1/image.jpg

What do I need to do in order to have the thumbs displayed?

I uploaded the images first, and have uploaded the thumbs later on.

Thanks
Title: Re: No thumbs appear while using plain upload
Post by: nobby on February 24, 2008, 02:40:11 PM
Hi,

ACP  :arrow: Check new images  :arrow: Auto Thumbnailer  :wink:

See Annex:
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 02:45:06 PM
Hi, when I go "Check new images" I find nothing, then when I go Auto Thumbnailer I get results, however I don't dare to press the "create thumbnails" button since I have already created and uploaded the thumbs? What will the option do?
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 02:50:04 PM
Quote
What will the option do?

If see images upload on FTP but no can see in ACP, use this - http://www.4homepages.de/forum/index.php?topic=20234.0
Is compare data of IMAGES_TABLE, CATEGORIES_TABLE with FTP images data. With this, you get what is wrong. ;)
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 02:57:28 PM
Thanks, but unlucky my web server use PHP 4.4.7 and not PHP 5... Any other ideas?
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 03:19:29 PM
Hum ... sorry ... I support gallery user for PHP v5.2+ only (for this problem).
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 04:47:17 PM
Hello,

I installed PHP 5 on my server and installed your script.

Quote
Error(s) found: 1

Cannot find cat ID value: 2 under FTP folder: data/thumbnails/2 and / or in table. image.jpg file has been found in  4images_images table Matched cat ID value: 2 for: image.jpg file..

Error(s) found: 536

Cannot find file data/thumbnails/2/image2.jpg under FTP and / or in 4images_images table.
 

To be honest I have no idea what to do now... I mean, the images is located at data/thumbnails/2 so I have no idea why it says it's not...  :(
Title: Re: No thumbs appear while using plain upload
Post by: honda2000 on February 24, 2008, 04:49:36 PM
search: safe_mode / Safe-Mod / safe-mode
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 04:52:12 PM
search: safe_mode / Safe-Mod / safe-mode
On my server the Safe Mode is "off".
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 04:52:52 PM
ahHA ! so diagnostic is find problem. ;)

Quote
Cannot find cat ID value: 2 under FTP folder: data/thumbnails/2 and / or in table. image.jpg file has been found in  4images_images table Matched cat ID value: 2 for: image.jpg file..

Ok so is mean CATEGORIES_TABLE is find cat_id no 2 but folder no 2 is no exist in FTP (or change in FTP and no change in CATEGORIES_TABLE and IMAGES_TABLE for cat_id field from ACP). This is bad but now you see what is source. Solution: Recheck cat no 2 in CATEGORIES_TABLE, IMAGES_TABLE and FTP folder for all match.

Quote
Error(s) found: 536

536 ???  8O

Wow ... now check your data/media and data/thumbnails folder + CATEGORIES_TABLE and IMAGES_TABLE for all match.  8O

Note: This problem is nothing do with safe_mode . This is upload / backup-restore problem.
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 05:38:51 PM
Hello,

I don't understand how do I do this? I have more than 7000 images in the table "image_media_file" while in "image_thumb_file" there are only 5 which I have added manually earlier. How do I make the thumbs appear in the thumb table/category?
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 06:00:20 PM
Quote
I don't understand how do I do this?

If no get how, check in phpmyadmin in CATEGORIES_TABLE and IMAGES_TABLE for cat_id match with FTP cat_id (data/thumbnails and data/media). After, in IMAGES_TABLE, check for image_thumb_file match with cat_id of FTP. Diagnostic is say is no find match data. ;)

If upload manual, use this: http://www.4homepages.de/forum/index.php?topic=3080.0
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 06:53:59 PM
Hey,

It seems like they are matching like they should. However in every line the thumbs are missing.

It looks like this:

Quote
INSERT INTO `4images_images` VALUES(1, 2, 1, 'myimagename', '', '', 1202758236, 1, 'image.jpg', '', '', 1, 0, 4, 0, 0.00, 16);

It should look like this:

Quote
INSERT INTO `4images_images` VALUES(1, 2, 1, 'myimagename', '', '', 1202758236, 1, 'image.jpg', 'image.jpg', '', 1, 0, 4, 0, 0.00, 16);

As you can see, it's missing the thumbnail in each row. I can't add this manual because it would take me weeks and months and years. I'm not very good at this so I'm not sure what's the best way to solve it. I use PHPMYADMIN, there are no CATEGORIES_TABLE all there is 4images_categories for example.

Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 07:09:16 PM
Hey,

It seems like they are matching like they should. However in every line the thumbs are missing.

It looks like this:

Quote
INSERT INTO `4images_images` VALUES(1, 2, 1, 'myimagename', '', '', 1202758236, 1, 'image.jpg', '', '', 1, 0, 4, 0, 0.00, 16);

It should look like this:

Quote
INSERT INTO `4images_images` VALUES(1, 2, 1, 'myimagename', '', '', 1202758236, 1, 'image.jpg', 'image.jpg', '', 1, 0, 4, 0, 0.00, 16);

As you can see, it's missing the thumbnail in each row. I can't add this manual because it would take me weeks and months and years. I'm not very good at this so I'm not sure what's the best way to solve it. I use PHPMYADMIN, there are no CATEGORIES_TABLE all there is 4images_categories for example.

If two different line for INSERT INTO, how can match like they should. The cat_id is find but FTP file and image_media_file is no match (diagnostic is scan this too). ;)

You use a MOD for this problem or is 4images fresh ? If fresh, what is 4images version ?
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 07:19:31 PM
It's fresh, I only use your MOD that you gave me link for.

Version: 1.7.6
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 07:40:11 PM
Ok so cat_id is match but FTP filename is no match with image_media_file and image_thumb_file ? If so, check FTP folder permission in FTP. OR if have 7000 images in FTP (thumbnails + media so = * 2 image filename) - is possible FTP listing is full. ;)

Read this for permission setting: http://www.4homepages.de/forum/index.php?topic=7400.0

and if upload manual, check link I post before.
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 07:51:26 PM
Ok so cat_id is match but FTP filename is no match with image_media_file and image_thumb_file ? If so, check FTP folder permission in FTP. OR if have 7000 images in FTP (thumbnails + media so = * 2 image filename) - is possible FTP listing is full. ;)

Read this for permission setting: http://www.4homepages.de/forum/index.php?topic=7400.0

and if upload manual, check link I post before.

Hi,

I don't know, but it seems like it's all matching but that the thumbnail images are missing from the database.
I changed some permissions but it didn't have any effect.

My website has total 7646 images plus 7646 thumbs. The images are working fine, but the thumbs (which I also uploaded via FTP at a later stage) does not show up. All images (except from 5) has been uploaded automatically using FTP.
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 07:54:00 PM
Quote
All images has been uploaded automatically using FTP.

and ... use this for upload too http://www.4homepages.de/forum/index.php?topic=3080.0 ?
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 08:31:35 PM
Yes! But when I did this I had no thumbs uploaded! I uploaded all my thumbs today... and this is why I can't see them... I think... because I didn't upload at the same time as images?
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 09:09:20 PM
Is say all instruction in topic I post. This is step instruction ... read line by line ...
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 09:48:48 PM
Is say all instruction in topic I post. This is step instruction ... read line by line ...
I did everything in there. But I have some trouble understanding some of what you are saying... As far as I can see the "Image Gallery Diagnostic" only reports errors. I don't know how to solve the errors. I don't know what exactly do I edit in the database. I have a sense of what to edit, but it would require me to add manually 7000+ images. I think of one other solution is to install 4images again, and check new images now that thumbs are uploaded already, but it would be a good hassle  :?

Could you please tell me what I need to edit in the database if that's the case here?
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 09:56:17 PM
Quote
Could you please tell me what I need to edit in the database if that's the case here?

Nothing is need for edit in DB ... I say first time for compare with CATEGORIES_TABLE and IMAGES_TABLE (cat_id for both table and image_thumb_file and image_media_file for IMAGES_TABLE) with FTP image file you have.

cat_id = folder create for upload.
image_media_file = data/media
image_thumb_file = data/thumbnails.

After use images gallery diagnostic, is say error for file to see in DB 'or' FTP. No need for search hours with this. Error report is say source to you for look in DB 'and' FTP. Before my diagnostic, is terrible for user try to restore gallery. Now, is easy. ;)
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 24, 2008, 11:00:34 PM
So what does it mean when it say "Cannot find file data/media/2/image.jpg under FTP and / or in 4images_images table." when it is there. When I go to "http://www.mysite.com/data/media/2/image.jpg" I can see my picture  8O
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 24, 2008, 11:26:15 PM
Quote
So what does it mean when it say "Cannot find file data/media/2/image.jpg under FTP and / or in 4images_images table."

Is image in sub-category or category in tree of ACP - > Images - > Edit images ? If sub-category, diagnostic is only scan category.
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 25, 2008, 10:39:05 AM
oh.... I have one category called "English" and all the images are placed in subcategories named like A,B,C,D and so on...  :(
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 25, 2008, 02:31:26 PM
Sorry. Image diagnostic is work with category only. I try later for code for subcategory.
Title: Re: No thumbs appear while using plain upload
Post by: Warz on February 25, 2008, 02:49:04 PM
Ok thanks for your help nonetheless. I finally did it, deleted the database and installed again, now the thumbs are working. So in the future I will add thumbs and images at the same time.

Thanks
Title: Re: No thumbs appear while using plain upload
Post by: thunderstrike on February 25, 2008, 03:02:30 PM
Quote
So in the future I will add thumbs and images at the same time.

Is good solution. ;)