I recently completed the upgrade to Gallery 2.3-1 from Debian Unstable. I am using 0.9.1 which is the latest version of Gallery2Flickr. Exporting to Flickr worked fine before the upgrade - I exported thousands of pictures that way.
Now when I follow the "Export to Flickr" I get the normal "Flickr Export" page with the "Photo view permissions" settings radio buttons. So far, all normal. But when I activate the "Export item to stream" button, after a few seconds the album page just reloads. There is no message or apparent error.
Am I the only one to witness this ? Are there reports of incompatibility between Gallery2Flickr 0.9.1 and Gallery 2.3 ? Are you succeeding in making Gallery2Flickr 0.9.1 work with Gallery 2.3 ?
My setup :
Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.4.0-4 apache2handler
Webserver = Apache 2.2
Database = mysqlt 4.1.14-Debian_6-log
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Gd
Operating system = Linux 2.4.26
Browser = Mozilla Firefox
Posts: 80
According to those two posts by two different users with the same symptoms, I'm not alone. That is a start... Let's see what our Gallery setups have in common.
Posts: 1
I happened to the same problem, hope that can be fixed soon.
Posts: 80
@Gunnar What can we do to help fix the problem ? Any tests you might want us to perform ?
Posts: 1
Hi,
I just installed Gallery2Flickr 0.9.1 over the weekend, and I also had the same problem. After some investigation, it looks like there is a small bug in the export code. Basically, there is some code for copying the images to a temporary directory that exists for doing imports, but appears to have been copied improperly for exports. The following patch fixed it for me:
areitz@disposition:~/Downloads$ diff Gallery2Flickr/classes/Gallery2Flickr.class.php.orig Gallery2Flickr/classes/Gallery2Flickr.class.php.new 398a399,400 > /* Copy the file locally */ > $tmpDir = $gallery->getConfig('data.gallery.tmp');Basically, you have to go to your Gallery modules directory, and then modify the 'Gallery2Flickr/classes/Gallery2Flickr.class.php' file. Starting at line 400 in this file, add the two lines in the diff above. Save, and then try to export again.
Good luck!
Posts: 1
I made this change and it worked. I was able to copy over a couple of test galleries to flickr. 1 gallery had 200+ pictures, the other had 10
Unfortunately, in both cases, although the pictures were copied over, the process didnt seem to finish and eventually served up a Internal Server 500 error. The only thing I see in the logs is a couple of "Premature end of script headers: php.cgi"
Posts: 3
I independently arrived at the same fix as above about an hour ago, and I can confirm that fixes the problem. Gallery2Flickr never should have worked with this bug, so they must have been choosing a "reasonable default" in the G2 core before and not anymore.
There is however, another bug in the export code that could be causing problems:
$pid = $this->flickr->sync_upload ($path, $FlickrTitle, $item->getDescription(), $item->getKeywords() . implode(", ", $tags), $is_public, $is_friend, $is_family); GalleryCoreApi::releaseLocks($lock); @$platform->unlink($path);That last line (@$platform->unlink($path);) needs to be added. (I'm not sure what line number that would be since I've modified my copy to export the tags from the G2 tag module instead of the G2 keywords.) I found this out when all my exports died after varying numbers of uploads, and then discovering the /tmp directory on the server had run full of my exported photos.
Also: I think it's confusing to have a forum over here and a forum over at SourceForge. Everyone should be directed into one or the other.
Posts: 14
I have tried both fixes and I still get about 12 images uploaded and then the 500 Internal Error.
How can I debug this?
Posts: 14
Upgraded to phpFlickr 2.3.0.1 and now I only got 3 images.
Posts: 5
areitz and rong,
Thank you SOO much for taking the time to post these fixes. I've been struggling with this for over a day and almost gave up. I really appreciate your help!
And thank you, Gunnar, for creating this awesome module in the first place. :D
Posts: 16
I have only made the change by areitz, I have been able to upload well over 15 images (first test) without any problems.
One thing is, is that my PHP memory limit, which I changed from my host default of 32M, upto 50M. This could help.
Gallery URL = http://gallery.andyramblings.co.uk/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.42-servage10 apache2handler
Webserver = Apache
Database = mysqli 5.0.51a, lock.system=flock
Toolkits = Getid3, LinkItemToolkit, Thumbnail, ArchiveUpload, ImageMagick, NetPBM, Gd, Exif
Acceleration = partial/21600, none/900
Operating system = Linux node2 2.100.3-1-amd64-grsec #1 SMP Thu Oct 2 20:14:46 CEST 2008 x86_64
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 55
Rows in GalleryAccessSubscriberMap table = 448
Rows in GalleryUser table = 2
Rows in GalleryItem table = 445
Rows in GalleryAlbumItem table = 18
Rows in GalleryCacheMap table = 896
Posts: 80
I gave it a try again... With Debian's Gallery 2.3-1, with both Gunnar's included phpFlickr or phpFlickr 2.3.0.1, with or without areitz's fix, I get the same result : I can choose the privacy level, and then I get dropped back to the album page.
Still frustrated...
Indeed, edalzell's case looks like he reaches a memory limit.
Posts: 16
I noticed that you are using PHP 4. Have you tried to use PHP 5? PHP4 has reached end of life and PHP 5 is now the recommended version to use.
Posts: 40
I am having the same export issue. I've read this thread but am a little confused by the edits made by areitz and rong (what was edited/added, and where). Could someone please summarize this? I'd like to get the export function working!!
Thanks!
Allan