REQUEST: support for Picasa - amazing, FREE Photo organizer

c4actbe
c4actbe's picture

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:
- Auto-transfer photos from your digital camera.
- Organize and find pictures in seconds.
- Edit, print, and share photos with ease.
- Create slideshows, order prints
Picasa won "best of the year" award from PC MAGAZINE.

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.
It would be nice if Picasa would have support (picture/albums/keywords upload) of the most popular and simply THE BEST open source Menalto Gallery and its embedded version Nuked Gallery .

I posted the same request on Picasa's msg board
Regards,
Dmitri

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sat, 2004-09-04 17:00

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.

 
samkuhn2

Joined: 2004-04-13
Posts: 60
Posted: Wed, 2005-01-19 23:04

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>

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-01-19 23:12

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).

 
johndbritton
johndbritton's picture

Joined: 2005-03-23
Posts: 78
Posted: Sat, 2005-07-23 01:18

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

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sat, 2005-07-23 01:52

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.

 
johndbritton
johndbritton's picture

Joined: 2005-03-23
Posts: 78
Posted: Sun, 2005-07-24 21:40

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

 
DuffMan
DuffMan's picture

Joined: 2005-08-04
Posts: 3
Posted: Thu, 2005-08-04 19:45

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 :) .

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2005-08-04 19:52

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.

 
DuffMan
DuffMan's picture

Joined: 2005-08-04
Posts: 3
Posted: Thu, 2005-08-04 19:58

Thanks signe, I appreciate the help! When it does come out, I plan to use it a lot :)

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Thu, 2005-08-18 00:37

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

 
johndbritton
johndbritton's picture

Joined: 2005-03-23
Posts: 78
Posted: Thu, 2005-08-18 03:31

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

 
Marcus Alzona

Joined: 2005-09-12
Posts: 3
Posted: Mon, 2005-09-12 23:21

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

 
ujohnc00

Joined: 2003-06-05
Posts: 21
Posted: Fri, 2005-09-16 23:17

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.

 
DuffMan
DuffMan's picture

Joined: 2005-08-04
Posts: 3
Posted: Sun, 2005-09-18 17:38

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

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Fri, 2005-09-23 16:07

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.

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Fri, 2005-09-30 21:58

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.

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Fri, 2005-10-07 02:42

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.

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Fri, 2005-10-07 14:41

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

[Fri Oct 07 10:26:20 2005] [notice] Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 configured -- resuming normal operations
[client 208.198.163.221] PHP Fatal error:  Call to a member function on a non-object in /usr/share/gallery2/modules/core/classes/GalleryModule.class on line 3
24, referer: http://myserver/wordpress/wp-gallery2.php?g2_view=core.SiteAdmin&g2_subView=core.AdminModules&g2_statusId=x4cc7cde2&g2_navId=x4d4
84267
[client 208.198.163.221] PHP Warning:  Cannot modify header information - headers already sent in Unknown on line 0, referer: http://myserver/
wordpress/wp-gallery2.php?g2_view=core.SiteAdmin&g2_subView=picasa.ConfirmPicasaImport&g2_picasaXmlPath=%2Fhome%2Fjosh%2Fdownloads%2FJake+Riparian%2F&g2_desti
nationAlbumId=2766&g2_navId=x4d484267
[client 208.198.163.221] PHP Warning:  Cannot modify header information - headers already sent in Unknown on line 0, referer: http://myserver/
wordpress/wp-gallery2.php?g2_view=core.SiteAdmin&g2_subView=picasa.ConfirmPicasaImport&g2_picasaXmlPath=%2Fhome%2Fjosh%2Fdownloads%2FJake+Riparian%2F&g2_desti
nationAlbumId=2766&g2_navId=x4d484267

Importing from admin still works. The tab on the add items page doesn't seem to. I get this:

[Fri Oct 07 10:31:17 2005] [notice] caught SIGTERM, shutting down
[Fri Oct 07 10:31:18 2005] [notice] Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 configured -- resuming normal operations
[client 208.198.163.221] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 129 bytes) in /usr/share/gallery2/modules/core/classes/GalleryUtilities.class on line 176, referer: http://myserver/gallery2/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=2766&g2_addPlugin=ItemAddFromPicasa&g2_navId=x68318adf
Allowed memory size of 33554432 bytes exhausted (tried to allocate 0 bytes)

