Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem: I'm getting a WordPress notification saying REST API is disabled and it's slowing my site down

Solution: Please update WPML to the latest version available

Relevant Documentation: https://wpml.org/errata/rest-api-is-disabled-blocking-some-features-of-wpml-notice-and-performance-issues/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 5.42 hours from now. Thank you for your understanding.

This topic contains 13 replies, has 2 voices.

Last updated by islamY 4 years, 11 months ago.

Assisted by: Alejandro.

Author Posts
November 23, 2019 at 1:44 am #5002445

islamY

I am trying to:
have a multi language site
Link to a page where the issue can be seen:
the whole website
I expected to see:
to work normally
Instead, I got: Very slow and big load on the server

I tried to reset and remove WPML 3 times and fresh installation after that, I tried steps mentioned in the forum regarding the same issue, I installed only the main plugin "WPML Multilingual CMS" and "WPML String Translation"..
once I deactivate "WPML Multilingual CMS" everything works just fine,, and the website loads normally and the admin panel is also working fine, I don't know what is the problem specially that I'm using your awesome plugin on other websites I created and they are all on the same hosting same server "shared hosting" yet only this website have a problem... the theme is called traveler theme "hidden link"

November 23, 2019 at 1:23 pm #5004233

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hello!
Welcome to WPML Support.
I'll do my best to help you solve this issue.

First of all, is this a production site?

I'd need access to your site so i can run a few tests and that will probably affect somehow the front-end as well (i'll need to disable plugins, check queries, etc) so if this is a production site, could it be possible to get a staging site?

I suppose it's ok if it's not possible but i'd need to have both FTP and a backup of your site so we can avoid any type of risk during these tests.

To continue, I'll need temporary access to your site.

I have just activated the appropriate boxes for the credential information i need from you. they are private so only you and i will be able to see them.

I suggest you create a temporary user, set it as an administrator and then add those credentials in the fields mentioned above.

November 23, 2019 at 4:09 pm #5004671

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

May i ask what server are you using right now? i installed a plugin called duplicator, so i could try to make a backup and the site instantly became super heavy --> hidden link

This means the server is probably very loaded or your site is very restricted in either the database (common practice of shared hosting is to limit the number of MYSQL queries per minute, which creates a bottleneck, making the site slower) or the CPU (if you don't have enough CPU power, your site will appear to be using a LOT of CPU, but only because you are being restricted on that front).

As you could see from the video, i didn't even have to enable WPML in order to reproduce the problem, and the actual backup never even started because it was blocked by the server until the process just stopped.

So i would suggest you ask your hosting support about how much do you have of CPU, Mysql queries per minute (everything under 10-16 is way too low) and also ask about which script is the one that loaded the server right now (at 5:06 PM on GMT +2 )

Regards.

November 24, 2019 at 1:42 am #5005719

islamY

Thank you sir,

I contacted support and they said "The site resources have been limited in the last 24 hours.", They also suspect its something within the settings of WPML maybe causing this

"I checked the site and the next files have been hitting constantly.
-- wp-login.php requests per site: 114 mydomainname-ssl_log wp-cron.php requests per site: 127 mydomainname
330 mydomainname-ssl_log xmlrpc.php requests per site: 140 mydomainname
167 mydomainname-ssl_log Heartbeat (admin-ajax.php) requests per site: 651 mydomainname-ssl_log"
they gave me some suggestions that I looked at and did as they asked which still didn't help and the load was very high once I activated WPML..

"We can see there were a number of calls to your WordPress heartbeat (admin-ajax.php) for this account. You and your web developer will want to review this article in our knowledge base and help configure the heartbeat for WordPress so it is not causing heavy resource usage: hidden link
[22:38:35] Stanley S.: : There were a number of calls to the wp-cron.php file which could have caused or contributed to this heavy load. You and your developer will need to evaluate the plugins on your site that are causing this heavy load. You will want to evaluate their configuration and optimization to reduce the load they are creating. You may also want to ensure you have disabled the default cron job for WordPress as this is configured to run each time your page is loaded and can increase the resources used by the account and contribute to the site loading slower than expected : hidden link
[22:38:44] Stanley S.: : There were also a large number of calls to the xmlrpc.php file which can be legitimate pingback traffic or could be an attempt to disrupt your account. You and your web developer may want to examine if your site is actively using this functionality or if you may want to disable this to prevent the file from being flooded and your site's resources being misused or unresponsive. There is a great guide to this file and how to disable it if you choose found at the following link : hidden link"

November 24, 2019 at 10:57 pm #5007939

islamY

I'm sorry to post another reply, but something I just tried was that it might be the theme causing all this... coz I installed WP and the theme "Traveler" on another website only the theme and its necessary plugins and imported their demo nothing more, then I installed WPML the same exact problem happened. yet they say it is fully compatible with WPML and they even have an ad on their support website for WPML, yet I hope I hear from them by today... although I don't think I will hear from them with anything helpful since they have been no help at all with all the other issues their theme have.

Here is a link to their website on how to configure WPML "of course its outdated.. totally expected":
hidden link
and here is a link to the theme on theme forest where they say its compatible with WPML:
hidden link

I would have used a different theme right away coz I already hate this one, but me and the client already put A LOT of work in this website, and I know you guys are WAY better support team than theirs so I hope you got a solution for this..

November 25, 2019 at 3:23 pm #5015091

islamY

Thank you so much Mr. Alejandro

The migration is done.

November 25, 2019 at 5:22 pm #5015969

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Ok, so i did notice a few changes but they happened both when the traveler plugins were off and on and the same thing with WPML, so i'm not sure if the problem is coming fomr a plugin at all (although i'm still testing).

