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 |

Posts: 9277
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
Posts: 6
Gallery was installed from source.
Posts: 9277
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
Posts: 6
PHP Version 5.2.6-3ubuntu4.2
Posts: 9277
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
Posts: 6
Smarty debug is the only debug information available, which is attached.
Posts: 3367
Could it just be something as simple as php timing out on long tasks? What is your max execution time set to?
Posts: 6
the progress bar lockup/abort is almost instantaneous, and without any error messages.
Posts: 6
OK, I just checked, and the images are in fact uploading. I just never get any indication that it's done the job.
Posts: 9277
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?
And it continues....
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 3
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
Posts: 9277
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
Posts: 3
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?
Posts: 9277
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
Posts: 3
Thanks again for your support nivekiam, I'll try to ask my host.