[SOLVED] G1 import fails to show new albums

Taomyn
Taomyn's picture

Joined: 2003-11-11
Posts: 135
Posted: Mon, 2005-03-14 13:15

Hi,

Have installed G2b1 along side G1 and the installation went very smoothly (though I can't get Imagemagick to configure, but that's another issue I need to look at).

My problem is that I can't get G2 to import one of my G1 albums and its sub-album. It seems to go through the motions, copies the pictures across and even says the import is complete, but the album does not show up anywhere under G2 :-?

I have tried using "debug mode" to find any problems but that just falls over with the 30 second timeout so it's useless.

Under Firefox it simply sits at the inport complete page and nothing else. Under IE I get a javascript error:

Line: 23
Char: 6
Error: Invalid argument
Code: 0
URL: http://gallery2.star-one.co.uk

The source code from the page is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

                <style type="text/css" media="all">@import url(http://gallery2.star-one.co.uk/themes/matrix/styles/theme.css?g2_navId=x2fa98502);</style>
<style type="text/css" media="all">@import url(http://gallery2.star-one.co.uk/themes/matrix/styles/layout.css.php?g2_navId=x2fa98502);</style>
  </head>
  <body>
    <div id="gallery">
      <div id="gsHeader">
        <img src="http://gallery2.star-one.co.uk/images/galleryLogo_sm.gif?g2_navId=x2fa98502" alt="" />
      </div>

            
<script type="text/javascript">
  function updateStatus(title, description, percentComplete) {
     document.getElementById('ImmediateStatus_title').innerHTML = title;
     document.getElementById('ImmediateStatus_description').innerHTML = description;
	
     progressMade = Math.round(percentComplete * 100);
     document.getElementById('ImmediateStatus_progressMade').style.width = progressMade + "%"
     document.getElementById('ImmediateStatus_progressToGo').style.width = (100 - progressMade) + "%";
  }
</script>


<div id="gsAdminContents">
  <div class="gbTopFlag">
    <div class="gbTitle">
      <h2 class="giTitle">
	Migration Status
      </h2>
    </div>
  </div>

  <div class="gbAdmin">
    <h2 class="giTitle">
      <span id="ImmediateStatus_title"></span>
    </h2>
  
    <p class="giDescription">
      <span id="ImmediateStatus_description"></span>
    </p>
  </div>

  <div class="gbAdmin">
    <table class="gbStatusTable" cellspacing="0">
      <tr>
        <td id="ImmediateStatus_progressMade" class="giStatusProgressMade" style="width:0%">&</td>
        <td id="ImmediateStatus_progressToGo" class="giStatusProgressToGo" style="width:100%; border-left: none')">&</td>
      </tr>
    </table>
  </div>

<script type="text/javascript">updateStatus("Importing Users", "Ferd", 0)</script>
<script type="text/javascript">updateStatus("Importing Users", "Fernando", 0.5)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public", 0)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public Scoob_Jacking_3.jpg", 0)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public Scoob_Jacking_2.jpg", 0.02)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public Scoob_Jacking_1.jpg", 0.04)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 20040529_19_44_25.jpg", 0.06)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 20040529_19_48_06.jpg", 0.08)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 20040529_19_46_51.jpg", 0.1)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 20040529_19_46_42.jpg", 0.12)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 20040529_19_43_06.jpg", 0.14)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 20040529_19_42_16.jpg", 0.16)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 88_hkc_small.gif", 0.18)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 88_hkc.gif", 0.2)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public P4160009.jpg", 0.22)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public P4160007.jpg", 0.24)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public P1240001.jpg", 0.26)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public P4150003.jpg", 0.28)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 2004_04_14_20_27_16_640_x_480.jpg", 0.3)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public 2004_04_14_20_25_44_640_x_480.jpg", 0.32)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX", 0.34)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_00_10.jpg", 0.34)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_00_38.jpg", 0.36)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_00_54.jpg", 0.38)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_01_06.jpg", 0.4)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_01_34.jpg", 0.42)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_01_56.jpg", 0.44)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_03_06.jpg", 0.46)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_03_18.jpg", 0.48)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_03_32.jpg", 0.5)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_03_48.jpg", 0.52)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_04_12.jpg", 0.54)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_04_21.jpg", 0.56)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_04_47.jpg", 0.58)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_05_10.jpg", 0.6)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_05_44.jpg", 0.62)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_05_53.jpg", 0.64)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_06_11.jpg", 0.66)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_06_41.jpg", 0.68)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_07_05.jpg", 0.7)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_07_37.jpg", 0.72)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_07_46.jpg", 0.74)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_08_21.jpg", 0.76)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_08_33.jpg", 0.78)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_08_54.jpg", 0.8)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_09_05.jpg", 0.82)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_09_18.jpg", 0.84)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_09_28.jpg", 0.86)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_09_34.jpg", 0.88)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_09_49.jpg", 0.9)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_09_59.jpg", 0.92)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_10_08.jpg", 0.94)</script>
<script type="text/javascript">updateStatus("Importing photos", "Public_Subaru_SVX 2004_04_24_18_10_48.jpg", 0.96)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 1 of 51", 0.019607843137255)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 2 of 51", 0.03921568627451)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 3 of 51", 0.058823529411765)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 4 of 51", 0.07843137254902)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 5 of 51", 0.098039215686275)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 6 of 51", 0.11764705882353)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 7 of 51", 0.13725490196078)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 8 of 51", 0.15686274509804)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 9 of 51", 0.17647058823529)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 10 of 51", 0.19607843137255)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 11 of 51", 0.2156862745098)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 12 of 51", 0.23529411764706)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 13 of 51", 0.25490196078431)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 14 of 51", 0.27450980392157)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 15 of 51", 0.29411764705882)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 16 of 51", 0.31372549019608)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 17 of 51", 0.33333333333333)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 18 of 51", 0.35294117647059)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 19 of 51", 0.37254901960784)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 20 of 51", 0.3921568627451)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 21 of 51", 0.41176470588235)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 22 of 51", 0.43137254901961)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 23 of 51", 0.45098039215686)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 24 of 51", 0.47058823529412)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 25 of 51", 0.49019607843137)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 26 of 51", 0.50980392156863)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 27 of 51", 0.52941176470588)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 28 of 51", 0.54901960784314)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 29 of 51", 0.56862745098039)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 30 of 51", 0.58823529411765)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 31 of 51", 0.6078431372549)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 32 of 51", 0.62745098039216)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 33 of 51", 0.64705882352941)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 34 of 51", 0.66666666666667)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 35 of 51", 0.68627450980392)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 36 of 51", 0.70588235294118)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 37 of 51", 0.72549019607843)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 38 of 51", 0.74509803921569)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 39 of 51", 0.76470588235294)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 40 of 51", 0.7843137254902)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 41 of 51", 0.80392156862745)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 42 of 51", 0.82352941176471)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 43 of 51", 0.84313725490196)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 44 of 51", 0.86274509803922)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 45 of 51", 0.88235294117647)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 46 of 51", 0.90196078431373)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 47 of 51", 0.92156862745098)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 48 of 51", 0.94117647058824)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 49 of 51", 0.96078431372549)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 50 of 51", 0.98039215686275)</script>
<script type="text/javascript">updateStatus("Creating thumbnails", "Thumbnail 51 of 51", 1)</script>
<script type="text/javascript">updateStatus("Import complete", "", 100)</script>

As you can see it seems to go through the motions.

Any suggestions?

Cheers,
Taomyn

----

Gallery URL (optional): http://gallery2.star-one.co.uk
Gallery version: G2b1
Webserver (with version): IIS 6
Datatabase (with version): MySQL v4.1.10a
PHP version (eg 4.2.1): 5.0.3
phpinfo URL (optional):
Graphics Toolkit(s): none (yet)
Operating system: Windows 2003 Server
Web browser/version: Firefox v1.0.1 & IE 6
G1 version (for migration bugs): v1.5 RC2
[/code]

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-14 16:03

bring up the javascript console (tools menu) in firefox and see what error message it has.
a bug is already filed about debug mode causing migration to fail.

 
Taomyn
Taomyn's picture

Joined: 2003-11-11
Posts: 135
Posted: Mon, 2005-03-14 16:16

In my case debug mode isn't causing the migration to fail as I only tried to use it after it fails to find out why it fails.

The FF debug console shows no errors which is odd.

Any way shouldn't:

<script type="text/javascript">updateStatus("Import complete", "", 100)</script>

be

<script type="text/javascript">updateStatus("Import complete", "", 1)</script>

i.e. 1 not 100?

 
Taomyn
Taomyn's picture

Joined: 2003-11-11
Posts: 135
Posted: Mon, 2005-03-14 17:25

Just as an update. I reset the G2 gallery using various parts of the test harness and completely cleared it down. I tried the import with Firefox again and still no joy.

However, I tried changing a few other things, MySQL transactions/disabling GD, and then tried importing via IE. Dunno why I used IE, but I noticed after the import there was a "Continue" link. I clicked this, got the import stats screen up and lo-and-behold, the new album appeared. This link under FF was so small on my screen that I didn't see it before.

Tried the same in FF and clicked the link - the album appeared. Problem solved but begs the comments:

* If the import is complete, why is there another step to really complete it?

* This "Continue" link needs to be made more important looking, or the "important function" it subsequently runs needs to have already been done in case another idiot like myself doesn't click it

BTW. The more I've used G2 the last few hours the more impressed I've become with the new version. I can't wait for the finished product to be launched - it rocks. I'll be sure to make another donation to the cause once it does. Excellent work.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2005-03-14 18:43

It shouldn't matter if you click that link or not. The import should be complete when that link appears. I am just guessing here, but something that you changed allowed the process to complete.

So, what you're saying is that you successfully imported all of your albums?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-03-15 01:25

Taomyn, I made the link bigger and fixed the problem where we were using "100" instead of "1". Good catches!

Thanks for the compliments -- we're working hard on making it better! (and thanks for the donation you already made :-))