I upped the memory to 96M. I get this:

[Fri Oct 07 10:36:32 2005] [notice] Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 configured -- resuming normal operations
[client 208.198.163.221] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /usr/share/gallery2/modules/core/classes/GalleryUtilities.class on
 line 176, referer: http://myserver/gallery2/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=2766&g2_addPlugin=ItemAddFromPi
casa&g2_navId=x68318adf

Looks like there may be a bad loop.

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Fri, 2005-10-07 17:19

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

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Fri, 2005-10-07 17:29

Here you go:

 Development Environment Warning
The following settings in your development environment are not correct. See the G2 Development Environment page for more information

PHP Setting 	Actual Value 	Expected Value(s)
short_open_tag 	1 	off or 0
allow_call_time_pass_reference 	1 	off or 0
display_errors 		on or 1
allow_url_fopen 	1 	off or 0
include_path 	.:/usr/share/php:/usr/share/pear 	/bogus
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 	testimportfrompicasasuccessfull

I tried this as a filter: comment:1-3, and it all passed.

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Sat, 2005-10-08 01:58

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

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Sat, 2005-10-08 11:54

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.

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Sat, 2005-10-08 11:58

Did it set everything to readonly? I can't add items anymore.

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Sun, 2005-10-09 12:53

huh? no, it shouldn't have, apart from the items it added itself. What error does it give you?

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Sun, 2005-10-09 14:34

I no longer have add items or add albums options, just add to cart. Strange.

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Sun, 2005-10-09 18:13

This is strange. Do you have any idea on why? did it happen after you patched GalleryPlatform.class or after you used my module?

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Tue, 2005-10-11 08:33

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

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Tue, 2005-10-11 12:16

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 ) )
 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Tue, 2005-10-11 13:11

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.1

Less 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 ) )
 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Wed, 2005-10-12 00:59

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!

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Wed, 2005-10-12 03:20

I applied the patch:

$ sudo patch -p0 < patch.diff
patching file modules/archiveupload/classes/ArchiveExtractToolkit.class
patching file modules/core/classes/GalleryPlatform.class
patching file lib/tools/phpunit/UnitTestPlatform.class

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.1
 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Wed, 2005-10-12 09:22

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

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Wed, 2005-10-12 12:17

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.").

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Wed, 2005-10-12 12:20

I ran the archiveupload tests and got an error.

Test Results

Fatal error: Call to undefined function: getdirectoryseparator() in /usr/share/gallery2/modules/archiveupload/classes/ArchiveExtractToolkit.class on line 98
#	Module	Class	Function	Success?	Time
1	archiveupload 	archiveextracttoolkittest 	testperformoperation
 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Wed, 2005-10-12 18:46

could you send me you ZIP to waldemar_at_opencodes.org (in case it is not too big)? Thanks.

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Wed, 2005-10-12 19:20

On it's way...

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Fri, 2005-10-14 15:51

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

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Fri, 2005-10-14 16:08

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.

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Sun, 2005-10-16 10:40

No, I didn't get it for some reason. Please resend

Thanks,
Waldemar

 
peskygnat

Joined: 2005-10-17
Posts: 2
Posted: Mon, 2005-10-17 16:30

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-10-18 09:54

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.

 
peskygnat

Joined: 2005-10-17
Posts: 2
Posted: Tue, 2005-10-18 20:09

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!

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Fri, 2005-10-21 09:04

This looks like a real winner... great module.

 
jg123

Joined: 2003-06-20
Posts: 23
Posted: Fri, 2005-10-21 13:43
Quote:
No, I didn't get it for some reason. Please resend

Thanks,
Waldemar

Did you get the last zip file I sent? Did it work for you?

 
Waldemar
Waldemar's picture

Joined: 2005-08-18
Posts: 18
Posted: Mon, 2005-11-28 23:42

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

 
basscheffers

Joined: 2006-01-23
Posts: 1
Posted: Mon, 2006-01-23 16:57

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.