REQUEST: support for Picasa - amazing, FREE Photo organizer
| c4actbe  
      Joined: 2004-09-01 Posts: 83 |  Posted: Sat, 2004-09-04 13:22 | 
| Picasa  has been acquired by Google and now it is FREE (used to be $30). It has the following functionality: It also has the thing called HELLO which adds to Picasa's functionality possibility to send images through IM and to publish them in blogger. I posted the same request on Picasa's msg board | |



 
 
 
 
 
 
 
Posts: 2322
This is something that we would like to occur, but it's Picasa that has to add support for us, not the reverse.
I know that Bharat has spoken to them about it briefly. I'm unaware of what, if any, plans exist.
Posts: 60
While I hate to bring back old threads, it is on the same topic. I don't know if Picasa 1.x had it, but 2.0 supports XML export of albums.
See below for an example. The XML specifies most of the meta data used by gallery (thumb size, captions, album name, photo order, etc.)
I am not a developer, so I am only speculating, but if Gallery can be sent the xml and attending folder of images, it could easy have the captions, layout, etc. already presetup.
- <album>
<albumName>vineyard photos label</albumName>
<albumItemCount>1</albumItemCount>
<albumCaption>label caption</albumCaption>
- <images>
- <image>
<isFirstImage>true</isFirstImage>
<isPrevImage>false</isPrevImage>
<prevImage />
<isLastImage>true</isLastImage>
<isNextImage>false</isNextImage>
<firstImage>images/aas-1.jpg</firstImage>
<itemLargeImage>images/aas-1.jpg</itemLargeImage>
<nextImage />
<nextThumbnail />
<prevImage />
<prevThumbnail />
<lastImage>images/aas-1.jpg</lastImage>
<lastThumbnail>thumbnails/aas-1.jpg</lastThumbnail>
<itemWidth>320</itemWidth>
<itemHeight>240</itemHeight>
<itemThumbnailImage>thumbnails/aas-1.jpg</itemThumbnailImage>
<itemThumbnailWidth>90</itemThumbnailWidth>
<itemThumbnailHeight>70</itemThumbnailHeight>
<itemName>aas-1.jpg</itemName>
<itemNumber>310</itemNumber>
<itemOriginalPath>c:\documents and settings\username\my documents\my pictures\screen saver pix\more\aas-1.jpg</itemOriginalPath>
<itemNameOnly>itemNameOnly UNDEFINED (9)</itemNameOnly>
<itemCaption>Vineyards grapes, this is a caption</itemCaption>
<itemSize>itemSize UNDEFINED (9)</itemSize>
</image>
</images>
Posts: 7994
We can build a much tighter integration with Picasa 2. I'm working on this, as a background task. Hopefully I'll have something that I can demo in the next month or so. If somebody wants to work on an XML import module for G2 that would be awesome (but we should discuss that in the G2 dev forum).
Posts: 78
I would very much like to see this happen also. Bharat, its been about a month or so, have you come up with anything? I know PHP and MySQL and would be willing to work on whatever you have already completed, I know I would use this functionality very frequently.
Please let me know if you have anything.
John
Posts: 2322
Picasa integration has actually become one of the Summer of Code tasks, and is being worked on by one of our students. I don't have status information offhand, however it should be available on the gallery-devel mailing list where statuses are sent, weekly.
Posts: 78
Awesome,
Thanks for letting me know. ALso thanks again to google for buying Picasa, making it free, and paying students to integrate it with open source software.
I must say, I stongly encourage google to go for world domination.
Thanks again,
John
Posts: 3
I may not be posting this in the right place (ie, I might need to e-mail Google about it), but I was wondering what the status was and if it would be a plugin or in a new version of Picasa. Anyone have any ideas? Also, will it be announced on the Gallery main page, or should I watch the Picasa website?
Oh and I agree with SoBeIcedT, a big shout out to Google for all their awesome open source software support .
 .
