Uploads and progress bar no longer working

ianbeyer

Joined: 2009-11-03
Posts: 6
Posted: Tue, 2009-11-03 17:25

Running Gallery 2.3 on Ubuntu 9.04 stock LAMP stack with GD and IM - suspect package updates may have broken the ability to upload or do anything that relies on the progress bar. All packages, toolkits, libraries from Ubuntu Jaunty packages, none manually built.

Progress bar stops moving, page shows "done" in browser.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9277
Posted: Tue, 2009-11-03 18:24

Hello,

So did you install Gallery from Ubuntu's repository using apt-get?

I'm betting it's a symlink or a newer version for Smarty that's broken if that's the case.

Quick and easy fix. Download Gallery from our site: http://codex.gallery2.org/Downloads and replace your current code base. It'll most likely magically start working.

If not, then we'll need to trouble shoot further.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
ianbeyer

Joined: 2009-11-03
Posts: 6
Posted: Tue, 2009-11-03 19:24

Gallery was installed from source.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9277
Posted: Tue, 2009-11-03 19:27

Oh wait. What version of PHP is running on the server now?

If it's 5.3, you'll need to downgrade to 5.2.x to make G2 work properly again.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
ianbeyer

Joined: 2009-11-03
Posts: 6
Posted: Tue, 2009-11-03 19:34

PHP Version 5.2.6-3ubuntu4.2

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9277
Posted: Tue, 2009-11-03 19:47

o.k. Let's get into debugging.

Put gallery into debug mode and try uploading. Copy and paste the debug output into a text file, zip it and attach. We don't need the output from the Smarty Debug popup, just the main screen. There might be a few screens from the redirection of loading different pages, if you could grab the output from each of them that would be good.

FAQ: How to set/use Gallery in debug mode?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
ianbeyer

Joined: 2009-11-03
Posts: 6
Posted: Tue, 2009-11-03 20:06

Smarty debug is the only debug information available, which is attached.

AttachmentSize
debug.zip3.08 KB
Login or register to post comments
alecmyers

Joined: 2006-08-01
Posts: 3367
Posted: Tue, 2009-11-03 20:09

Could it just be something as simple as php timing out on long tasks? What is your max execution time set to?

Login or register to post comments
ianbeyer

Joined: 2009-11-03
Posts: 6
Posted: Tue, 2009-11-03 20:13

the progress bar lockup/abort is almost instantaneous, and without any error messages.

AttachmentSize
gallery_error.PNG103.51 KB
Login or register to post comments
ianbeyer

Joined: 2009-11-03
Posts: 6
Posted: Tue, 2009-11-03 20:16

OK, I just checked, and the images are in fact uploading. I just never get any indication that it's done the job.

AttachmentSize
gallery_error2.PNG80.71 KB
Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9277
Posted: Tue, 2009-11-03 20:21

Should've asked for this before.

Post your system info and a link to phpinfo:
FAQ: What information is required when I ask for help in the forums?

Googled and found your site :)

I see a lot of odd output on the page, try clearing your cache:
FAQ: How can I clear cached data?

Quote:
(mysqli): INSERT INTO g2_CacheMap (g_key, g_value, g_userId, g_itemId, g_type, g_timestamp, g_isEmpty) VALUES ('5d241d5a6c4d1a32ecc13185c8666089','\\355\\\\\\353o\\332J\\026\\377W\\220?l[\\2512~\\201\\2014\\335\\315\\243\\355EJ(\\n\\244W+\\255\\204\\006{\\200i\\214\\355\\353\\261Cs\\263\\374\\357{\\316\\314\\330\\330@^mr\\223\\315\\345K\\202\\347q\\346\\274\\177g\\306\\017\\322q;\\327\\274c\\232\\035mpt\\326\\355\\017G\\275\\203\\323O\\332\\036\\357\\264;Z}NX\\250\\307\\263\\030\\257\\235\\2166\\243\\304\\327\\366H\\247\\201S\\354\\216\\226\\306\\001^\\232x\\351\\270\\035m\\036\\371Y@y\\235\\315\\311\\224N\\0222\\247\\365\\224\\316\\343\\200\\244\\320\\330\\305\\306\\317\\330\\370\\033\\220\\321\\305\\\\X\\270UL\\033\\255\\246i{K\\016\\253h<\\275\\n(.at\\256\\241\\3054:\\332wrI\\270\\227\\2608-\\226\\266\\332\\253\\24

And it continues....
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
TNDE

Joined: 2009-11-04
Posts: 3
Posted: Wed, 2009-11-04 21:17

Hi guys,

I've the same problem, when I try to upload a file, or create a link, the progres bar freeze at the very beginning and then nothing happen.
In debug mode the following message appear under the progress bar :
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 30720 bytes) in /mnt/sites/gosteli.ch/web/gallery/modules/imageblock/classes/ImageBlockHelper.class on line 1051

There is already 16M memory limit and php 5.2.
I'm googling for a long time and found nothing yet.

Maybe you have something that can help me?

Link to phpinfo : http://www.gosteli.ch/gallery/info.php
In attachment a capture of the error

AttachmentSize
errorG2.jpg24.42 KB
Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9277
Posted: Wed, 2009-11-04 21:23

Close but not quite the same problem.

Increase the memory to 32M at least.
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?

You may need more since you can't use any other image toolkit other than GD and that will consume PHP memory as it works on images. Best of luck using such a restrictive host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
TNDE

Joined: 2009-11-04
Posts: 3
Posted: Wed, 2009-11-04 22:24

Thanks a lot for the link, the solution with the ini_set() worked well!

Do you know if it's possible to activate the function exec using the same method?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9277
Posted: Wed, 2009-11-04 22:32

No, it's not possible. You'll need to contact your host or find one that's better. Here's my opinion:
http://gallery.menalto.com/node/88391#comment-310594
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
TNDE

Joined: 2009-11-04
Posts: 3
Posted: Thu, 2009-11-05 00:10

Thanks again for your support nivekiam, I'll try to ask my host.

Login or register to post comments