Image upload problem

sataylor

Joined: 2005-05-18
Posts: 26
Posted: Fri, 2009-03-27 00:37

This is my first stab at Gallery3. When I created a new album the pop-up window didn't change or go away so I clicked on the "Create" button several times. I finally gave up, closed the pop-up and then found that I now had 6 albums of the same name. I clicked on each one and clicked on the delete button for 5 of them and it showed the little activity icon for those albums but nothing changed. Finally, I stopped and reloaded the window and the ones I had deleted were gone. When I tried uploading some images, I got an error 500 on each of them. The images are actually in the album folder but there are no thumbnails for them. If I click through to the full size picture, it displays fine. My var directory's properties are 777 but all the directories under it are 755. The albums I deleted are still listed under the albums, resize, and thumbs directories and one of the album folders has my uploaded pictures but the equivalently named resize and thumb folders have nothing. What is going on and where do I go from here?

 
trunks403

Joined: 2009-03-27
Posts: 1
Posted: Fri, 2009-03-27 10:43

i having the same issue but when use 1280 RES* i do have the thumbs but when i am using 1920 or higher they dont have can this be fixed?

 
djungelorm

Joined: 2009-03-27
Posts: 2
Posted: Fri, 2009-03-27 19:27

I have the same issue with uploading files with alpha3: error 500 on upload and no thumbnails generated. Uploaded photos are merely file name links in the app. I do see the uploaded images in the file system and can click through to see the full sized images. I tried to use the maintenance task to generate the thumbnails, but the process stalled (i.e. the progress bar appeared but nothing happened). I do not see any logged errors except various entries on not being able to find the thumbnail files.

Platform Information
Operating System: FreeBSD
Apache: Apache/2.2.11 (FreeBSD) mod_ssl/2.2.11 OpenSSL/0.9.8e DAV/2 PHP/5.2.9 with Suhosin-Patch
PHP: 5.2.9
MySQL: 5.1.32

FWIW Gallery 2 has been running fine on this machine.

 
djungelorm

Joined: 2009-03-27
Posts: 2
Posted: Fri, 2009-03-27 19:45

I changed the graphics toolkit from ImageMagick to GD and now all is well... the thumbnails rebuilt and images can now be uploaded. I do have ImageMagick on the system which Gallery thought was not installed for some reason.

 
sbw

Joined: 2009-03-28
Posts: 6
Posted: Sat, 2009-03-28 15:55

This sounds quite similar to the symptoms I was seeing. I reported that problem, and my workaround, here:

http://gallery.menalto.com/node/86809

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-04-07 06:36

Sounds like there's probably an error going on, but since it's an Ajax request you're not seeing the error response. Check the log files in var/logs for more details about the specific error (there are a lot of common repeated boilerplate lines in there, you can ignore those-- look for lines that stand out).

 
sataylor

Joined: 2005-05-18
Posts: 26
Posted: Mon, 2009-05-11 00:55

I have now installed Alpha 4 and the error messages have gone away but I still am not getting resized images or thumbnails. The images I have uploaded do show up in the Albums but nothing is in the other directories. My host system only has support for GD and not for ImageMagick and Gallery recognizes GD as the graphic tool kit that it is using. The is no path to it in the database vars table but I have been told that GD does not have a separate path since it is part of PHP. Since the images are uploading fine and are being put into the appropriate Album directory, it seems as though they are not being processed though GD. Also, in Maintenance, if I select "update images", it just hangs with the progress bar and nothing happens. There doesn't seem to be anything in the log file about what's happening.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-05-11 04:07

@sataylor: I'm surprised that there's nothing in the gallery3/var/logs files. Can you double check? If it's hanging there should be something either there or in the Apache error logs that would give us a clue. Also, can you try downloading a nightly release? We've made some fixes since the Alpha 4 release that may help you out here.

 
sataylor

Joined: 2005-05-18
Posts: 26
Posted: Mon, 2009-05-11 15:21

There is only one log file and it contains this:

<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-05-09 10:41:45 -07:00 --- error: Uncaught PHP Error: Undefined variable: output in file kohana/helpers/file.php on line 68
2009-05-09 11:29:01 -07:00 --- error: Uncaught PHP Error: mysqli::mysqli() [<a href='mysqli.mysqli'>mysqli.mysqli</a>]: (42000/1203): User a2824021_G3 already has more than 'max_user_connections' active connections in file kohana/libraries/drivers/Database/Mysqli.php on line 52

I will try a nightly release as soon as I can.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-05-11 15:40
Quote:
User a2824021_G3 already has more than 'max_user_connections'

FAQ: I seem to be running into some sort of MySQL query limit, is there anything that can be done?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
sataylor

Joined: 2005-05-18
Posts: 26
Posted: Mon, 2009-05-11 18:08

I removed my Alpha 4 installation, removed the database, recreated it, and then loaded the most recent nightly build. Same problems. My log file now looks like this:

<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-05-11 10:45:46 -07:00 --- error: Uncaught PHP Error: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: File exists in file core/helpers/album.php on line 60
2009-05-11 10:48:00 -07:00 --- error: Uncaught Exception: @todo FORBIDDEN in file core/helpers/access.php on line 176
2009-05-11 10:53:28 -07:00 --- error: Uncaught Exception: @todo FORBIDDEN in file core/helpers/access.php on line 176
2009-05-11 10:56:49 -07:00 --- error: Uncaught Exception: @todo FORBIDDEN in file core/helpers/access.php on line 176

