[SOLVED] Unable to delete items or albums

doublea1535

Joined: 2005-03-21
Posts: 9
Posted: Mon, 2005-03-28 09:25

I cannot delete albums nor items in albums. When I cllick on the delete button, the page goes blank. I go back to my gallery and the item or album is still there. I am not receiving any failure messages or any indication that the operation is failing (other than the fact my items are still there). I am logged in as the gallery administrator, I own the album and items, and I have all permissions (both filesystem level 777 and in Gallery) on said items/albums.

It is also worth noting that Gallery 2 freezes for me in other areas as well. This includes importing the photos from G1 to G2. It works and it loads all the files, it just never finishes and allows me to smoothly transistion to the next page. It hangs displaying transfer info for the last file. Also when I upload from the local server, the upload actually occurs successfully but I am left with a blank page and must refresh and click my way back.

But the main issue is not being able to delete items or albums.

Ps. Gallery 2 rocks, I love the ffmpeg support and random highlits!

----

Gallery URL (optional): doublea.cc (click on the gallery link)
Gallery version: 2.0-beta-1+
Webserver (with version): Apache 2
Datatabase (with version): MySQL 4
PHP version (eg 4.2.1): 4
phpinfo URL (optional):
Graphics Toolkit(s): All of them.
Operating system: Fedora Core 1
Web browser/version: Firefox 1, IE 6, Mozilla 1.4.1

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-03-28 10:59

very strange, very bad. what kind of hardware are you using? is it totally underpowered? are you using a php accelerator like PHPA/turk mm cache?
what exact php/apache/mysql version is it?

 
doublea1535

Joined: 2005-03-21
Posts: 9
Posted: Mon, 2005-03-28 12:43

I cannot delete sub-albums regardless.
I can only delete items if they display correctly, and even then its not guaranteed to work.

In both cases I receive a silent failure with no text and a blank page.

> is it totally underpowered?

No. It is 800Mhz AMD with 1GB RAM doing little else. Also, I haven't noticed perf hits anywhere else.

> are you using a php accelerator like PHPA/turk mm cache?

No.

> what exact php/apache/mysql version is it?

PHP Version 4.3.8
Apache/2.0.50
mysqld Ver 3.23.58

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-03-28 13:01

My only guess is that these are all consequences of the migration that didn't finish successfully, some database / g2data corruption.

Perhaps one of the imagetoolkits is causing some trouble. What toolkit priority do you have set?

How much work is it to make a clean install of G2 (empty g2data / empty database) and import from G1 only in small pieces (not 5000 items at once)?

 
doublea1535

Joined: 2005-03-21
Posts: 9
Posted: Mon, 2005-03-28 16:52

Most of the files I am having problems with I "uploaded" from local server following another clean install of gallery2. I think the upload method I am using might have something to do with it. I am going to do some more testing, but so far it doesn't seem that I have any problems removing items that I uploaded using the upload applet. But some of the pictures that I migrated and most of the ones that I "uploaded" from the local server do not display and have issues. Plus the migrating applet and "upload" from local server option never cleanly finishes.

> My only guess is that these are all consequences of the migration that didn't finish successfully, some database / g2data corruption.

I did have some issues with remnants on Gallery2 re-install #1 (this is #3). After that though I got in the habit of nuking all Gallery2 dirs before attemping another install. I also nuke the old MySQL database and recreate it every time too.

> Perhaps one of the imagetoolkits is causing some trouble. What toolkit priority do you have set?

I did some minor flexing of the toolkits by rotating some of the images that display correctly and that worked. My toolkit priority is (they are all installed):

Gd
ImageMagick
NetPBM

> How much work is it to make a clean install of G2 (empty g2data / empty database) and import from G1 only in small pieces (not 5000 items at once)?

Not much because I've re-installed Gallery 2 3 times now so I'm pretty quick at it. As far as emptying the dirs I did a rm -r on the dirs used. As mentioned I nuke the prior DB before doing another install. Also, this last time I changed the DB name by adding a suffix, hoping that maybe issue was remnant DB entries or such.

If that seems like the best option then I can reinstall it again, I still have all source pics of course.

Ps. Every install so far has been via CVS

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-03-28 17:02

the upload type as the cause of the problem? not sure, sounds strange. but at least it'd be a cause :)

@toolkit priority:
have imagemagick, netpbm before GD. GD has the worst quality and takes memory from the "php memory pool".

are the problems always with the same filetype, eg. .gif, .bmp, .jpg, .tiff, .png, ...?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-03-28 17:03

plus, please enable immediate debug mode and try to cause some behavior that shouldn't be, i.e. upload and it times out, or delete and it doesn't delete.etc.
please post the debug info.

 
doublea1535

Joined: 2005-03-21
Posts: 9
Posted: Tue, 2005-03-29 07:14

Ok. I decided to do another clean install first before debugging. I wiped everything and redownloaded via CVS. This time I did two things differently, I disabled Exif (doubt this impacted anything) and didn't install GD. Instead I installed Netpbm and assigned it the highest priority before uploading any images.

1 - It didn't hang or freeze at the end of the import from Gallery1. Everything went smoothly and all pictures displayed correctly. This was a first. GD issue or did you guys update the migrate code within the past 24 hours?

2 - I "uploaded" from local server my entire albums (400mbs) and all pictures displayed correctly.

3 - I was also able to delete numerous albums and items with no problem.

So, it seems like the issue may have been with GD. I think I'll stick with Netpbm for now.

Thanks!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-03-30 04:33

I'm sure it was the GD issue. Because GD is embedded inside PHP, when it crashes and burns it takes everything else with it. :-(