Announcement

#1 2014-11-16 14:57:30

Ksul
Member
2014-11-16
5

Picasa2Piwigo: System.Xml.XmlException during Import

Hello/Hi/Greetings,

After Upgrade to Piwigo 2.7  I've receive during the Picasa2Piwigo import by several pictures the following Exception:


************** Ausnahmetext **************
System.Xml.XmlException: Das Stammelement ist nicht vorhanden.
   bei System.Xml.XmlTextReaderImpl.Throw(Exception e)
   bei System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   bei System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   bei System.Xml.XmlDocument.Load(XmlReader reader)
   bei System.Xml.XmlDocument.LoadXml(String xml)
   bei Picasa2Piwigo.StatusForm.XmlGetAttribute(String xmlstring, String element)
   bei Picasa2Piwigo.StatusForm.SyncPiwigoAddPhoto(Int32 NewPiwigoAlbumId)
   bei Picasa2Piwigo.StatusForm.StatusForm_Load(Object sender, EventArgs e)
   bei System.Windows.Forms.Form.OnLoad(EventArgs e)
   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   bei System.Windows.Forms.Control.CreateControl()
   bei System.Windows.Forms.Control.WmShowWindow(Message& m)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any suggestions to solve this problem?

Ksul

Piwigo version: 2.7.1
PHP version: 5.5.9-1ubuntu4.5
MySQL version: 5.5.40-0ubuntu0.14.04.1
Piwigo URL: http://

Offline

 

#2 2014-11-16 19:46:32

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello Ksul,

I'm sorry you are having problems with Picasa2Piwigo.  Let us see if we can fix it. The first step would be to run the tool with logging enabled.  Then, you can email the log file to me or post it in this thread. 

Please try this debug version of the tool which includes additional logging around the function that is causing the exception:  https://dl.dropboxusercontent.com/u/46847698/debug.zip.  Under the options, enable logging and set a log file path.  Run the tool and email/post the log file.


Regards,
KenL

Offline

 

#3 2014-11-16 20:46:27

Ksul
Member
2014-11-16
5

Re: Picasa2Piwigo: System.Xml.XmlException during Import

bHello kenl,

thanks for the quick reply and obviously also for the great tool.

I run the the import again and here is  the resulting log file:

Code:

16.11.2014 20:38:24: Start up

16.11.2014 20:38:24: Read picasa contacts

16.11.2014 20:38:24: http://192.168.178.100/piwigo//ws.php?method=pwg.session.getStatus

16.11.2014 20:38:24: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<username>guest</username><status>guest</status><theme>elegant</theme><language>de_DE</language><pwg_token>09f727f28cb7ffac5c3569d272f0b670</pwg_token><charset>utf-8</charset><current_datetime>2014-11-16 20:38:24</current_datetime><version>2.7.1</version>
</rsp>

16.11.2014 20:38:24: logging in

16.11.2014 20:38:24: http://192.168.178.100/piwigo//ws.php?method=pwg.session.login

16.11.2014 20:38:24: username=klaus&password=*****

16.11.2014 20:38:24: http://192.168.178.100/piwigo//ws.php?method=pwg.session.getStatus

16.11.2014 20:38:24: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<username>klaus</username><status>webmaster</status><theme>elegant</theme><language>de_DE</language><pwg_token>f4681e07611649f99e954fc715d64b0d</pwg_token><charset>utf-8</charset><current_datetime>2014-11-16 20:38:24</current_datetime><version>2.7.1</version><upload_file_types>jpg,jpeg,png,gif</upload_file_types>
</rsp>

16.11.2014 20:38:24: getting version number from piwigo

16.11.2014 20:38:24: http://192.168.178.100/piwigo//ws.php?method=pwg.getVersion

16.11.2014 20:38:24: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
2.7.1
</rsp>

16.11.2014 20:38:24: getting list of albums from piwigo

16.11.2014 20:38:24: http://192.168.178.100/piwigo//ws.php?method=pwg.categories.getList&fullname=true&recursive=true

16.11.2014 20:38:24: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<categories>
  <category id="83" nb_images="0" total_nb_images="0" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/83">
    <name>Meißen 2014</name>
    <comment></comment>
    <uppercats>83</uppercats>
    <global_rank>1</global_rank></category>
  <category id="80" nb_images="220" total_nb_images="220" date_last="2014-08-27 20:46:22" max_date_last="2014-08-27 20:46:22" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/80">
    <name>Gardasee 2014</name>
    <comment></comment>
    <uppercats>80</uppercats>
    <global_rank>2</global_rank>
    <representative_picture_id>13796</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/08/27/20140827203653-ab3a9e81-th.jpg</tn_url></category>
  <category id="78" nb_images="288" total_nb_images="288" date_last="2014-05-11 22:19:49" max_date_last="2014-05-11 22:19:49" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/78">
    <name>Versilia 2012</name>
    <comment></comment>
    <uppercats>78</uppercats>
    <global_rank>3</global_rank>
    <representative_picture_id>13507</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/11/20140511215002-899d29c0-th.jpg</tn_url></category>
  <category id="77" nb_images="303" total_nb_images="303" date_last="2014-05-11 00:34:17" max_date_last="2014-05-11 00:34:17" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/77">
    <name>Provence 2012</name>
    <comment></comment>
    <uppercats>77</uppercats>
    <global_rank>4</global_rank>
    <representative_picture_id>13204</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/10/20140510234823-f9e8764e-th.jpg</tn_url></category>
  <category id="76" nb_images="243" total_nb_images="243" date_last="2014-05-09 00:53:47" max_date_last="2014-05-09 00:53:47" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/76">
    <name>Ostsee 2012</name>
    <comment></comment>
    <uppercats>76</uppercats>
    <global_rank>5</global_rank>
    <representative_picture_id>12961</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/09/20140509002355-d3a0b16b-th.jpg</tn_url></category>
  <category id="75" nb_images="61" total_nb_images="61" date_last="2014-05-08 00:23:42" max_date_last="2014-05-08 00:23:42" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/75">
    <name>Lennestadt 2012</name>
    <comment></comment>
    <uppercats>75</uppercats>
    <global_rank>6</global_rank>
    <representative_picture_id>12900</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/08/20140508001815-8a46e976-th.jpg</tn_url></category>
  <category id="74" nb_images="111" total_nb_images="111" date_last="2014-05-07 22:58:17" max_date_last="2014-05-07 22:58:17" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/74">
    <name>Holland 2013</name>
    <comment></comment>
    <uppercats>74</uppercats>
    <global_rank>7</global_rank>
    <representative_picture_id>12789</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/07/20140507224820-4d06a98f-th.jpg</tn_url></category>
  <category id="73" nb_images="336" total_nb_images="336" date_last="2014-05-06 01:07:46" max_date_last="2014-05-06 01:07:46" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/73">
    <name>Ligurien 2013</name>
    <comment></comment>
    <uppercats>73</uppercats>
    <global_rank>8</global_rank>
    <representative_picture_id>12453</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/06/20140506003148-c33ea62b-th.jpg</tn_url></category>
  <category id="72" nb_images="206" total_nb_images="206" date_last="2014-05-03 18:15:49" max_date_last="2014-05-03 18:15:49" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/72">
    <name>Barcelona 2013</name>
    <comment></comment>
    <uppercats>72</uppercats>
    <global_rank>9</global_rank>
    <representative_picture_id>12247</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/03/20140503180332-5787ee8e-th.jpg</tn_url></category>
  <category id="71" nb_images="91" total_nb_images="91" date_last="2014-05-03 00:58:38" max_date_last="2014-05-03 00:58:38" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/71">
    <name>Altenilpe 2014</name>
    <comment></comment>
    <uppercats>71</uppercats>
    <global_rank>10</global_rank>
    <representative_picture_id>12156</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/03/20140503005046-a0944e30-th.jpg</tn_url></category>
  <category id="70" nb_images="288" total_nb_images="288" date_last="2014-05-03 00:26:33" max_date_last="2014-05-03 00:26:33" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/70">
    <name>Lago Maggiore 2014</name>
    <comment></comment>
    <uppercats>70</uppercats>
    <global_rank>11</global_rank>
    <representative_picture_id>11868</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/05/02/20140502233202-7a763946-th.jpg</tn_url></category>
  <category id="59" nb_images="468" total_nb_images="468" date_last="2014-04-11 21:19:49" max_date_last="2014-04-11 21:19:49" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/59">
    <name>Lago Maggiore 2011</name>
    <comment></comment>
    <uppercats>59</uppercats>
    <global_rank>12</global_rank>
    <representative_picture_id>10172</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/04/10/20140410215803-e85a8d90-th.jpg</tn_url></category>
  <category id="58" nb_images="375" total_nb_images="375" date_last="2014-03-25 00:10:50" max_date_last="2014-03-25 00:10:50" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/58">
    <name>Versilia 2011</name>
    <comment></comment>
    <uppercats>58</uppercats>
    <global_rank>13</global_rank>
    <representative_picture_id>9797</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/03/24/20140324234258-366877da-th.jpg</tn_url></category>
  <category id="56" nb_images="41" total_nb_images="41" date_last="2014-03-20 23:25:17" max_date_last="2014-03-20 23:25:17" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/56">
    <name>Einschulung Kilian</name>
    <comment></comment>
    <uppercats>56</uppercats>
    <global_rank>14</global_rank>
    <representative_picture_id>9702</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/03/20/20140320232159-ce0d68c2-th.jpg</tn_url></category>
  <category id="55" nb_images="96" total_nb_images="96" date_last="2014-03-20 23:17:26" max_date_last="2014-03-20 23:17:26" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/55">
    <name>Harz 2011</name>
    <comment></comment>
    <uppercats>55</uppercats>
    <global_rank>15</global_rank>
    <representative_picture_id>9606</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/03/20/20140320230538-1b80aa17-th.jpg</tn_url></category>
  <category id="54" nb_images="84" total_nb_images="84" date_last="2014-03-20 23:03:43" max_date_last="2014-03-20 23:03:43" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/54">
    <name>Send 2011</name>
    <comment></comment>
    <uppercats>54</uppercats>
    <global_rank>16</global_rank>
    <representative_picture_id>9522</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/03/20/20140320225655-883af075-th.jpg</tn_url></category>
  <category id="53" nb_images="170" total_nb_images="170" date_last="2014-03-20 22:26:20" max_date_last="2014-03-20 22:26:20" nb_categories="0" url="http://192.168.178.100/piwigo/index.php?/category/53">
    <name>Holland 2011</name>
    <comment></comment>
    <uppercats>53</uppercats>
    <global_rank>17</global_rank>
    <representative_picture_id>9352</representative_picture_id>
    <tn_url>http://192.168.178.100/piwigo/_data/i/upload/2014/03/20/20140320220432-2873755a-th.jpg</tn_url></category></categories>