Posts: 2322
The Picasa module is scheduled to be done by September. It will be a module in Gallery 2 and will require no special support in Picasa itself (to my knowledge).
I have no firm dates for completion other than "it'll be done when it's done."
Sorry.
Posts: 3
Thanks signe, I appreciate the help! When it does come out, I plan to use it a lot
Posts: 18
Hi all!
I am actually working on this G2 module and thought I needed to give a bit of feedback. The module itself now finally works, but there are still a few improvements to be done and several code reviews to pass.
What will it be able to do once it's finished? Well, as of now it can import a locally stored album previously exported as XML in Picasa. There are plans to allow ZIP File uploads at a later stage. It imports also the album name and caption, and the order of pictures and their captions.
If anyone has any feature requests/suggestions/questions feel free to post it all here, I will be checking up on it regularly now.
Waldemar
Posts: 78
Thanks for the update. I would love to see a feature in Gallery where I can export my albums from Gallery to the XML format that Picasa uses so that I can move all the images my friends upload to my gallery site into Picasa.
I have lots more ideas for this module, I just can't think of them at the moment. I'll put them up here when they come to me.
BTW, Thanks for working on this. I, as well as the members of my site, REALLY appreciate your work.
-John
Posts: 3
Hello Waldemar,
I was wondering if you had any updates for us concerning the G2/Picasa module, as well as its integration/inclusion with the imminent G2 release. I noticed that all of the other modules's version/MANIFESTs are being bumped to 1.0 (for G2 release), but didn't see any Picasa module. Is there a seperate location to obtain it, even if its a beta/pre-release? Am I looking in the wrong place? All I was able to find about it was the following:
* Reviewed Picasa importer (waldemar)
http://marc.theaimsgroup.com/?l=gallery-devel&m=112615651226026&w=2
Also, I'm curious on how the Picasa folder->G2 album process would work. As far as I can see, you would select a Picasa folder (or Label, or just photos), then do a "Make a Webpage", select Original Size (or whatever you wished), then choose "XML Code" as the format. Then, you would upload those files to a directory on the host running G2, into an allowed upload directory (site admin), then import from there. However, doing that, I was only able to select the images or thumbnail directories (and the index.xml file as well), which didn't produce the desired results. (Which leads me to believe that either I'm doing something wrong, or that perhaps the module isn't in there quite yet.)
Thanks!
Marcus
Posts: 21
How exciting that this is actually coming along?
Does this sub-project have a home-page somewhere for discussions and beta downloads?
Congrats on a substantial contribution.
Posts: 3
So is Picasa working with G2 now? I can't find any recent documentation on it either, other than http://gallery.menalto.com/node/29115?highlight=picasa
Posts: 23
I just installed it from CVS and had to modify the code in a couple of places. In templates/ConfirmImport I changed line 48 to this:
<span> {g->text text="Title: %s" arg1=$ConfirmImport.targetAlbum.title} </span><br/> <span>In classes/Picasa2DataParser.class at line 80 I removed adding the xml line to the top of the xml as it's already there in my Picasa-generated xml file:
} /*$rawXml='<?xml version="1.0" encoding="iso-8859-1"?>'.$rawXml;*/ $xmlParser = xml_parser_create();After these changes it works ok from admin. Doesn't seem like there's support for zip-file uploading, yet. Too bad as there's no way for regular users to use this.
Posts: 18
Hey everyone!
Sorry for replying that late, but I have quite turbulent couple of days behind me.
@Marcus: Did you try the latest CVS version? There were quite major changes between the beginning of september and the last commit.
@jg123: Is the first change really necessary? The second change was a surprise for me, it seems as if they reworked the XML Export in the new version of Picasa (though I didn't have time to check just yet). In the earlier versions the XML-Files Picasa generated were nowhere near XML compliant and did not have that header.
Maybe someone can test whether special characters (like german umlauts) now work in the XML-Export (the previous version did not support this, but as they are exporting with UTF-8 now, it might have changed).
I reworked the XML-Parser so that DOMXML isn't required anymore. There were a lot of style updates as well. There will be a further commit soon, which mainly updates the unit tests.
After that there will be a review and then I can start adding new features. I hope to have ZIP upload (which I already started in the background a couple of weeks ago) committed by mid-october, but we'll see.
Posts: 18
Just an update for those who are interested: I just have committed the code which allows every user to upload zipped exports from Picasa. Right now you can check it out from CVS on gallery-contrib, but it is going into the official gallery release hopefully soon.
Posts: 23
Couple of things. When I click on activate in modules I get a blank page. If I refresh it says the module is activated.
It may have to do with this
Importing from admin still works. The tab on the add items page doesn't seem to. I get this:
I upped the memory to 96M. I get this:
Looks like there may be a bad loop.
Posts: 18
Hey jg123,
thanks for the feedback. I will look into that tonight, especially the memory issue is very strange and might need time.
Could you possibly try to run the unit tests as well and tell me if these pass?
You get the unit tests by going to: http://your.host/pathtogallery/lib/tools/phpunit/?filter=picasa
Thanks,
Waldemar
Posts: 23
Here you go:
Test Results Unhandled reply Received: Function: fopen Request: Array ( [0] => /home/josh/g2data/locks/0/7/7 [1] => wb+ [2] => 0 ) Expected: Function: legalizePathComponent Request: Array ( [0] => albumtest ) Error (ERROR_PLATFORM_FAILURE) : /home/josh/g2data/locks/0/7/7 * in /usr/share/gallery2/modules/core/classes/FlockLockSystem.class at line 261 (gallerystatus::error) * in /usr/share/gallery2/modules/core/classes/FlockLockSystem.class at line 69 (flocklocksystem::_acquirelock) * in /usr/share/gallery2/modules/core/classes/helpers/GalleryLockHelper_simple.class at line 66 (flocklocksystem::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 2068 (gallerylockhelper_simple::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/helpers/GalleryItemHelper_advanced.class at line 446 (gallerycoreapi::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 1475 (galleryitemhelper_advanced::createalbum) * in /usr/share/gallery2/modules/picasa/test/phpunit/ConfirmPicasaImportControllerTest.class at line 72 (gallerycoreapi::createalbum) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 377 (confirmpicasaimportcontrollertest::setup) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 551 (confirmpicasaimportcontrollertest::runbare) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 258 (prettytestresult::run) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (confirmpicasaimportcontrollertest::run) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (testsuite::run) * in /usr/share/gallery2/lib/tools/phpunit/index.tpl at line 216 (testsuite::run) * in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 Unhandled reply Received: Function: opendir Request: Array ( [0] => /usr/share/gallery2/modules/core/classes/helpers/../../../../modules/ ) Expected: Function: Request: Unhandled reply Received: Function: opendir Request: Array ( [0] => /usr/share/gallery2/modules/core/classes/helpers/../../../../themes/ ) Expected: Function: Request: Unhandled reply Received: Function: fopen Request: Array ( [0] => /home/josh/g2data/locks/0/7/7 [1] => wb+ [2] => 0 ) Expected: Function: legalizePathComponent Request: Array ( [0] => albumtest ) Error (ERROR_PLATFORM_FAILURE) : /home/josh/g2data/locks/0/7/7 * in /usr/share/gallery2/modules/core/classes/FlockLockSystem.class at line 261 (gallerystatus::error) * in /usr/share/gallery2/modules/core/classes/FlockLockSystem.class at line 69 (flocklocksystem::_acquirelock) * in /usr/share/gallery2/modules/core/classes/helpers/GalleryLockHelper_simple.class at line 66 (flocklocksystem::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 2068 (gallerylockhelper_simple::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/helpers/GalleryItemHelper_advanced.class at line 446 (gallerycoreapi::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 1475 (galleryitemhelper_advanced::createalbum) * in /usr/share/gallery2/modules/picasa/test/phpunit/ConfirmPicasaImportControllerTest.class at line 72 (gallerycoreapi::createalbum) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 377 (confirmpicasaimportcontrollertest::setup) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 551 (confirmpicasaimportcontrollertest::runbare) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 258 (prettytestresult::run) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (confirmpicasaimportcontrollertest::run) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (testsuite::run) * in /usr/share/gallery2/lib/tools/phpunit/index.tpl at line 216 (testsuite::run) * in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 Unhandled reply Received: Function: opendir Request: Array ( [0] => /usr/share/gallery2/modules/core/classes/helpers/../../../../modules/ ) Expected: Function: Request: Unhandled reply Received: Function: opendir Request: Array ( [0] => /usr/share/gallery2/modules/core/classes/helpers/../../../../themes/ ) Expected: Function: Request: Unhandled reply Received: Function: fopen Request: Array ( [0] => /home/josh/g2data/locks/0/7/7 [1] => wb+ [2] => 0 ) Expected: Function: legalizePathComponent Request: Array ( [0] => albumtest ) Error (ERROR_PLATFORM_FAILURE) : /home/josh/g2data/locks/0/7/7 * in /usr/share/gallery2/modules/core/classes/FlockLockSystem.class at line 261 (gallerystatus::error) * in /usr/share/gallery2/modules/core/classes/FlockLockSystem.class at line 69 (flocklocksystem::_acquirelock) * in /usr/share/gallery2/modules/core/classes/helpers/GalleryLockHelper_simple.class at line 66 (flocklocksystem::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 2068 (gallerylockhelper_simple::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/helpers/GalleryItemHelper_advanced.class at line 446 (gallerycoreapi::acquirereadlock) * in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 1475 (galleryitemhelper_advanced::createalbum) * in /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 57 (gallerycoreapi::createalbum) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 377 (itemaddfrompicasatest::setup) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 551 (itemaddfrompicasatest::runbare) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 258 (prettytestresult::run) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (itemaddfrompicasatest::run) * in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (testsuite::run) * in /usr/share/gallery2/lib/tools/phpunit/index.tpl at line 216 (testsuite::run) * in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 # Module Class Function Success? Time 1 picasa confirmpicasaimportcontrollertest testcancelimport FAIL 0.5762 2 picasa confirmpicasaimportcontrollertest testimportalbumsuccessful FAIL 0.0814 3 picasa itemaddfrompicasatest testimportfrompicasasuccessfullI tried this as a filter: comment:1-3, and it all passed.
Posts: 18
Hi jg123!
I have committed a fix today which fixes your issues. However, before it actually will work you need to patch /modules/core/classes/GalleryPlatform.class
(this will be an official patch, and will be part of the next gallery release). I don't have time to package up a patch at the moment, so I'll just give you
the parts which you need to add:
At line 1109 replace the functions setFilePermissions($file) and _calculateUmaskAndFilePerms() with the following ones:
/** * Set file permissions according to preferences * @param string file path * @return boolean true on success */ function setFilePermissions($file) { if (!isset($this->_filePerms)) { $this->_calculateUmaskAndFilePerms(); } return chmod($file, $this->_filePerms); } /** * Set directory permissions according to preferences * @param string directory path * @return boolean true on success */ function setDirPermissions($dir) { if (!isset($this->_dirPerms)) { $this->_calculateUmaskAndFilePerms(); } return chmod($dir, $this->_dirPerms); } /** * Get umask preference * @access private */ function _calculateUmaskAndFilePerms() { if (!isset($this->_umask) || !isset($this->_filePerms)) { $this->_filePerms = 0644; $this->_dirPerms = 0755; list ($ret, $filePerms) = GalleryCoreApi::getPluginParameter('module', 'core', 'permissions.file'); if ($ret->isSuccess() && !empty($filePerms)) { $this->_filePerms = octdec($filePerms); } list ($ret, $dirPerms) = GalleryCoreApi::getPluginParameter('module', 'core', 'permissions.directory'); if ($ret->isSuccess() && !empty($dirPerms)) { $this->_dirPerms = octdec($dirPerms); } $this->_umask = 0777 - $this->_filePerms; }The Unit Tests will at the moment only work if you have file locking set to Database in Site Admin/General.
I should have the unit test issue fixed by the weekend. GalleryPlatform.class should be committed to the official repository pretty soon as well.
Thanks for testing and sorry for the bugs. If you have time give it another try. It's quite difficult getting this all to work on the different
operating systems. I originally coded it under Windows, where it all runs fine, but some things break in Linux, so I had to fix that.
If it still doesn't work try setting magic_quotes_gpc to Off in php.ini (This is another issue I have to fix before next week).
Waldemar
Posts: 23
You're missing a closing bracket at the end of the code block in case anyone else tries to paste this code in. I'm trying it magic quotes off now.
Posts: 23
Did it set everything to readonly? I can't add items anymore.
Posts: 18
huh? no, it shouldn't have, apart from the items it added itself. What error does it give you?
Posts: 23
I no longer have add items or add albums options, just add to cart. Strange.
Posts: 18
This is strange. Do you have any idea on why? did it happen after you patched GalleryPlatform.class or after you used my module?
Posts: 18
The new version which was committed yesterday should fix all the issues that existed before (even though I still don't know where your last issue came from.).
The CVS now also contains a patch for the Gallery core and the archiveupload module. These patches will be taken into the official gallery code I am told.
I would be very grateful if people could test this.
Waldemar
Posts: 23
This is with the latest from CVS:
Test Results Unhandled reply Received: Function: file_exists Request: Array ( [0] => /tmp.dir/index.xml ) Expected: Function: is_file Request: Array ( [0] => /tmp.dir ) Unhandled reply Received: Function: recursiveRmdir Request: Array ( [0] => /tmp.dir ) Expected: Function: getDirectorySeparator Request: Array ( ) Unhandled reply Received: Function: unlink Request: Array ( [0] => /tmp ) Expected: Function: file_exists Request: Array ( [0] => /tmp.dir/index.xml ) Unhandled reply Received: Function: recursiveRmdir Request: Array ( [0] => /tmp.dir ) Expected: Function: is_readable Request: Array ( [0] => /tmp.dir/index.xml ) Unhandled reply Received: Function: unlink Request: Array ( [0] => /tmp ) Expected: Function: getDirectorySeparator Request: Array ( ) # Module Class Function Success? Time 1 picasa confirmpicasaimportcontrollertest testcancelimport OK 0.8276 2 picasa confirmpicasaimportcontrollertest testimportalbumsuccessful FAIL 1.2848 3 picasa itemaddfrompicasatest testimportfrompicasasuccessfull FAIL 0.6427 4 picasa itemaddfrompicasatest testimportfrompicasafailed_unknowntype OK 0.5756 5 picasa itemaddfrompicasatest testimportfrompicasafailed_emptypath OK 0.5648 6 picasa picasa2dataparsertest testgetbadxmlarray_noversion OK 0.4043 7 picasa picasa2dataparsertest testgetbadxmlarray_notag OK 0.4077 8 picasa picasa2dataparsertest testgetgoodxmlarray OK 0.4186 9 picasa picasa2dataparsertest testgetalbumfromarray OK 0.4054 10 picasa picasaimporthelpertest testconverthtmltobbcode OK 0.4121 11 picasa selectpicasaexportpathcontrollertest testbadpicasaxmlpath OK 0.4114 12 picasa selectpicasaexportpathcontrollertest testgoodpicasaxmlpath OK 0.4143 13 picasa selectpicasaexportpathcontrollertest testmissingpicasaxmlpath OK 0.4104 Summary 7.1797 seconds elapsed 13 tests run 26 failures. Failure Details 1. testimportalbumsuccessful * item 0 Mismatch At: [ 0] ajipankachile5 !== californiadriedchile5 array ( 0 => 'ajipankachile5', 1 => 'Testpicture', 2 => 'Testpicture', ) type:array array ( 0 => 'californiadriedchile5', 1 => 'californiadriedchile5.jpg0', 2 => 'californiadriedchile5.jpg0', ) type:array 2. testimportalbumsuccessful * item 1 Mismatch At: [ 0] californiadriedchile5 !== cascabelchiles5 array ( 0 => 'californiadriedchile5', 1 => 'californiadriedchile5.jpg0', 2 => 'californiadriedchile5.jpg0', ) type:array array ( 0 => 'cascabelchiles5', 1 => 'cascabelchiles5.jpg0', 2 => 'cascabelchiles5.jpg0', ) type:array 3. testimportalbumsuccessful * item 2 Mismatch At: [ 0] cascabelchiles5 !== ajipankachile5 array ( 0 => 'cascabelchiles5', 1 => 'cascabelchiles5.jpg0', 2 => 'cascabelchiles5.jpg0', ) type:array array ( 0 => 'ajipankachile5', 1 => 'Testpicture', 2 => 'Testpicture', ) type:array 4. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 206 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 5. testimportfrompicasasuccessfull * Mismatch At: [] ajipankachile5.jpg0 type (string) !== type (NULL) ajipankachile5.jpg0 type:string null type:NULL 6. testimportfrompicasasuccessfull * 7. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 208 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 8. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 209 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 9. testimportfrompicasasuccessfull * Mismatch At: [] type (string) !== type (NULL) type:string null type:NULL 10. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 206 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 11. testimportfrompicasasuccessfull * Mismatch At: [] californiadriedchile5.jpg0 type (string) !== type (NULL) californiadriedchile5.jpg0 type:string null type:NULL 12. testimportfrompicasasuccessfull * 13. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 208 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 14. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 209 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 15. testimportfrompicasasuccessfull * Mismatch At: [] type (string) !== type (NULL) type:string null type:NULL 16. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 206 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 17. testimportfrompicasasuccessfull * Mismatch At: [] cascabelchiles5.jpg0 type (string) !== type (NULL) cascabelchiles5.jpg0 type:string null type:NULL 18. testimportfrompicasasuccessfull * 19. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 208 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 20. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 209 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 21. testimportfrompicasasuccessfull * Mismatch At: [] type (string) !== type (NULL) type:string null type:NULL 22. testimportfrompicasasuccessfull * Mismatch At: [] extra keys in array 2: 0 array ( ) type:array array ( 0 => 'form[error][picasaZipPath][invalid]', ) type:array 23. testimportfrompicasasuccessfull * child count 1 Mismatch At: [] 1 !== 0 1 type:integer 0 type:integer 24. testimportfrompicasasuccessfull * PHP ERROR: Undefined offset: 0in /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (gallerycoreapi::testimportfrompicasasuccessfull) at line 225 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 25. testimportfrompicasasuccessfull * Error (ERROR_BAD_PARAMETER) o in /usr/share/gallery2/modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 219 (gallerystatus::error) o in /usr/share/gallery2/modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 117 (gallerychildentityhelper_simple::_fetchchilditemids) o in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 2275 (gallerychildentityhelper_simple::fetchchilditemids) o in /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 227 (gallerycoreapi::fetchchilditemids) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 292 (itemaddfrompicasatest::testimportfrompicasasuccessfull) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 380 (itemaddfrompicasatest::runtest) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 551 (itemaddfrompicasatest::runbare) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 258 (prettytestresult::run) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (itemaddfrompicasatest::run) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (testsuite::run) o in /usr/share/gallery2/lib/tools/phpunit/index.tpl at line 216 (testsuite::run) o in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 26. testimportfrompicasasuccessfull * Error count: 5 Remaining requests: Array ( [0] => Array ( [0] => file_exists [1] => Array ( [0] => /tmp.dir/index.xml ) [2] => 1 ) [1] => Array ( [0] => is_readable [1] => Array ( [0] => /tmp.dir/index.xml ) [2] => 1 ) [2] => Array ( [0] => file [1] => Array ( [0] => /tmp.dir/index.xml [1] => ) [2] => Array ( [0] => [1] => GalleryTest 2 [2] => 2 [3] => This is a test [4] => [5] => [6] => images/ajipankachile5.jpg0 [7] => 171 [8] => 426 [9] => thumbnails/ajipankachile5.jpg0 [10] => 42 [11] => 90 [12] => ajipankachile5.jpg0 [13] => Testpicture [14] => [15] => [16] => images/californiadriedchile5.jpg0 [17] => 171 [18] => 426 [19] => thumbnails/californiadriedchile5.jpg0 [20] => 42 [21] => 90 [22] => californiadriedchile5.jpg0 [23] => Testpicture [24] => [25] => [26] => images/cascabelchiles5.jpg0 [27] => 171 [28] => 426 [29] => thumbnails/cascabelchiles5.jpg0 [30] => 42 [31] => 90 [32] => cascabelchiles5.jpg0 [33] => Testpicture [34] => [35] => [36] => ) ) [3] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => GalleryTest 2 ) [2] => GalleryTest 2 ) [4] => Array ( [0] => isLegalPathComponent [1] => Array ( [0] => GalleryTest 2 ) [2] => 1 ) [5] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => GalleryTest 2 ) [2] => GalleryTest 2 ) [6] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [7] => Array ( [0] => file_exists [1] => Array ( [fuzzy] => {.*GalleryTest 2} ) [2] => ) [8] => Array ( [0] => mkdir [1] => Array ( [fuzzy] => {.*GalleryTest 2} [0] => 0755 ) [2] => 1 ) [9] => Array ( [0] => is_uploaded_file [1] => Array ( [0] => /tmp.dir/images/ajipankachile5.jpg0 ) [2] => 1 ) [10] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => ajipankachile5.jpg0 ) [2] => ajipankachile5.jpg0 ) [11] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [12] => Array ( [0] => copy [1] => Array ( [0] => /tmp.dir/images/ajipankachile5.jpg0 [fuzzy] => {.*/ajipankachile5.jpg0} ) [2] => 1 ) [13] => Array ( [0] => filesize [1] => Array ( [fuzzy] => {.*/ajipankachile5.jpg0} ) [2] => 10000 ) [14] => Array ( [0] => is_uploaded_file [1] => Array ( [0] => /tmp.dir/images/californiadriedchile5.jpg0 ) [2] => 1 ) [15] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => californiadriedchile5.jpg0 ) [2] => californiadriedchile5.jpg0 ) [16] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [17] => Array ( [0] => copy [1] => Array ( [0] => /tmp.dir/images/californiadriedchile5.jpg0 [fuzzy] => {.*/californiadriedchile5.jpg0} ) [2] => 1 ) [18] => Array ( [0] => filesize [1] => Array ( [fuzzy] => {.*/californiadriedchile5.jpg0} ) [2] => 10000 ) [19] => Array ( [0] => is_uploaded_file [1] => Array ( [0] => /tmp.dir/images/cascabelchiles5.jpg0 ) [2] => 1 ) [20] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => cascabelchiles5.jpg0 ) [2] => cascabelchiles5.jpg0 ) [21] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [22] => Array ( [0] => copy [1] => Array ( [0] => /tmp.dir/images/cascabelchiles5.jpg0 [fuzzy] => {.*/cascabelchiles5.jpg0} ) [2] => 1 ) [23] => Array ( [0] => filesize [1] => Array ( [fuzzy] => {.*/cascabelchiles5.jpg0} ) [2] => 10000 ) [24] => Array ( [0] => recursiveRmdir [1] => Array ( [0] => /tmp.dir ) [2] => 1 ) [25] => Array ( [0] => unlink [1] => Array ( [0] => /tmp ) [2] => 1 ) )Posts: 23
I turned magic_quotes_gpc to Off and got the following when trying to upload the zip:
Error Detail - Error (ERROR_PLATFORM_FAILURE) * in modules/archiveupload/classes/ArchiveExtractToolkit.class at line 75 (gallerystatus::error) * in modules/picasa/ItemAddFromPicasa.inc at line 100 (archiveextracttoolkit::performoperation) * in modules/core/ItemAdd.inc at line 93 (itemaddfrompicasa::handlerequest) * in main.php at line 188 (itemaddcontroller::handlerequest) * in main.php at line 87 * in modules/core/classes/GalleryEmbed.class at line 155 * in /usr/share/wordpress/wp-gallery2.php at line 55 (galleryembed::handlerequest) System Information Gallery version 2.0+ PHP version 4.3.10-10ubuntu4 apache2handler Webserver Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 Database mysql 4.0.23_Debian-3ubuntu2-log Toolkits ImageMagick, NetPBM, Gd Operating system Linux joshgeller 2.6.11.09262005ir #1 Mon Sep 26 22:48:54 EDT 2005 i686 Browser Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1Less failures in the unit tests this time:
Test Results Unhandled reply Received: Function: file_exists Request: Array ( [0] => /tmp.dir/index.xml ) Expected: Function: is_file Request: Array ( [0] => /tmp.dir ) Unhandled reply Received: Function: recursiveRmdir Request: Array ( [0] => /tmp.dir ) Expected: Function: getDirectorySeparator Request: Array ( ) Unhandled reply Received: Function: unlink Request: Array ( [0] => /tmp ) Expected: Function: file_exists Request: Array ( [0] => /tmp.dir/index.xml ) Unhandled reply Received: Function: recursiveRmdir Request: Array ( [0] => /tmp.dir ) Expected: Function: is_readable Request: Array ( [0] => /tmp.dir/index.xml ) Unhandled reply Received: Function: unlink Request: Array ( [0] => /tmp ) Expected: Function: getDirectorySeparator Request: Array ( ) # Module Class Function Success? Time 1 picasa confirmpicasaimportcontrollertest testcancelimport OK 0.8156 2 picasa confirmpicasaimportcontrollertest testimportalbumsuccessful OK 1.2298 3 picasa itemaddfrompicasatest testimportfrompicasasuccessfull FAIL 0.6397 4 picasa itemaddfrompicasatest testimportfrompicasafailed_unknowntype OK 0.5742 5 picasa itemaddfrompicasatest testimportfrompicasafailed_emptypath OK 0.6831 6 picasa picasa2dataparsertest testgetbadxmlarray_noversion OK 0.4036 7 picasa picasa2dataparsertest testgetbadxmlarray_notag OK 0.4060 8 picasa picasa2dataparsertest testgetgoodxmlarray OK 0.4144 9 picasa picasa2dataparsertest testgetalbumfromarray OK 0.4064 10 picasa picasaimporthelpertest testconverthtmltobbcode OK 0.4104 11 picasa selectpicasaexportpathcontrollertest testbadpicasaxmlpath OK 0.4117 12 picasa selectpicasaexportpathcontrollertest testgoodpicasaxmlpath OK 0.4114 13 picasa selectpicasaexportpathcontrollertest testmissingpicasaxmlpath OK 0.4122 Summary 7.2185 seconds elapsed 13 tests run 23 failures. Failure Details 1. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 206 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 2. testimportfrompicasasuccessfull * Mismatch At: [] ajipankachile5.jpg0 type (string) !== type (NULL) ajipankachile5.jpg0 type:string null type:NULL 3. testimportfrompicasasuccessfull * 4. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 208 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 5. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 209 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 6. testimportfrompicasasuccessfull * Mismatch At: [] type (string) !== type (NULL) type:string null type:NULL 7. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 206 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 8. testimportfrompicasasuccessfull * Mismatch At: [] californiadriedchile5.jpg0 type (string) !== type (NULL) californiadriedchile5.jpg0 type:string null type:NULL 9. testimportfrompicasasuccessfull * 10. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 208 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 11. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 209 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 12. testimportfrompicasasuccessfull * Mismatch At: [] type (string) !== type (NULL) type:string null type:NULL 13. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 206 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 14. testimportfrompicasasuccessfull * Mismatch At: [] cascabelchiles5.jpg0 type (string) !== type (NULL) cascabelchiles5.jpg0 type:string null type:NULL 15. testimportfrompicasasuccessfull * 16. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 208 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 17. testimportfrompicasasuccessfull * PHP ERROR: Undefined index: addedFilesin /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 209 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 18. testimportfrompicasasuccessfull * Mismatch At: [] type (string) !== type (NULL) type:string null type:NULL 19. testimportfrompicasasuccessfull * Mismatch At: [] extra keys in array 2: 0 array ( ) type:array array ( 0 => 'form[error][picasaZipPath][invalid]', ) type:array 20. testimportfrompicasasuccessfull * child count 1 Mismatch At: [] 1 !== 0 1 type:integer 0 type:integer 21. testimportfrompicasasuccessfull * PHP ERROR: Undefined offset: 0in /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class (gallerycoreapi::testimportfrompicasasuccessfull) at line 225 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::testimportfrompicasasuccessfull) at line 292 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runtest) at line 380 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::runbare) at line 551 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (prettytestresult::run) at line 258 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (itemaddfrompicasatest::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc (testsuite::run) at line 462 in /usr/share/gallery2/lib/tools/phpunit/index.tpl (testsuite::run) at line 216 in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 22. testimportfrompicasasuccessfull * Error (ERROR_BAD_PARAMETER) o in /usr/share/gallery2/modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 219 (gallerystatus::error) o in /usr/share/gallery2/modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 117 (gallerychildentityhelper_simple::_fetchchilditemids) o in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class at line 2275 (gallerychildentityhelper_simple::fetchchilditemids) o in /usr/share/gallery2/modules/picasa/test/phpunit/ItemAddFromPicasaTest.class at line 227 (gallerycoreapi::fetchchilditemids) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 292 (itemaddfrompicasatest::testimportfrompicasasuccessfull) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 380 (itemaddfrompicasatest::runtest) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 551 (itemaddfrompicasatest::runbare) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 258 (prettytestresult::run) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (itemaddfrompicasatest::run) o in /usr/share/gallery2/lib/tools/phpunit/phpunit.inc at line 462 (testsuite::run) o in /usr/share/gallery2/lib/tools/phpunit/index.tpl at line 216 (testsuite::run) o in /usr/share/gallery2/lib/tools/phpunit/index.php at line 209 23. testimportfrompicasasuccessfull * Error count: 5 Remaining requests: Array ( [0] => Array ( [0] => file_exists [1] => Array ( [0] => /tmp.dir/index.xml ) [2] => 1 ) [1] => Array ( [0] => is_readable [1] => Array ( [0] => /tmp.dir/index.xml ) [2] => 1 ) [2] => Array ( [0] => file [1] => Array ( [0] => /tmp.dir/index.xml [1] => ) [2] => Array ( [0] => [1] => GalleryTest 2 [2] => 2 [3] => This is a test [4] => [5] => [6] => images/ajipankachile5.jpg0 [7] => 171 [8] => 426 [9] => thumbnails/ajipankachile5.jpg0 [10] => 42 [11] => 90 [12] => ajipankachile5.jpg0 [13] => Testpicture [14] => [15] => [16] => images/californiadriedchile5.jpg0 [17] => 171 [18] => 426 [19] => thumbnails/californiadriedchile5.jpg0 [20] => 42 [21] => 90 [22] => californiadriedchile5.jpg0 [23] => Testpicture [24] => [25] => [26] => images/cascabelchiles5.jpg0 [27] => 171 [28] => 426 [29] => thumbnails/cascabelchiles5.jpg0 [30] => 42 [31] => 90 [32] => cascabelchiles5.jpg0 [33] => Testpicture [34] => [35] => [36] => ) ) [3] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => GalleryTest 2 ) [2] => GalleryTest 2 ) [4] => Array ( [0] => isLegalPathComponent [1] => Array ( [0] => GalleryTest 2 ) [2] => 1 ) [5] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => GalleryTest 2 ) [2] => GalleryTest 2 ) [6] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [7] => Array ( [0] => file_exists [1] => Array ( [fuzzy] => {.*GalleryTest 2} ) [2] => ) [8] => Array ( [0] => mkdir [1] => Array ( [fuzzy] => {.*GalleryTest 2} [0] => 0755 ) [2] => 1 ) [9] => Array ( [0] => is_uploaded_file [1] => Array ( [0] => /tmp.dir/images/ajipankachile5.jpg0 ) [2] => 1 ) [10] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => ajipankachile5.jpg0 ) [2] => ajipankachile5.jpg0 ) [11] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [12] => Array ( [0] => copy [1] => Array ( [0] => /tmp.dir/images/ajipankachile5.jpg0 [fuzzy] => {.*/ajipankachile5.jpg0} ) [2] => 1 ) [13] => Array ( [0] => filesize [1] => Array ( [fuzzy] => {.*/ajipankachile5.jpg0} ) [2] => 10000 ) [14] => Array ( [0] => is_uploaded_file [1] => Array ( [0] => /tmp.dir/images/californiadriedchile5.jpg0 ) [2] => 1 ) [15] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => californiadriedchile5.jpg0 ) [2] => californiadriedchile5.jpg0 ) [16] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [17] => Array ( [0] => copy [1] => Array ( [0] => /tmp.dir/images/californiadriedchile5.jpg0 [fuzzy] => {.*/californiadriedchile5.jpg0} ) [2] => 1 ) [18] => Array ( [0] => filesize [1] => Array ( [fuzzy] => {.*/californiadriedchile5.jpg0} ) [2] => 10000 ) [19] => Array ( [0] => is_uploaded_file [1] => Array ( [0] => /tmp.dir/images/cascabelchiles5.jpg0 ) [2] => 1 ) [20] => Array ( [0] => legalizePathComponent [1] => Array ( [0] => cascabelchiles5.jpg0 ) [2] => cascabelchiles5.jpg0 ) [21] => Array ( [0] => getDirectorySeparator [1] => Array ( ) [2] => / ) [22] => Array ( [0] => copy [1] => Array ( [0] => /tmp.dir/images/cascabelchiles5.jpg0 [fuzzy] => {.*/cascabelchiles5.jpg0} ) [2] => 1 ) [23] => Array ( [0] => filesize [1] => Array ( [fuzzy] => {.*/cascabelchiles5.jpg0} ) [2] => 10000 ) [24] => Array ( [0] => recursiveRmdir [1] => Array ( [0] => /tmp.dir ) [2] => 1 ) [25] => Array ( [0] => unlink [1] => Array ( [0] => /tmp ) [2] => 1 ) )Posts: 18
It seems like you haven't applied the patches (in /patches directory of CVS) correctly. Please check that ArchiveExtractToolkit.class was patched, according to the unit tests it wasn't.
What platform are you on?
Thanks for testing!
Posts: 23
I applied the patch:
and all the tests passed. But I still can't upload the zip file. I'm on Linux with database locking and magic_quotes_gpc off. See below for details. Here's the error message:
Error An error has occurred. Back to the Gallery Error Detail - Error (ERROR_PLATFORM_FAILURE) * in modules/archiveupload/classes/ArchiveExtractToolkit.class at line 75 (gallerystatus::error) * in modules/picasa/ItemAddFromPicasa.inc at line 100 (archiveextracttoolkit::performoperation) * in modules/core/ItemAdd.inc at line 93 (itemaddfrompicasa::handlerequest) * in main.php at line 188 (itemaddcontroller::handlerequest) * in main.php at line 87 * in main.php at line 80 System Information Gallery version 2.0+ PHP version 4.3.10-10ubuntu4 apache2handler Webserver Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 Database mysql 4.0.23_Debian-3ubuntu2-log Toolkits ImageMagick, NetPBM, Gd Operating system Linux joshgeller 2.6.11.09262005ir #1 Mon Sep 26 22:48:54 EDT 2005 i686 Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1Posts: 18
Right, that sounds better
1. Did you configure the archiveupload module, telling it where unzip is?
2. Try adding normal ZIP Items "from Browser", does that work?
As I see it, this error does not come from my module anymore, but rather gallery is complaining that it can't unzip. There are several issues to check: Is your g2data directory fully writeable by apache? Is the unzip path correctly configured? Try the "Test Setting" in the configuration of archiveupload (Site Admin/Import/Archive). Also try archiveupload unit tests.
Thanks!
Waldemar
Posts: 23
Test settings for archiveupload works fine. Normal zip files get uploaded no problem.
I uploaded a zip file to the album and the pictures extracted there fine.
Then I uploaded my zipped up xml web page from Picasa and I got that same error I posted yesterday.
I accidently tried uploading my regular (non-Picasa) zip file in the Picasa 2 page and I got an error message about
it not being a valid archive (the exact error was this: "The path that you entered is invalid.").
Posts: 23
I ran the archiveupload tests and got an error.
Posts: 18
could you send me you ZIP to waldemar_at_opencodes.org (in case it is not too big)? Thanks.
Posts: 23
On it's way...
Posts: 18
Hey jg123;
I don't know if you got my emails... Thanks for the ZIP. I know where it comes from (I think).
Can you repackage the ZIP so that index.xml and the folders "images" and "thumbnails" are in the root of the archive?
It still shouldn't give THAT error and I will fix this, but as of now the plugin expects you to have packaged just the picasa export and not in a subdirectory.
Sorry about this.
Thanks,
Waldemar
Posts: 23
I got your e-mails. Did you get the one I sent back? It was another zip with the format you specified and it didn't work.
Same error message. Let me know if you want me to send it again.
Posts: 18
No, I didn't get it for some reason. Please resend
Thanks,
Waldemar
Posts: 2
I just got started with Gallery and I am a fan of Picasa.
I love all I am reading here, and would be happy to be another test case.
But I haven't seen where it is stated what version of Gallery you must be running, and where to get the beta code.
Also, when I export pictures in Picasa (I have the latest version, just checked) I only get the photos. No xml file.
Help?
Nathan
Posts: 32509
version of gallery: G 2.0
where to get the picasa module: with CVS from http://sourceforge.net/projects/gallery-contrib/ -> read cvs instructions there.
Posts: 2
Ah. I saw the gallery-contrib, but didn't think to look at the CVS when I didn't see info on the project page.
Admin upload works great. Haven't tried the zip yet.
Note for everyone. Picasa 2 generates thumbnails with the xml file and photos. You don't need to transfer these to your webserver. They don't get used.
Awesome module!
Posts: 397
This looks like a real winner... great module.
Posts: 23
Did you get the last zip file I sent? Did it work for you?
Posts: 18
Hey jg123!
I am very sorry I have been absent for such a long time. The code had to be reviewed and I had a very busy time at uni, but I should be back now. We should be committing the code soon. I was able to reproduce your bug, and have to figure out where it comes from, it seems like it's not directly my module, but I'm not sure. Other people did not encounter things like that, but then again it hasn't been tested widely enough.
Thanks for your help and I should get back very soon!
Waldemar
Posts: 1
How is this going? Just looked at the contrib project on source forge and couldn't find it.
Has it been rolled into the base package? I can't find anything on it in the manual either.