My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 30: "Impossible to update posts" with 0.4.4
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  May 2009
Type-Other
Priority-Medium


Sign in to add a comment
 
Reported by Mingqing.Wei, Feb 22, 2009
What steps will reproduce the problem?
1. Installed 0.4.4
2. Configured Blog Settings
3. Clicked "Update Posts"

What is the expected output? What do you see instead?
It's quite weird for the output. Sometimes I will got the 
message "impossible to update posts when I tried to update the posts 
while sometimes there's no error message shown, in this case, I could 
navigate from "[0/0] Posts" to "[1/0] Posts", though the post list 
below was empty.
Note that I could successfully publish posts onto my blog, so I suppose 
my configuration should be ok?

What version of the product are you using? On what operating system?
0.4.4 > Nokia N82 (Symbian)

Please provide any additional information below.
I have my own domain (http://blog.isgreat.cn), with a standard WP 
(2.6.3) installation. Let me know if I can help out.


Comment 1 by marcelobarrosalmeida, Feb 25, 2009
Really strange situation ...

Maybe some enconding problem ?
Could you try the latest version (0.5.0) ?

Or, if the problem remains, could you run wordmobi from source files ?

The howto is here:
http://code.google.com/p/wordmobi/wiki/FAQ
Source code is here:
http://wordmobi.googlecode.com/files/Wordmobi-0.5.0-src.zip

Thanks a lot !

Comment 2 by Mingqing.Wei, Feb 25, 2009
Thanks for the reply. Could you please let me know where I could find the logs 
after executing your source files? I tried running wordmobi from source files 
(0.5.0) and the output is the same as mentioned above.
Comment 3 by Mingqing.Wei, Feb 25, 2009
Hmm... I saw error messages this time. Here's what I got:

...
e:\python\lib\posts.py
line 766, in refresh
line2=utf8_to_unicode(p['title']_
File "e:\python\lib\wmutil.py",line 35, in utf8_to_unicode return unicode(s,'utf-
8',errors='ignore')
TypeError:decoding Unicode is not supported

I typed from the mobile phone screen, so maybe there're some type errors above. 
But overall this shuld be ok to help identify the source of this problem. Looks 
like an enconding problem. :)
Comment 4 by marcelobarrosalmeida, Feb 26, 2009
Unicode problem .... I already fixed this problem in version 0.6.0, to be release in
the next days. Would you give it a try ? Or so you prefer a patch ?

For a patch, use the following wmutil.py:

http://code.google.com/p/wordmobi/source/browse/trunk/wordmobi/src/wmutil.py

It has a fix for utf8_to_unicode inside:

def utf8_to_unicode(s):
    if isinstance(s, unicode):
        return s
    else:
        return unicode(s,'utf-8',errors='ignore')

The attached sis is for python 0.4.5 and is not an official release yet.
Wordmobi-0.6.0-RC1.sis
139 KB   Download
Comment 5 by marcelobarrosalmeida, Feb 26, 2009
BTW, I do not have any log file ... :-/
Comment 6 by Mingqing.Wei, Feb 26, 2009
Awesome! 0.6.0 works pretty well fixing this issue. Great tool and support! 
Thanks! :-)
Comment 7 by marcelobarrosalmeida, Feb 26, 2009
Nice ! I am waiting some translation before releasing this version. So, after the
official release, try to use it.
If you have some free time:
http://code.google.com/p/wordmobi/wiki/TranslateWordMobi

Comment 9 by Mingqing.Wei, Mar 01, 2009
Hi, seems I was too early to say it works with my wordpress. Something weird is 
that sometimes it works fine to update the posts while sometimes there's still 
error message pops up: "Impossible to update posts"... Could it be possible with 
a time racing issue with your code? It may need something crashes to identify the 
source of the problem since I tried running with source code and could not find 
inner exception but "Impossible to update posts"... 

PS: I'm happy to translate WordMobi with Simplified Chinese.Please let me know if 
there's still time for me to translate 0.6.0 before releasing this version. Or I 
could start to help with future release if you want. :-)
Comment 10 by marcelobarrosalmeida, Mar 02, 2009
Hi !
Quite difficult to say something about this error without further debugging. 
How is your connection ? WiFi ? GPRS ? Do you think that this behavior is just a
consequence of timeout or overloaded network ?

