Forums

App only retrieves last 10 posts

  1. Hello,

    I've struggled with this for a while now.
    I own a Blackberry Curve 8520.
    Setting the option "recent posts and pages" to 20,30,40,50 has no effect for one of my accounts.
    I have two accounts set up inside the app, both for self-hosted wp blogs.
    One of them works just fine and always has (running 2.9.2), for the other one I really can never retrieve more than 10 posts (running 3.2.1).
    I turned on the debug option and everything looks just fine to me.
    Except for the fact that the XML response only contains 10 entries.
    So, is the app asking for 10 entries when it should ask for 50 or is the self-hosted blog limiting the number of results to 10?

    I'll post the relevant part of the log here:

    20111025T125903Z [TRACE] Encoding from header= UTF-8
    20111025T125903Z [TRACE] Encoding dal parser= ISO-8859-1
    20111025T125903Z [TRACE] Clean the resources used by XmlRpc dual output stream
    20111025T125903Z [TRACE] XmlRpc Input/Ouput Stream set to null
    20111025T125903Z [TRACE] Ended XML-RPC request
    20111025T125903Z [DEBUG] <<< End reading wp.getCommentStatusList on the blog : Name of blog was here
    20111025T125903Z [DEBUG] >>> getRecentPostTitle
    20111025T125903Z [DEBUG] File successfully created: file:///store/home/user/wordpress/tmp_xmlrpc/1319536743543
    20111025T125903Z [TRACE] Closing the xml rpc output stream
    20111025T125903Z [TRACE] grandezza del file da inviare 298
    20111025T125903Z [TRACE] The currently active Wireless Access Families : 5
    20111025T125903Z [TRACE] WLAN Wireless Access Family: 4
    20111025T125903Z [TRACE] Checking WIFI Availability
    20111025T125903Z [TRACE] WI-FI Supported
    20111025T125903Z [TRACE] The currently active Wireless Access Families : 5
    20111025T125903Z [TRACE] WLAN Wireless Access Family: 4
    20111025T125903Z [TRACE] Checking WIFI Availability
    20111025T125903Z [TRACE] WI-FI Supported
    20111025T125903Z [TRACE] The currently active Wireless Access Families : 5
    20111025T125903Z [TRACE] WLAN Wireless Access Family: 4
    20111025T125903Z [TRACE] Checking WIFI Availability
    20111025T125903Z [TRACE] WI-FI Supported
    20111025T125903Z [TRACE] Opening url: http://www.myblog.com/xmlrpc.php;interface=wifi
    20111025T125904Z [DEBUG] App version: 1.5
    20111025T125904Z [TRACE] common http request properties set
    20111025T125904Z [TRACE] ==== Response headers from the server
    20111025T125905Z [TRACE] Date Tue, 25 Oct 2011 09:57:03 GMT
    20111025T125905Z [TRACE] Server Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    20111025T125905Z [TRACE] Expires Thu, 19 Nov 1981 08:52:00 GMT
    20111025T125905Z [TRACE] Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    20111025T125905Z [TRACE] Pragma no-cache
    20111025T125905Z [TRACE] Connection close
    20111025T125905Z [TRACE] Set-Cookie PHPSESSID=6cc05759r4fac0601023a2667399d879; path=/
    20111025T125905Z [TRACE] Set-Cookie wpmp_switcher=mobile; expires=Wed, 24-Oct-2012 09:57:03 GMT; path=/
    20111025T125905Z [TRACE] Content-Length 6170
    20111025T125905Z [TRACE] Content-Type text/xml
    20111025T125905Z [TRACE] === End Response headers from the server
    20111025T125905Z [DEBUG] Response Content-type without charset
    20111025T125905Z [TRACE] Selected Encoding: UTF-8
    20111025T125905Z [TRACE] response from the wordpress server: <?xml version="1.0"?>

    and then 10 nice entries of this type:

    <value><struct>
    <member><name>dateCreated</name><value><dateTime.iso8601>20111101T10:00:22</dateTime.iso8601></value></member>
    <member><name>userid</name><value><string>1</string></value></member>
    <member><name>postid</name><value><string>265</string></value></member>
    <member><name>title</name><value><string>Name of post was here</string></value></member>
    <member><name>post_status</name><value><string>future</string></value></member>
    <member><name>date_created_gmt</name><value><dateTime.iso8601>20111101T10:00:22</dateTime.iso8601></value></member>
    </struct></value>

    Thanks for listening,

  2. Turn on the XML-RPC log setting within the xmlrpc.php file of your WordPress installation. Set the output on a file on disk and check the log. You should see the XML-RPC request sent by the app.

  3. squareSquirrel
    Member
    Oct 27, 2011, 3:32 PM

    Hi daniloercoli, thanks for replying.

    So, the xml-rpc log says:

    2011-10-27 15:24:06  Input: <methodCall><methodName>mt.getRecentPostTitles</methodName><params><param><value><string>1</string></value></param><param><value><string>usernamehere</string></value></param><param><value><string>passwordhere</string></value></param><param><value><i4>50</i4></value></param></params></methodCall>

    I'm thinking <i4>50</i4> is the requested number of items? So "i4" stands for four-byte signed integer. Cool.

    I still get just 10...
    Is there maybe some cache I could delete? Already tried removing and adding the blog again on my phone.
    Also tried removing the entire app.

    Thanks again,

  4. Unfortunately your server replied with 10 posts, even if the app asked for the latest 50th posts.

    I suggest you to disable all active plug-ins and set the default theme.
    (Trying it with the default theme and plugins disabled will help pin down where the problem is. If everything works then you go back and enable your theme and then try it again. If everything still works then you go back and activate each plugin one at a time until you find the one that is causing the breakage.)

  5. squareSquirrel
    Member
    Oct 28, 2011, 1:29 PM

    Thank you for the effort.
    I will try that soon and post my results.

  6. squareSquirrel
    Member
    Oct 28, 2011, 1:44 PM

    Oh, ok, that was easy. The culprit was the "Wordpress Mobile Pack" plugin. Disabling it instantly retrieves more than 10 posts, enabling it brings the problem back. I'll investigate more, I will try to fiddle with the settings a bit and see what happens.
    Problem solved.
    Thanks again!

Topic Closed

This topic has been closed to new replies.


About this Topic