</rsp>

16.11.2014 20:38:37: Add to Album

16.11.2014 20:38:37: http://192.168.178.100/piwigo//ws.php?method=pwg.session.getStatus

16.11.2014 20:38:37: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<username>guest</username><status>guest</status><theme>elegant</theme><language>de_DE</language><pwg_token>91994d3c2fe24d7c92a8436aa0c6c6f6</pwg_token><charset>utf-8</charset><current_datetime>2014-11-16 20:38:37</current_datetime><version>2.7.1</version>
</rsp>

16.11.2014 20:38:37: http://192.168.178.100/piwigo//ws.php?method=pwg.session.login

16.11.2014 20:38:37: username=klaus&password=*****

16.11.2014 20:38:37: http://192.168.178.100/piwigo//ws.php?method=pwg.session.getStatus

16.11.2014 20:38:37: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<username>klaus</username><status>webmaster</status><theme>elegant</theme><language>de_DE</language><pwg_token>9b50d118610ef9d41e51ea73a15af7d6</pwg_token><charset>utf-8</charset><current_datetime>2014-11-16 20:38:37</current_datetime><version>2.7.1</version><upload_file_types>jpg,jpeg,png,gif</upload_file_types>
</rsp>

16.11.2014 20:38:37: picasa.ini file exists

16.11.2014 20:38:38: http://192.168.178.100/piwigo//ws.php?method=pwg.images.addSimple

16.11.2014 20:38:38: name="image";filename="Y:\\Canon_Entwickelt\\Meißen 2014\\IMG_5715.JPG"

16.11.2014 20:38:38: name="image";filename="Y:\\Canon_Entwickelt\\Meißen 2014\\IMG_5715.JPG"

16.11.2014 20:38:39: 
Warning: md5_file(): Filename cannot be empty in /var/www/piwigo/admin/include/functions_upload.inc.php on line 170

Warning: getimagesize(): Filename cannot be empty in /var/www/piwigo/admin/include/functions_upload.inc.php on line 221
forbidden file type

16.11.2014 20:38:39: No xml found in string

Regards,

Ksul

Last edited by Ksul (2014-11-16 21:01:37)

Offline

 

#4 2014-11-17 03:10:36

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello Ksul,

I have a quick question for you.  Does this issue happen with every file upload that you try or just certain file(s)?

Regards,
KenL

Offline

 

#5 2014-11-17 19:29:38

Ksul
Member
2014-11-16
5

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello KenL,

this issue happens only with some files. I have a set of 80 files and i think roundabout 10 pictures produces the error.

If you want, i can sent you a picture with this problem.

Regards,
Ksul

Offline

 

#6 2014-11-17 20:31:16

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello Ksul,

That would quite helpful.

Regards,
KenL

Ksul wrote:

Hello KenL,

this issue happens only with some files. I have a set of 80 files and i think roundabout 10 pictures produces the error.

If you want, i can sent you a picture with this problem.

Regards,
Ksul

Offline

 

#7 2014-11-17 23:20:15

Ksul
Member
2014-11-16
5

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello KenL,

here you can find a photo that causes the problem:
https://www.dropbox.com/s/t9msvayvh9d26 … 5.JPG?dl=0

With regards,
Ksul

Offline

 

#8 2014-11-18 14:47:17

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello Ksul,

Thank you for the sample photo.  (And what a great photo.  I wish I could take photos of such quality!)  I am able to see the issue, so I will look deeper into it now.

Regards,
KenL

Offline

 

#9 2014-11-18 15:11:52

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello Ksul,

I spoke to soon.  So, the photo uploads fine to my server.  Maybe this a photo size issue.  For all the photos that fail to upload - Are they are larger than a certain size (maybe greater than 10 MB)? 

With the sample photo - Can you try to make the file size smaller and re-upload to your server?

Regards,
KenL

Offline

 

#10 2014-11-18 19:51:23

Ksul
Member
2014-11-16
5

Re: Picasa2Piwigo: System.Xml.XmlException during Import

Hello Kenl,

your presumption is true. All trouble making files are larger than 10 MB. If i choose a lower jpeg quality i can upload the picture without any problems.

Regards,

Ksul

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact