Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+7 votes
2.7k views
in Q2A Core by
edited

Hi there i am using your plugin and app for andoird latest question tab in app is working fine but the problem is other tabs are displaying error   org.xmlrpc.android.XMLRPCException: HTTP-Client error: org.xmlpull.v1.XmlPullParseException: expected: START_TAG {null}methodResponse (position:START_TAG (empty) <br>@1:6 in java.io.InputStreamReader@407e808) 

Q2A version: 1.6.1
by
reshown by
Same problem
by
If you give me your site url I can check it out.
by
Hi there NoahY i am thinking to change hosting to iPage, will this app work on iPage? as i am getting same error again instead of 500 internal server

5 Answers

0 votes
by
Any one?? ....
0 votes
by
I'm getting this error too, what's the solution?!
by
Hi there can you please check your error log? What are you getting?
+2 votes
by

It means something is wrong with your setup, it is not finding the XML-RPC server.  The most common reason would be you haven't enabled the plguin, but it might also be a redirect problem between your server and the plugin... the plugin is working for me.

Try visiting http://www.youtsite.com//xml-rpc in your browser - see what the HTTP headers are like.  If the XML-RPC server is working, it will show "XML-RPC server accepts POST requests only."

by
Thanks for the Answer but i already have activated the plugin you can check http://www.answerpk.com/xml-rpc
The App is fetches Latest Questions list but not other questions .
by
Ah, sorry, I didn't read the question properly... are you using the latest apk from github?  Can you check your PHP error log?
by
Yes i am using the Latest Apk and XML-RPC , My error log was not showing errors even after enabling from PHP.ini i have contacted my Host Provider they told me wait for few hours after that you will be able to download/access your error log file. Thanks Noahy For your precious time i will inform you as soon as i will start accessing my Log file .
by
Hi there NoahY my Error log is Empty does't showing any errors.
by
I get a 500 error when I try to use the app to connect to your site... that should show up in the logs.
by
Thank u Noahy Today i am also getting the same 500 error, Not getting the previous error, Let me tell you another thing the original .htaccess file was not working for me i was getting the same 500 error on my site before ,So i made few changes on my htaccess
// This is File where i have made changes
#DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>



// This is Original .htaccess file

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>

thanks
by
Thank u Noayh for viewing my issue the log was not generating the errors due to htaccess I have made you the Super Admin of my site so you can better understand the problem thanks alot
by
You need to check your php logs to find out the reason for the 500 error first...
by
Again Noahy Sorry for your precious time here is my Log error
[answerpk.com] [Mon Jul 29 15:09:33 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://answerpk.com/
[www.answerpk.com] [Mon Jul 29 15:09:42 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
[www.answerpk.com] [Mon Jul 29 15:09:46 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
[answerpk.com] [Mon Jul 29 15:10:21 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://answerpk.com/
[answerpk.com] [Mon Jul 29 15:10:22 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://answerpk.com/
[answerpk.com] [Mon Jul 29 15:10:25 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://answerpk.com/
[answerpk.com] [Mon Jul 29 15:10:41 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://answerpk.com/
[answerpk.com] [Mon Jul 29 15:10:42 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://answerpk.com/
[answerpk.com] [Mon Jul 29 15:10:43 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
[answerpk.com] [Mon Jul 29 15:10:47 2013] [error] [client 182.183.166.126] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://answerpk.com/



[www.answerpk.com] [Mon Jul 29 15:29:45 2013] [error] [client 182.183.166.126] File does not exist: /home/domains/www.answerpk.com/xml-rpc
[answerpk.com] [Mon Jul 29 15:29:52 2013] [error] [client 182.183.166.126] File does not exist: /home/domains/answerpk.com/unanswered, referer: http://answerpk.com/581/how-can-i-write-urdu-in-microsoft-word
[answerpk.com] [Mon Jul 29 15:29:54 2013] [error] [client 137.175.118.99] File does not exist: /home/domains/answerpk.com/118, referer: http://answerpk.com/118/can-a-person-with-60-percent-marks-in-fsc-get-admission-in-any-usa-college/
[answerpk.com] [Mon Jul 29 15:29:55 2013] [error] [client 182.183.166.126] File does not exist: /home/domains/answerpk.com/581

[www.answerpk.com] [Mon Jul 29 15:30:09 2013] [error] [client 182.183.166.126] File does not exist: /home/domains/www.answerpk.com/xml-rpc
[www.answerpk.com] [Mon Jul 29 15:30:17 2013] [error] [client 182.183.166.126] File does not exist: /home/domains/www.answerpk.com/xml-rpc
by
Seems like something with your web host... something with mod_rewrite or such.
by
I contacted my host they told me that you need  RewriteBase / to use Mod_rewrite
 :-( what do you suggest me should i change my host and which hosting do you prefer me .thanks
by
I can update the client to use index.php?qa=xml-rpc instead... that should work, I think.
by
That would be Great . i have already made you the Admin of my Site Should i send you FTP details? i already created one app before my self https://play.google.com/store/apps/details?id=com.answerpk but i don't like it ,It only posts as anonymous . Your app is great
by
Hi there Noahy , Hope you are Good, I have changed host to Godaddy just because of that app , But unfortunately i am  getting the following error in error log
[Thu Sep 05 02:19:26 2013] [11729511] [fcgid:warn] (110)Connection timed out: [client 182.183.234.115:10082] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

and the following error in the app
xmlrpc.android.XMLRPCException:
org.xmlpull v1.XmlPullParserException : expected START_TAG {null}
methodResponse ( position: start_tag @2:44 in java.io.
 InputStreamReader@435fi2a0)

domain :: http://answerpk.com
You don't need to register as you already registered in my site
by
The url http://Mysite/xml-rpc displays "XML-RPC server accepts POST requests only." But I get a 405 error on my android device.
0 votes
by
I am having the same problem Any solution??
by
If you give me your site url I can check it out.
by
Thank u noayh but the problem solved after changing my Host :-)
0 votes
by
Will this app work on iPage hosting?
...