thumbnails are not being created
Shemo725
Joined: 2008-04-18
Posts: 424 |
Posted: Sun, 2011-02-13 05:40 | |||||
not sure what's going on, but the thumbnails for images aren't being created and the standard image isn't being created. however, you can directly access the photo. here's the link to the album where you can see the broken thumbnail: link to the photo within the album: direct link: the back end maintenance says I have 1 out of date photo and I run it, and it shows 0 images have been updated. (see attachments). I tried switching from grey dragon to the default theme but it didn't change anything. also, I'm running on 3.0.1 that's a few days old.
|
||||||
Posts: 27300
Since other images are there I would suspect a resource issue on the server.
What is in the logs from when you added that item?
What image toolkit are you using? If GD then try IM or GM.
there is a rebuild items module that might help as well.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
all previous images except for the specific 1 I mentioned were uploaded days, week or months ago.
I've attached my logs from the past 2 days. the file was upload on 2/12, but I'm not sure exactly at what time.
I was using IM and then switched it to GM, but that didn't help.
Posts: 27300
try:
http://codex.gallery2.org/Gallery3:Modules:rebuild_items
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
no dice.
I went into the album where the broken thumbnail/image is and went up to album options>rebuild items and checked all of the options in the module and ran it.
Posts: 27300
Did you read how the module works. Only the first option checked in the list will be performed.
Why not just re-add the item?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
ok, I tried running the option to rebuild both the thumbnail and the resizes. there is 5 photos within the album where the broken image is and it only fixed 4/5 images as seen in the attachment I've provided.
also, this happens to all photos. you can see the latest photo (broken photo) I added in the gallery root:
http://gallery.andrewshemo.com/
I've attached the log.
Posts: 27300
I guess you will have to re add this item.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
I deleted it and then re-added it. still showing the broken image.
I've attached my log from today.
I can provide an admin log in account if that's easier.
Posts: 27300
PM me if you like and post the image as well so I can test.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
sent you a PM with the log in credentials.
the photo exceeds the 1mb limit on the attachment, so here's the direct URL to it:
http://gallery.andrewshemo.com/var/albums/miscellaneous-photos/beer/P1050581.JPG?m=1297715263
Posts: 27300
So now we know that the image is not the issue as it works just fine on my host:
http://www.langleycom.com/gallery3/index.php/P1050581
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
Got your PM.
I changed your theme to the default wind and added a very small image and was unsuccessful.
I added your image just fine.
I chaged your image toolkit to IM and still get a no thumb or resize.
I noticed a modification to the wind theme, some arrows. So i suggest you install a new G3 with a new DB or DB table prefix in a new directory to see if you can get it to work that way first.
Images worked before, so it is either a host change or your a change you made.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
thanks for trying to diagnose the problem.
I just uploaded and upgraded to the latest experimental code and it's not showing anything different.
I'll try a new database and install tonight. I should be able to just transfer my old database into the newly created db, correct?
Posts: 424
ok, I did some testing..
I created a new database and installed a clean version of gallery 3 to test to see if it works on a default install, and it does.
so the problem I'm having with my live gallery is either something in my database or something in the files. how can I move my current gallery structure (i.e., photos, albums, gallery hits, comments, etc.) over to the clean install?
Posts: 27300
point your new install at the old DB (edit config.php) and add one item. Results?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
pointed the new install at the old DB in /var/database.php (I didn't see anything in /application/config/config.php to edit for the db).
here's the test site:
http://andrewshemo.com/test/gallery/index.php/
as you can see, it has my old albums and such, and also has a few other photos on the main page (which can't be seen because it's not generating thumbnails), however, it is displaying the intermediate photo just fine:
http://andrewshemo.com/test/gallery/index.php/P1050581
Posts: 27300
sorry I had G2 on the brain for a second database.php is right.
does it work if you add a simple item to http://andrewshemo.com/test/gallery/index.php/ ( no spaces or special characters etc in the name or title) just to take baby steps.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
it doesn't build any thumbnails, but it does show the intermediate photo as I wrote in my previous post:
as you can see, it has my old albums and such, and also has a few other photos on the main page (which can't be seen because it's not generating thumbnails), however, it is displaying the intermediate photo just fine:
http://andrewshemo.com/test/gallery/index.php/P1050581
Posts: 27300
if you point http://andrewshemo.com/test/gallery/index.php/ to the new DB and add a item does it work?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
yes, except it's still not generating thumbnails. it is however generating the intermediate image:
http://andrewshemo.com/test/gallery/index.php/P1050581
but if you look on http://andrewshemo.com/test/gallery/index.php, you'll see that the image link is there, but no actual image.
Posts: 27300
Just to confirm:
a test install with a fresh DB works.
The test install pointed at the old DB does not work adding a new image.
That to me says that the DB is hooped or some setting in it is stuck. Have you run the 'fix gallery' task in the dashboard / admin page?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
a test install with a fresh DB works 100%
the test install pointing at the old database adds the image but it doesn't generate the thumbnail. however, it does generate the intermediate photo while the old database wasn't generating thumbnails nor intermediate images.
lastly, the fix gallery task ran but didn't fix the issue.
Posts: 424
any suggestions on this?
Posts: 2
Shemo725, glad to find this post as I am having the same problem. Ever since I migrated all my G2 photos/users over no thumbnails or intermediate pics are being created. I also ran the "fix gallery" function in the maintenance menu to no avail.
I'm running 3.0.1 now, but had the same problem with 3.0.
Posts: 424
yeah, I haven't been able to use my gallery for over a week or so now.
Posts: 27300
Maybe Bharat has a clue, I'll ask.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 424
Dave,
I hope so. I want to get back to adding photos to the gallery.
Posts: 424
any update to this?
Posts: 7994
When you go to the Maintenance page, does it say that you have any photos that need to be rebuilt? It looks like this file is missing:
gallery3/var/resizes/miscellaneous-photos/beer/P1050581.JPG
Can you check to see if it's there? If not, is the file P1050581.JPG anywhere else in your var/resizes dir? Can you check your database and give us a dump of the item with row id=4621? That might help us to figure it out.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 424
the maintenance page says I have 8 photos that need to be rebuilt. upon running the rebuild tool, none of them actually get rebuilt as you can see in the attachment.
I don't see the image file in: gallery3/var/resizes/miscellaneous-photos/beer/ I'm also not seeing it anywhere else in the /resizes folder as I have that same file uploaded in a few different places.
the photo is in the /beer album itself if you browse to it on the site:
http://gallery.andrewshemo.com/miscellaneous-photos/beer/P1050581
if you go to the main beer album and move your mouse around on the page, you can see that the actual file is there, but you can't see it because the thumbnail isn't being generated.
not sure if this is what you wanted, but I searched the terms "4621" in phpmyadmin and it pulled up something from the items table. I'm not really good with mysql so if that's not right, let me know. here's what the table shows:
Posts: 7994
I suspect you might be hitting this issue:
https://sourceforge.net/apps/trac/gallery/ticket/1513
Try creating a file called "policy.xml" in your gallery3 dir and put this in it:
Does that help?
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 424
it doesn't appear as if it helped...
I uploaded a new photo and it's still not generating a thumbnail or an intermediate photo:
http://gallery.andrewshemo.com/test
but direct access to the photo works:
http://gallery.andrewshemo.com/var/albums/test.jpg?m=1298847910
Posts: 1
I noticed a modification to the wind theme, some arrows. So i suggest you install a new G3 with a new DB or DB table prefix in a new directory to see if you can get it to work that way first.
Posts: 424
I've tried new installs and such. I don't want to lose my album structure or any of the meta data, however.
bharat, any ideas with the data I provided for you?
Posts: 7994
Hm. So I'm guessing that one of the ImageMagick operations is failing, but it's hard to tell which one because the Kohana ImageMagick driver doesn't give us enough debug info. Read this topic and then try using the debug driver from here:
http://gallery.menalto.com/node/99982#comment-365084
Do you get more info in your error logs with this driver?
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 424
ok, I installed the file where you mentioned it to be installed in the other thread and also tried adding a photo.
attached is my most recent log. I hope that's what you wanted.
Posts: 424
bumping this.
I've switched the image toolkit from imagemagik to gd and the gallery is still not generating thumbnails on newly uploaded photos.
I'll attach my latest log.
Posts: 7994
I see this in your logs:
That indicates some database corruption. I'd like to investigate, but I have limited time. Can you send me a dump of your database so that I can poke at it and see what I can figure out? Also tell me which album you were trying to add photos to. Perhaps I can improve the fix gallery task to undo this corruption.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 32
Same issue here (I think). Recently updated G3 from a forked version to the "mainstream" one and just went to try to upload a pic and it gets there, but no thumbnail is created - throwing the same error as OP. Mainly just writing to bump this to attention....
Not sure if this is normal, but the only thing in <gallery3>/var/uploads or tmp is a .htaccess file.
Posts: 424
I completely redid the gallery on a new database. unfortunately I don't have any logs of the old database.
Posts: 7994
Oh well. If it happens again, save off a copy of the db first
@chamb1: sounds like you've probably got a different issue -- please start a new topic so that we don't confuse this one.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!