I am yet to try to do the same with the theme but in the meantime i saw something that you mentioned before.

A lot of constant hists to wp-login.php and XMLRPC and that sounds like maybe bots or someone tried to access your site, those 2 things actually go together because all the security plugins alway ask you if you want to deactivate XMLRPC and maybe change the wp-admin URL, so people can't access that easy the 2.

About the cronjobs being executed, that's normal but you should ask which cron is being executed constaly, to see if there's one in particular that could be creating this issue.

I created a video while i checked the site which you can see here: hidden link

It's a long one on purpose because i wanted to do a few things to try to make the site at least a bit slower and the problem didn't appear there, so no slowness as you mention them, so i believe that the server might be the one creating issues.

Please know that our servers are actually using reduced resources (on purpose, to simulate some shared hostings) and we have many websites hosted on the same server (for staging and testing purposes) but we do not have reduced or limited queries or CPU usage.

I checked the server since you migrated the site and the use of the CPU didn't really go that far, on its slowest moment it used more or less 20% of the server's resources, and that was for like less than a minute, afterwards, it used like 3-4% which is normal (and this was with and without WPML)

Regards.

November 25, 2019 at 6:18 pm #5016277

islamY

I have a plug in disabling "XMLRPC" already
And the thing is I am using wpml on other websites as you can see on my account, all of them on my reseller on same server ..

November 26, 2019 at 12:33 am #5017641

islamY

Thank you so much, I looked at everything you sent me so far and its a great help

Although on my website I get this error: hidden link

November 26, 2019 at 10:10 am #5019959

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Can you try this: https://wpml.org/errata/rest-api-is-disabled-blocking-some-features-of-wpml-notice-and-performance-issues/

I know it's not 100% related but the problem is coming from the same place.

Let me know if that fixes the problem, otherwise i'll split the ticket and keep checking.

November 26, 2019 at 5:19 pm #5023835

islamY

That stopped the error! And the error is what took long I guess, so far it's working, every page load between "0.45 ~ 0.75" second, which is WAY better than 15~30 seconds! Haha
Thank you so much Mr. Alejandro

I will keep on trying for now I hope it keep working smoothly

November 27, 2019 at 9:49 am #5027555

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

I'm so glad! and yes, i never really caught that error, because it never really happened on my end (i was aware of it so i looked for it as well), which is weird because that issue happened quite often on other tickets with similar issues, but yes, it's a weird issue that is already fixed in the next version that is yet to be released.

Regards.

November 27, 2019 at 2:42 pm #5030191

islamY

Well, I don't even know how to say thank you.. Mr Alejandro your help was amazing and I really appreciate all the work you put to solve this problem.

As always, the best support team there is. Thank you so much

November 27, 2019 at 2:44 pm #5030193

islamY

As always and as expected from WPML team, My issue is resolved now. Thank you!