I updated my gallery to the last version available (version 1.4.1.4). All the tabs of the admin panel are working properly except for the only necessary one: UPLOAD.

Every time I click on upload, I receive the following error message:
Gateway Time-out
The gateway did not receive a timely response from the upstream server or application.
Any idea?
Comments
"Gateway timeout" indicates some sort of proxy server. Is that something you are deliberately using? We don't normally see ZP sites behind proxy servers.
My previous version was 1.4.0 if I'm not wrong. With the older version it sometimes happened that I couldn't open the "Upload" page because of a gateway timeout.
But now, uploading images is really impossible. Since the version update, I have never seen the upload page.
I don't use proxy servers.
ps. all the other tabs open their pages correctly. Upload is the only one with this problem.
But the real issue is why either script is taking longer than the "gateway" will accept. The gateway must be part of your ISP configuration. Perhaps you can find out what its timeout is set to?
$albumlist = array();
genAlbumUploadList($albumlist);
and the page loaded correctly. I then added a different query (SELECT * FROM zp_albums ORDER BY id desc LIMIT 0,5) in order to have a slim dropdown menu. This works fine if you don't need to update older galleries.
The only thing is... this query returns 4 galleries (not 5), and doesn't display the latest in the dropdown menu. Do you have a better solution in order to have $albumlist with just a few results?
Thanks in advance
You can try adding a script timeout extension in the loop of the function to see if the script is timing out. Add `set_time_limit(60);` to beginning of the function.
That's why I need to truncate that function.
But I'd like to have a cleaner way to do it.