Forums

"Upload failed" for posts to self-hosted site

  1. Every time I try to update a post from my WP android app, I get:

    "Upload failed for 'Post name'
    1 file not uploaded."

    This is a simple text post update for a Draft post, no media involved. It happens on 4G and on Wireless networks.

    I'm using WordPress 5.2.3

  2. mywifeworksatshawdotca
    Member
    Sep 8, 2019, 4:13 PM

    I am having the same issue.

    Posting via a browser on desktop or mobile works OK. The app always fails. It can be a simple text post and will still fail. A picture appears to get about 80% of the way through the progress bar and then just stops until failure.

    PHP given 128M on all options via cPanel.
    120 seconds given for PHP timeout.

    Google Pixel 3 on wifi or 4G. Updated to latest for Wordpress.

  3. Nathan Corbett
    Member
    Sep 17, 2019, 1:57 AM

    Same issue here. I've tried any number of different settings for jetpack, wp-optimize, and wordpress, but nothing has helped.

    It's a shame, being able to share to the wordpress media gallery is very useful.

  4. I'm having the same issue, I think; it also can't fetch posts or visit settings. I posted in more detail as a comment on at https://android.forums.wordpress.org/topic/cannot-upload-pics-via-app?replies=3#post-22577 .

  5. Same issue here.

    WordPress - 13.8-rc-2 - Version code: 804
    Android device name: Samsung SM-G950F

    01 - [Dec-14 22:12 MAIN] UploadService > Destroyed
    02 - [Dec-14 22:12 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
    03 - [Dec-14 22:12 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
    04 - [Dec-14 22:12 MAIN] Error message: The Jetpack site is inaccessible or returned an error: parse error. not well formed [-32700] ,Error Type: GENERIC_ERROR
    05 - [Dec-14 22:12 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
    06 - [Dec-14 22:12 POSTS] PostUploadHandler - UPLOAD. Post: Psychosocial Impact of Rosacea on Women
    07 - [Dec-14 22:12 API] Dispatching action: PostAction-PUSH_POST
    08 - [Dec-14 22:12 MAIN] Error message: The Jetpack site is inaccessible or returned an error: parse error. not well formed [-32700] ,Error Type: GENERIC_ERROR
    09 - [Dec-14 22:12 MAIN] Error message: The Jetpack site is inaccessible or returned an error: parse error. not well formed [-32700] ,Error Type: GENERIC_ERROR
    10 - [Dec-14 22:12 UTILS] SnackbarSequencer > after delay
    11 - [Dec-14 22:12 UTILS] SnackbarSequencer > item removed from the queue
    12 - [Dec-14 22:12 UTILS] SnackbarSequencer > prepareSnackBar message [1 file not uploaded
    There was an error uploading this post: We couldn't complete this action..]
    13 - [Dec-14 22:12 UTILS] SnackbarSequencer > before delay
    14 - [Dec-14 22:12 API] Volley error on https://public-api.wordpress.com/rest/v1.2/sites/2921305/posts/new/?context=edit&locale=en_GB - exception: null
    15 - [Dec-14 22:12 API] StackTrace: com.android.volley.ClientError
    at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:199)
    at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:131)
    at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:111)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

    16 - [Dec-14 22:12 API] Dispatching action: UploadAction-PUSHED_POST
    17 - [Dec-14 22:12 API] Dispatching action: PostAction-PUSHED_POST
    18 - [Dec-14 22:12 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
    19 - [Dec-14 22:12 UTILS] SnackbarSequencer > New item added
    20 - [Dec-14 22:12 MAIN] Error message: The Jetpack site is inaccessible or returned an error: parse error. not well formed [-32700] ,Error Type: GENERIC_ERROR
    21 - [Dec-14 22:12 UTILS] App goes to background
    22 - [Dec-14 22:12 STATS] 🔵 Tracked: application_closed, Properties: {"last_visible_screen":"Post List","time_in_app":99}
    23 - [Dec-14 22:12 MAIN] ConnectionChangeReceiver successfully unregistered
    24 - [Dec-14 22:12 UTILS] SnackbarSequencer > after delay
    25 - [Dec-14 22:12 UTILS] SnackbarSequencer > item removed from the queue
    26 - [Dec-14 22:12 UTILS] SnackbarSequencer > prepareSnackBar message [Draft saved on device]
    27 - [Dec-14 22:12 UTILS] SnackbarSequencer > before delay
    28 - [Dec-14 22:12 UTILS] SnackbarSequencer > after delay
    29 - [Dec-14 22:12 UTILS] SnackbarSequencer > item removed from the queue
    30 - [Dec-14 22:12 UTILS] SnackbarSequencer > finishing start()
    31 - [Dec-14 22:57 UTILS] App comes from background
    32 - [Dec-14 22:57 STATS] 🔵 Tracked: application_opened
    33 - [Dec-14 22:57 READER] notifications update job service > job scheduled
    34 - [Dec-14 22:57 API] Dispatching action: SiteAction-FETCH_SITES
    35 - [Dec-14 22:57 API] Dispatching action: AccountAction-FETCH_SUBSCRIPTIONS
    36 - [Dec-14 22:57 UTILS] trackLastActivity, activityId: Post List
    37 - [Dec-14 22:57 NOTIFS] notifications update job service > created
    38 - [Dec-14 22:57 API] Dispatching action: SiteAction-FETCHED_SITES
    39 - [Dec-14 22:57 DB] Site found by SITE_ID: 105925
    40 - [Dec-14 22:57 DB] Updating site: https://rosacea.wordpress.com
    41 - [Dec-14 22:57 DB] Site found by SITE_ID: 3664358
    42 - [Dec-14 22:57 DB] Updating site: https://digitaldavo.wordpress.com
    43 - [Dec-14 22:57 DB] Site found by SITE_ID: 110935155
    44 - [Dec-14 22:57 DB] Updating site: https://green-pastures-counselling.com.au
    45 - [Dec-14 22:57 DB] Site found by SITE_ID: 110934983
    46 - [Dec-14 22:57 DB] Updating site: https://isladonegan.com
    47 - [Dec-14 22:57 DB] Site found by SITE_ID: 104235859
    48 - [Dec-14 22:57 DB] Updating site: https://mctl.com.au
    49 - [Dec-14 22:57 DB] Site found by SITE_ID: 4503711
    50 - [Dec-14 22:57 DB] Updating site: https://rosaceaacne.wordpress.com
    51 - [Dec-14 22:57 DB] Site found by SITE_ID: 2921305
    52 - [Dec-14 22:57 DB] Updating site: https://rosacea-support.org
    53 - [Dec-14 22:57 API] Dispatching action: AccountAction-FETCHED_SUBSCRIPTIONS
    54 - [Dec-14 22:57 NOTIFS] notifications update service > completed
    55 - [Dec-14 22:57 NOTIFS] notifications update job service > all tasks completed
    56 - [Dec-14 22:57 NOTIFS] notifications update job service > destroyed
    57 - [Dec-14 22:57 STATS] 🔵 Tracked: post_list_view_layout_toggled, Properties: {"post_list_view_layout_type":"COMPACT"}
    58 - [Dec-14 22:57 STATS] 🔵 Tracked: post_list_view_layout_toggled, Properties: {"post_list_view_layout_type":"STANDARD"}
    59 - [Dec-14 22:57 STATS] 🔵 Tracked: post_list_view_layout_toggled, Properties: {"post_list_view_layout_type":"COMPACT"}
    60 - [Dec-14 22:57 STATS] 🔵 Tracked: post_list_view_layout_toggled, Properties: {"post_list_view_layout_type":"STANDARD"}
    61 - [Dec-14 22:57 STATS] 🔵 Tracked: post_list_view_layout_toggled, Properties: {"post_list_view_layout_type":"COMPACT"}
    62 - [Dec-14 22:57 STATS] 🔵 Tracked: post_list_view_layout_toggled, Properties: {"post_list_view_layout_type":"STANDARD"}
    63 - [Dec-14 22:57 UTILS] trackLastActivity, activityId: My Site
    64 - [Dec-14 22:57 API] Dispatching action: AccountAction-FETCH_ACCOUNT
    65 - [Dec-14 22:57 PROFILING] Visual Editor Startup: begin
    66 - [Dec-14 22:57 PROFILING] Visual Editor Startup: 0 ms, EditorFragment.onCreate
    67 - [Dec-14 22:57 PROFILING] Visual Editor Startup: 2766574 ms, WPMainActivity.onResume
    68 - [Dec-14 22:57 PROFILING] Visual Editor Startup: end, 2766574 ms
    69 - [Dec-14 22:57 API] Dispatching action: AccountAction-FETCHED_ACCOUNT
    70 - [Dec-14 22:57 UTILS] trackLastActivity, activityId: Notifications
    71 - [Dec-14 22:57 STATS] 🔵 Tracked: notifications_accessed
    72 - [Dec-14 22:57 STATS] 🔵 Tracked: notification_tapped_segmented_control, Properties: {"selected_filter":"all"}
    73 - [Dec-14 22:57 READER] notifications update job service > job scheduled
    74 - [Dec-14 22:57 READER] notifications update job service > job scheduled
    75 - [Dec-14 22:57 READER] notifications update job service > job scheduled
    76 - [Dec-14 22:57 NOTIFS] notifications update job service > created
    77 - [Dec-14 22:57 NOTIFS] notifications update job service > destroyed
    78 - [Dec-14 22:57 NOTIFS] notifications update job service > created
    79 - [Dec-14 22:57 NOTIFS] notifications update service > completed
    80 - [Dec-14 22:57 NOTIFS] notifications update job service > all tasks completed
    81 - [Dec-14 22:57 NOTIFS] notifications update job service > destroyed
    82 - [Dec-14 22:57 STATS] 🔵 Tracked: notification_settings_list_opened
    83 - [Dec-14 22:57 NOTIFS] Get settings action succeeded
    84 - [Dec-14 22:58 UTILS] trackLastActivity, activityId: Notifications
    85 - [Dec-14 22:58 API] Dispatching action: AccountAction-FETCH_ACCOUNT
    86 - [Dec-14 22:58 READER] notifications update job service > job scheduled
    87 - [Dec-14 22:58 READER] notifications update job service > job scheduled
    88 - [Dec-14 22:58 READER] notifications update job service > job scheduled
    89 - [Dec-14 22:58 NOTIFS] notifications update job service > created
    90 - [Dec-14 22:58 NOTIFS] notifications update job service > destroyed
    91 - [Dec-14 22:58 NOTIFS] notifications update job service > created
    92 - [Dec-14 22:58 API] Dispatching action: AccountAction-FETCHED_ACCOUNT
    93 - [Dec-14 22:58 NOTIFS] notifications update service > completed
    94 - [Dec-14 22:58 NOTIFS] notifications update job service > all tasks completed
    95 - [Dec-14 22:58 NOTIFS] notifications update job service > destroyed
    96 - [Dec-14 22:58 UTILS] trackLastActivity, activityId: Me
    97 - [Dec-14 22:58 STATS] 🔵 Tracked: me_tab_accessed
    98 - [Dec-14 22:58 STATS] 🔵 Tracked: support_opened, Properties: {"origin":"ME_SCREEN_HELP"}
    99 - [Dec-14 22:58 UTILS] trackLastActivity, activityId: Help Screen

  6. mywifeworksatshawdotca
    Member
    Dec 28, 2019, 7:01 AM

    I'm not sure if this helps but I have been trying to figure this out as I really enjoyed using the app on my phone.

    I noticed that I could connect to the wordpress.com panel but that nothing else except some general information (stats, post counts) could load but specific details (posts, media) and uploading did not work.

    I am currently working on the theory that the problem is not in the app but in the connection between WP.com and my self-hosted site.

  7. FWIW I have been told by my Web host that this is because XML RPC is disabled on the site. There are good security reasons for keeping this disabled. It wild only be a matter of time before people tried to hack the site. For me the alternative is to use the site from a mobile browser, which seems to work well enough.

  8. Hi there!

    There are a number of reasons why communication with the app may be failing and causing uploads not to finish. XML-RPC being disabled is definitely one of the reasons why this communication may fail, however, it could also be plugins, hosting configurations, or network restrictions.

    If your site uses a strong password and other security measures are in place, I would not be concerned with enabled XML-RPC on a site. Many different writing apps will use this to communicate with your site as it is a safe way of doing so. However, we understand some users would prefer keeping this disabled and in that case using the browser is a great alternative.

    If any of you are still having trouble with this, I suggest reaching out to us from within the support section of the app so we can look into this with you to troubleshoot why this is failing for your specific site.

    You can reach us by clicking on 'ME' (the icon with the profile of a person inside a circle) and going to Help and Support. Let us know your site URL and we'll look through a few settings there.

    Thank you!

  9. mywifeworksatshawdotca
    Member
    Jan 6, 2020, 8:26 PM

    For me, it is on the hosting side so using the app is now a non-starter.

    However, I can still use the website via mobile. It's not quite as elegant but it works fine.

  10. Welcome Back mywifeworksatshawdotca - it sounds like you've rooted out the issue here with the site's xmlrpc.php file being disabled. As you mentioned, you can definitely interface with the site directly in a web browser on your mobile device, which bypasses the need for a connection in the app.

    jamesgb regarding your concerns about XML-RPC - the concern is usually the ability to run many queries against the file in an attempt to timeout the site or brute force the password, but there are a lot of different ways to prevent that while still keeping xmlrpc.php intact. Hosts usually just don't want to deal with it. Need an example? Check out https://wordpress.org/xmlrpc.php :-)

  11. mywifeworksatshawdotca
    Member
    Jan 6, 2020, 8:50 PM

    It's a combination of XML-RPC and something else. The hosting provider advised to turn off mod_security briefly to test if it was just XML-RPC. It worked better but not functionally so I just turned mod_security on again. Perhaps whitelisting the IPs was it but I didn't see that they were actually blocked and wasn't convinced the problem was just that from what I saw.

    At this point, I don't want to devote the time to deducing 2+ layers of blockage just to have an update on the host or the app break it later again.

    Not sure what I am supposed to take away from the xmlrpc.php link you are suggesting?
    It just takes me to the expected "XML-RPC server accepts POST requests only." message.

  12. Totally understand. We're happy to help you work through it if you change your mind either here or from within the mobile app at "Help & Support" (on the "Me" tab - the person icon) and tap on "Contact us". You can also email us at mobile-support@automattic.com.

    The second paragraph in my previous reply was in response to jamesgb regarding their concerns about security issues involving XML-RPC.

Leave a Reply

You must log in to post.


About this Topic