Wordpress on 16.04 One-Click connectivity issue

The following issue does not exist in the WordPress on 14.04 One-Click app, only 16.04 One-Click app

Creating a new WordPress site with the 16.04 One-Click app option works flawlessly, but the WordPress News widget has “An error has occurred…” and if I try to connect to the website via Android WordPress app, it fails.

However, setting up WordPress via the 14.04 One-Click app does not have this issue. The WordPress News widget indeed shows the latest news, and the Android WordPress app connects without issue.

Aside from having to update the copy of WordPress on Ubuntu 14.04 (which takes 2 seconds and still works afterwards), something is wrong (or different) on the 16.04 version and I do not know how to fix it.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

To use WordPress mobile app, xml-rpc should be enabled.

It could be that, xml-rpc is blocked by default on 16.04, which is not bad. It’s recommend to keep it blocked because it’s common way to attack WordPress installation.

You can learn more about it and how to block it when needed in How to block XML-RPC.

I’m not sure is it disabled by default but we can try to enable it.

  1. sudo a2disconf block-xmlrpc

You can check do you have needed dependencies.

  1. sudo apt-get install php-xml php-xmlrpc

Install it if asked to do so.

Make sure you restart Apache after this:

  1. sudo systemctl restart apache2

Try again to use mobile app.

I’m not absolutely sure that One-Click is using this method to block xml-rpc, but chances are very high. If it still doesn’t work, read linked tutorial and make sure you don’t have any of it

Just to note, this is not recommended to keep it enabled if you don’t use it, because of xml-rpc attacks. But it could be needed for some plug-ins and mobile app so if you need it, enable it. :)

Eris Castrogivanni
DigitalOcean Employee
DigitalOcean Employee badge
October 25, 2016

This is actually a security feature in the new one-click. WordPress is a common target for xml-rpc based brute-force attacks. This is something that our customers frequently have trouble with since it’s trivial to take down an unsecured WordPress instance.

To prevent this, fail2ban is set up by default. If you enter the wrong username or password over xml-rpc, you will be blocked from access for 5 minutes.

Wait five minutes, then try again with the correct username/password. It should work fine. :)

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel