Integrated with Xaraya, but import doesn't work

kmccann

Joined: 2005-04-14
Posts: 6
Posted: Thu, 2005-04-14 15:12

Hello,

I have integrated gallery2 into a Xaraya site (nice work!). I tarred up the gallery1 module from another server, copied it over, untarred it, then tried to do an import.The import utility seemed to see all the data and I was able to select the albums I wanted to import. I got to the confirmation page OK, pressed Import, then received the following error:

-------------------------------------
PHP: Warning

At: /webdir/gallery2/modules/migrate/ConfirmImport.inc (Line: 375) Division by zero
Explanation:

There is an error in the PHP code that is being processed.

Click here to raise a bug
--------------------------------------

I'm using a nightly build of gallery2 from just a couple of days ago (Tues?)

NOTE: I turned off embedding in the config and tried the same thing with just gallery2 (not within Xaraya), and the import failed with the same error. I also tried importing just one album (and the album has about 45 pictures). Same thing. The code on line 375 of the file seems to indicate it has an empty album name array, but the names exist and at least get passed to the confiimation page.

Any suggestions?

- Kevin

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-14 16:12

Nice to hear that you like the embedded G2 :) (integrated search is still on the todo list though).

This error seems to be unrelated to embedded G2 and only related to a bug in the migration module.

See http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=28773&highlight=items
this bug was reported yesterday. monitor the other forum topic to be notified when a fix is available.
perhaps you could add a notice in the other topic that you have the same error and it is also an empty album that causes the exposure of the bug in your case.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-04-14 17:30

Okay, I just checked in a change for this. It should be in the nightly that I'm running right now (not in the night). Please try that and let me know if you have any issues. This may be just a symptom of other more insidious behavior. Thanks!