Is it possible to add me as and additional author to your blog ? Just temporarily, of
course. I will not touch anything, just check what is happening with post updates. If
you can, send me login credential by email.

About translation: I will release 0.6.0 tomorrow. Is enough time ? If not, don´t
worry, do at your time and we can generate a new build with Chinese support. One day
more it is possible as well (due to time zone, in fact it is required ... :-D )
Comment 11 by marcelobarrosalmeida, Mar 02, 2009
(No comment was entered for this change.)
Status: Accepted
Comment 12 by marcelobarrosalmeida, Mar 07, 2009
 Hi !
Sorry about the long delay.
I had no problems when updating posts or categories using credentials that you
provided. I think we may have a network problem. 
Please, use the attached wordpresslib file and run again from sources. An error
message will be displayed at your screen, indicating the problem.
I have used my wifi connection during the tests (adsl) and I couldn't test using some
3g or gprs connection since I do not have this king of service in my contract.

/media/mmc2/tmp/Wplib.zip
3.7 KB   Download
Comment 13 by Mingqing.Wei, Mar 09, 2009
Hmm... Still cannot see the error message when it fails...
Comment 14 by marcelobarrosalmeida, Mar 09, 2009
Ok, just one more test, I was not trapping all error messages, sorry. 
Use update posts option. A dialog will be shown.

wordpresslib.zip
3.6 KB   Download
Comment 15 by Mingqing.Wei, Mar 10, 2009
I saw error message this time. It's (0,'getaddrinfo failed')
Comment 16 by marcelobarrosalmeida, Mar 11, 2009
Nice. So, as I was suspecting, it is a network problem, outside my control
unfortunately. getaddrinfo() converts domain names in IPs, possibly indicating some
name server problems or instability. Is it possible to use an IP instead name ?
Comment 17 by yumekage, Mar 11, 2009
Hey, im having a similar issue (impossible to update posts) with 0.6.0

I have a working internet connection and xmlrpc is enabled in wordpress and working.
If the domain is being resolved into an ip address and being used that would be the
problem - it's all vhosts and i dont have a dedicated ip address. I also dont know
the actual path to my web directory so im guessing that's the problem. Could you
perhaps add an option for it not to resolve to ip?
Comment 18 by marcelobarrosalmeida, Mar 11, 2009
I suppose not. socket needs this IP for making the connection. This message comes
from socket library, far from any possible intervention. Do you if this happens with
both 1.4.5 and 1.9.2 versions ?
We may try to isolate the problem with some script. For instance, testing the
following request (and repeating it sometimes):

import urllib
furl = urllib.urlopen("http://blogaddress/xmlrpc.php"
contents = furl.read()
print contents

Comment 19 by shinemoon, Apr 09, 2009
I meet similar issue but I can't even create post either. And message (3,"Invalid
value of ai_flags") pops up before I can see "Impossible to update xxxx". And I guess
maybe it's still caused by some encoding issue ... for I am using a third-parity
chinese input method to input those settings...Though I can't find any obvious error
in setting I can't use wordmobi till now...
Comment 20 by marcelobarrosalmeida, Apr 09, 2009
Hello Shinemoon !
The problem seems related (DNS resolution). 

From http://www.rt.com/man/getaddrinfo.3.html

DIAGNOSTICS
     Error return status from getaddrinfo() is zero on success and non-zero on
     errors.  Non-zero error codes are defined in <netdb.h>, and as follows:
     .....
     EAI_BADFLAGS    invalid value for ai_flags
     .....

Could you do the test suggested in comment 18 or post here your blog address ?

Labels: -Type-Defect Type-Other
Comment 22 by shinemoon, Apr 14, 2009
In fact, I have try to reinstall wordmobi again, and after several trys, I found my
issue is caused by the conflicts of wordmobi and my Chinese input method. So it can
work after I unistalled this input method tool. Thanks!
Comment 23 by marcelobarrosalmeida, May 02, 2009
(No comment was entered for this change.)
Status: Done
Sign in to add a comment

Hosted by Google Code