I've been make a wordpress site with woocommerce and works perfectly but when you enter in the wordpress panel in woocommerce > Desktop, for see your sells, Leaderboards, etc, it takes a long time to load and the website down with a 503 error, i can't access to the website for 3 minutes. This can happen in the entire woocommerce plugin but in this section is where this problem happens the most. The server use all the 512 Mb and all the I / O that is 1 Mb.
In the Cpanel> Metrics> CPU and Concurrent Connection Usage> Snapshot, the table shows two CMD / usr / sbin / httpd -k start with 225 MB of ram each.
I've been reinstall the woocomerce plugin, i increased the php memory and wordpress memory but doesn't work. Anyone had this problem?
Thank for your support.
EDIT 1
My debug log in wp-content is:
[12-Jun-2020 22:49:54 UTC] PHP Notice: Undefined index: items in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1251
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1226
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1240
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1258
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1298
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1314
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1319
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1324
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1329
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1356
[12-Jun-2020 22:49:54 UTC] PHP Notice: Undefined index: items in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1251
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1226
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1240
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1258
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1298
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1314
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)m/wp-includes/rest-api.php on line 1319
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1324
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1329
[12-Jun-2020 22:49:54 UTC] PHP Notice: Trying to access array offset on value of type null in /home/vmgcwv3crvl0/public_html/(mydomain)/wp-includes/rest-api.php on line 1356
EDIT 2
PHP version: 7.4.5
Woocommerce versión: 4.2.0
Wordpress version: 5.4.2
rest-api code: https://www.dropbox.com/s/zoqwjhuuwny1oi8/rest-api.php?dl=0
I see this solution and now i don't have errors in debug_log but when enter to see the woocommerce statics my website goes out but now with 524 error.
In the google console i have this errors when i woocommerce load the statics: