Announcement

#1 2014-11-04 15:30:21

TiboTheGentleman
Member
2008-05-06
33

Picasa2Piwigo - Error 405

Hi KenL :p

Still me. I'm using your miraculous soft every days. It's working, but sometimes, I've an 405 error (method not allowed), and it's stop the upload of album.
When this error occurs, the picture is upload sometime, and the other time no. It depend, sometimes it's the facetag information, or any other data...

I don't know if it's my picture, my server (OVH) or Picasa2Piwigo.

EDIT : After several tests, it's not the picture because the second time, the picture with the error is upload. Perhaps it's come from the server. The method POST is concerned I think...

Any suggestion ?
Cordialy

Offline

 

#2 2014-11-04 16:17:58

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo - Error 405

Hello Thibault,

I have seen the error, rarely, when using my server.  I can not give you a quick answer but my first request is that you enable logging and send me log file after the problem occurs.  In the mean time I can start researching the issue...

Regards,
KenL

Offline

 

#3 2014-11-04 16:55:42

TiboTheGentleman
Member
2008-05-06
33

Re: Picasa2Piwigo - Error 405

OK, I will active the debug log and send it you as soon as possible
.
Another issue : I've contact who like Loïc, or Stéphanie.
And your soft never upload their facetag, perhaps it's the caract ï and é ??
The others facetag are correctly created.

A piece of log (where you can never see the facetag of Loïc or Stéphanie):

Code:

4/11/2014 16:45:27: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<username>guest</username><status>guest</status><theme>modus</theme><language>fr_FR</language><pwg_token>c7a05b49e64136212463529d6027a72c</pwg_token><charset>utf-8</charset><current_datetime>2014-11-04 16:45:30</current_datetime><version>2.7.1</version>
</rsp>

04/11/2014 16:45:27: http://www.lacabaneauxsouvenirs.fr/ws.php?method=pwg.session.login

04/11/2014 16:45:27: username=TiboLeGentleman&password=*****

04/11/2014 16:45:27: http://www.lacabaneauxsouvenirs.fr/ws.php?method=pwg.session.getStatus

04/11/2014 16:45:27: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<username>TiboLeGentleman</username><status>webmaster</status><theme>modus</theme><language>fr_FR</language><pwg_token>2a37499f51dd630c22f65077830b5282</pwg_token><charset>utf-8</charset><current_datetime>2014-11-04 16:45:31</current_datetime><version>2.7.1</version><upload_file_types>jpg,jpeg,png,gif</upload_file_types>
</rsp>

04/11/2014 16:45:28: picasa.ini file exists

04/11/2014 16:45:28: http://www.lacabaneauxsouvenirs.fr/ws.php?method=pwg.images.addSimple

04/11/2014 16:45:28: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9379.jpg"

04/11/2014 16:45:28: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9379.jpg"

04/11/2014 16:47:38: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<image_id>1903</image_id><url>http://www.lacabaneauxsouvenirs.fr/picture.php?/1903/category/9</url>
</rsp>

04/11/2014 16:47:38: picasa.ini file exists

04/11/2014 16:47:38: end face_tag_list:  Anne-sophie Lavocat,

04/11/2014 16:47:39: http://www.lacabaneauxsouvenirs.fr/ws.php?method=pwg.images.addSimple

04/11/2014 16:47:39: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9380.jpg"

04/11/2014 16:47:39: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9380.jpg"

04/11/2014 16:47:39: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9380.jpg"

04/11/2014 16:50:36: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<image_id>1904</image_id><url>http://www.lacabaneauxsouvenirs.fr/picture.php?/1904/category/9</url>
</rsp>

04/11/2014 16:50:37: picasa.ini file exists

04/11/2014 16:50:37: end face_tag_list:  Anne-sophie Lavocat,

04/11/2014 16:50:37: http://www.lacabaneauxsouvenirs.fr/ws.php?method=pwg.images.addSimple

04/11/2014 16:50:37: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9381.jpg"

04/11/2014 16:50:37: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9381.jpg"

04/11/2014 16:50:37: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9381.jpg"

04/11/2014 16:53:38: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<image_id>1905</image_id><url>http://www.lacabaneauxsouvenirs.fr/picture.php?/1905/category/9</url>
</rsp>

04/11/2014 16:53:38: picasa.ini file exists

04/11/2014 16:53:38: end face_tag_list:  Anne-sophie Lavocat,

04/11/2014 16:53:39: http://www.lacabaneauxsouvenirs.fr/ws.php?method=pwg.images.addSimple

04/11/2014 16:53:39: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9382.jpg"

04/11/2014 16:53:39: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9382.jpg"

04/11/2014 16:53:39: name="image";filename="E:\\Mes Photos\\Général\\2014\\2014-01-11 Anniversaire de Thibault chez Loic et Steph\\_DSC9382.jpg"

Can you take a look please ?
Thanks !

Last edited by TiboTheGentleman (2014-11-04 16:56:55)

Offline

 

#4 2014-11-04 21:11:25

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo - Error 405

Hello Thibault,

I will take a look at this.  Thanks for reporting the issue.

KenL

TiboTheGentleman wrote:

Another issue : I've contact who like Loïc, or Stéphanie.
And your soft never upload their facetag, perhaps it's the caract ï and é ??
The others facetag are correctly created.

Offline

 

#5 2014-11-04 22:59:42

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo - Error 405

Hello Thibault,

I took a look at this issue and it's related to the handling of UTF-8 string data stored in the photo.  I will work on a fix for this and supply a debug version for you.