Also, the login pop-up window and other pop-ups such as uploading photos, never go away when I selet "log-in" or "Done" in the windows. The actions have completed but the only way to continue is to reload the web page. This happens for me with Opera and Firefox running on Kubuntu and with Opera, Firefox, and IE6 on Win2000. I don't know if this is related to the other problem.

 
sataylor

Joined: 2005-05-18
Posts: 26
Posted: Mon, 2009-05-11 20:39

Continuing this saga, I tried a different host provider and the pop-up window problems have gone away, however, I am now getting the Error: 500 and no success in uploading images. I set the graphics to GD which was also the only thing available on this host as with the previous host I had tried. no log file was generated.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-05-12 04:15

Just to clarify:

You started with a error in the log file about some host limitation.
installed a new version and now get a error: Uncaught PHP Error: mkdir() error that soound slike a permisisons issue.
Then you moved to a new host and get a 500 error.

See our confusion?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
sataylor

Joined: 2005-05-18
Posts: 26
Posted: Tue, 2009-05-12 19:50

Yes, I am confused also. My previous experience was with Gallery 2 hosted on my son's computer when he worked for a small company in the mid west. They ran their company web site on it and my site was along for the ride, so to speak. Since then he has left that company and they had problems with the computer and shut it down. I have now tried bringing up my site on a free hosting platform with limited space available, 1500MB, and thought that Gallery 3 would be ideal. I realize that it is just in Alpha now so that's why I am just experimenting with it. I would feel better if I knew more about it but I am trying to learn. When it didn't work correctly on the first host, I figured that the problems I was seeing may be host related, so that is why I tried a different host provider. And I did see differences. I have since tried a third host and even though I have gone through the same installation steps and Gallery says that it has installed correctly, I get a different series of problems. On this last attempt, when I try to upload pictures, the upload seems to go OK, no Error: 500, and in fact the progress bar for each upload image goes by rather quickly, much faster than on either of the other hosts. The problem on this host is that the image files are not there, not even in the uploads directory. So with the same code, on three different installations on three different hosts, I am getting three different sets of symptoms. I guess it is time to stop and wait for the Beta and then try again.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-05-12 20:02

@sataylor after you got the nightly release, did you try doing a complete reinstall? Blow away your var directory and drop your database, then try the installer again (which means you'll have to create the var directory again, but it'll be empty). I'm guessing that the mkdir() error is coming from something hanging around from prior attempts. I'm also suspecting that I fixed your "forbidden" error in a recent nightly. If this still doesn't work, can you give me access to your website? I'd love to understand exactly what's going wrong and fix it asap.

 
sataylor

Joined: 2005-05-18
Posts: 26
Posted: Wed, 2009-05-13 02:01

I did try to do a complete reinstall but you are right, I remember now that I couldn't get rid of the var directory completely. All the files in the uploads directory and the log files in the log directory are showing up as 99 for group and owner. It won't let me chnod them to 0777 so I can't delete them. Deleting the images in Gallery didn't remove the associated files in the uploads directory. What I can do is rename the gallery3 directory. I'll try that with a complete reinstall tomorrow and let you know what happens.

 
sataylor

Joined: 2005-05-18
Posts: 26
Posted: Wed, 2009-05-13 15:31

OK, so I renamed the old gallery3 directory, dropped the database, recreated it, uploaded the 5-13 nightly, created the var directory, set it's permission to 0777, performed the Galley3 installation and all went well. The login pop-up still doesn't go away after clicking on "Login". Then I created a new album which went OK. Then I tried to upload a couple pictures. First in Firefox which completely kicked me out after the last picture completed uploading. Then I logged back in with Opera and tried to upload the same pictures. It got to the nearly the end of the last picture and then hung. I checked the uploads directory and there was nothing in it. The album directory was present in the appropriate directories. After quiting I checked the log file and this is what it had in it:

<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-05-13 08:09:58 -07:00 --- error: Uncaught Exception: @todo FORBIDDEN in file core/helpers/access.php on line 176
2009-05-13 08:11:31 -07:00 --- error: Uncaught Exception: @todo FORBIDDEN in file core/helpers/access.php on line 176
2009-05-13 08:13:39 -07:00 --- error: Uncaught PHP Error: mysqli::query() [<a href='mysqli.query'>mysqli.query</a>]: (08S01/1053): Server shutdown in progress in file kohana/libraries/drivers/Database/Mysqli.php on line 117

What kind of access do you need to my web site?
Thanks.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2009-05-16 01:10

Weird. Well, to start can you PM me a link to your gallery 3 and your admin u/p? I'll see if I can reproduce the problem from here. If I can, then the next step would be to get ssh, ftp or cpanel access to your site so that I can tinker with the code and try to figure out how to fix it. Thanks.
---
Gallery 3 problems? Check gallery3/var/logs before you post!
Gallery 3 nightlies: http://www.gallery2.hu/download/Gallery3/gallery3nightly.tar.gz
Gallery 3 subversion: http://codex.gallery2.org/Gallery:Using_Subversion#Quick_Start