KenL

kenl wrote:

Hello Thibault,

I will take a look at this.  Thanks for reporting the issue.

KenL

TiboTheGentleman wrote:

Another issue : I've contact who like Loïc, or Stéphanie.
And your soft never upload their facetag, perhaps it's the caract ï and é ??
The others facetag are correctly created.

Offline

 

#6 2014-11-05 08:28:38

TiboTheGentleman
Member
2008-05-06
33

Re: Picasa2Piwigo - Error 405

You're great !

Offline

 

#7 2014-11-05 11:09:03

TiboTheGentleman
Member
2008-05-06
33

Re: Picasa2Piwigo - Error 405

Concerning the 405 error issue, I've probably found the origin.
I use 2 PC at the same time (different ADSL connexion) to upload pictures on my server.
And they are affect by the 405 error.

Since this morning, I use only one PC (one instance of Picasa2Piwigo), and I've upload 2 albums without any error.
Still survey, but perhaps it's a limitation due to the pooling of servers...

EDIT: I've talk to fast. Still the error. I've opened a support ticket to OVH to identify the issue.

EDIT 2: All caractere are concerned (maj and min):
a -> à@âä
e -> éèêë
i -> ïî
o -> öô
u -> ùüûµ
and -> ç&

EDIT 3: I've got, this morning, the 405 error issue all the time on a specific picture. If I don't select it for the upload, all the other are uploaded successfuly. And if I try to upload it alone, I've got the issue. Strange, the picture is same type like the other... Something in this picture must be different.

Last edited by TiboTheGentleman (2014-11-05 15:15:43)

Offline

 

#8 2014-11-05 16:14:25

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo - Error 405

Hello Thibault,

Sorry for the issues you're having and thanks for helping to identify and debug them!  Please try out this debug build of the tool:  https://dl.dropboxusercontent.com/u/46847698/debug.zip

This should solve the issues with people tags such as  Loïc, or Stéphanie.

Regarding the 405 error - If a particular photo is causing the issue to appear, maybe you could share the photo with me?

Regards,
Ken

Offline

 

#9 2014-11-05 16:56:42

TiboTheGentleman
Member
2008-05-06
33

Re: Picasa2Piwigo - Error 405

Hi KenL,

I've try this debug version, but the problem persist.
And I've the 405 error on the picture with the facetag with special caracteres ! Only on it.
Sometimes it's work, sometimes not, but It's always on this king of picture (with special facetag) where I've the issue 405.

Here a sample of picture where I've the issue.
https://dl.dropboxusercontent.com/s/0vx … 9.jpg?dl=1

Thanks for your time !

EDIT: So, I've try an another picture (with the same facetag of the picture in the link), and it's work. The facetag Aurélie Blin is correctly fill up (with the é). So, the error is elsewhere...

Last edited by TiboTheGentleman (2014-11-05 17:03:00)

Offline

 

#10 2014-11-05 17:12:46

TiboTheGentleman
Member
2008-05-06
33

Re: Picasa2Piwigo - Error 405

So, I've think I've found the problem of the error 405.
During the upload of the album, I've three pictures who I can't upload them.
And these picture weigh more than 5Mo ! (Your's in the dl link weigh 8.56Mo), and the other weigh 12.6Mo and 9.78Mo.

I think the function who upload the file take too much time to finish and the server send an error 405 for the POST function.
So now, the question is where I can change the value to the TTL of this kind of function on my server, and if I've access to it (not on a dedicaced server...).

Regards.

Offline

 

#11 2014-11-05 19:34:28

kenl
Member
2013-01-12
91

Re: Picasa2Piwigo - Error 405

Hello Thiabult,

Thank you for the information.  I have tried uploading your example photo to my piwigo server and it worked ok.  Then I reduced the post_max_size value in my server's php.ini file to 1 MB and tried to upload your photo.  The photo failed to upload with a 405 error.  So, maybe this is the problem you are having.

Regards,
KenL

Offline

 

#12 2014-11-06 09:53:34

TiboTheGentleman
Member
2008-05-06
33

Re: Picasa2Piwigo - Error 405

Hello KenL,

So, the actual version of your soft works perfectly.
I confirm that is the weigh of the file who is the issue (> 6Mo).

Here, the phpinfo() result :

post_max_size        64M
upload_max_filesize    64M

But I think there's an another problem with the php setttings...
Perhaps the TimeOut Apache setting...
I've try to contact OVH without success...

EDIT:
So the error come from the max_execution_time variable in the php.ini
The problem, it's not a dedicaced server, so I'ven't access to this setting.
And the support contact don't answer...

EDIT2:
They can't modify this setting. KenL, have you a function who can split the file in several part to not exceed the max_execution_time 300s ?
Or mayby I'm in a dead end ?

Last edited by TiboTheGentleman (2014-11-06 10:31:42)

Offline

 

#13 2014-11-06 10:31:28

flop25
Piwigo Team
2006-07-06
7037

Re: Picasa2Piwigo - Error 405

check their Documentation


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#14 2014-11-06 10:32:20

TiboTheGentleman
Member
2008-05-06
33

Re: Picasa2Piwigo - Error 405

Already done, and this settings isn't accessible.
I'm finish... :(

Offline

 

#15 2014-11-06 10:33:29

flop25
Piwigo Team
2006-07-06
7037

Re: Picasa2Piwigo - Error 405

no
use piwigo in local in your computer and then export/import to your hosting


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

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