Elementor Plugin on Wordpress keeps loading and I get a console error /wp-admin/admin-ajax.php 500
Asked Answered
T

4

6

how are you?

My website was working well and now I'm unable to create or edit pages using elementor because the 'loading' keeps spinning and nothing happens.

I see a console error where I get /wp-admin/admin-ajax.php 500

How can I fix this? I don't know what caused it.

Thanks!

enter image description here

Trillium answered 24/6, 2021 at 18:38 Comment(0)
C
12

there are many reason for this. But the common one is WP memory limit issue.

To handle this, first you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.

Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’

define( 'WP_MEMORY_LIMIT', '256M' );

This code tells WordPress to increase the PHP memory limit to 256MB.

Once you are done, you need to save your changes and upload your wp-config.php file back to your server.

Chateau answered 25/6, 2021 at 4:53 Comment(1)
You also can use higher limit like 512M, 1G, or 4G, but it is not recommended.Curse
F
0

I had this problem too, I just disabled plugins one by one and I found the problem! one of my plugins caused this problem.

Fenella answered 19/4, 2022 at 21:8 Comment(3)
How did you figure this out ?Buggy
What plugin did you find that caused this problem?Placebo
The answer is broad and unspecific.Gotham
M
0

I got mine working by updating the PHP version to 7.4.33.

Marivaux answered 18/7 at 10:6 Comment(0)
E
0

This is a more in-depth explanation of nguyen's already approved solution.

FYI: Same error on my end "/wp-admin/admin-ajax.php" => Error 500

Enable SSH if not already on your server. To enable follow these steps

Godaddy dashboard > Products > Hosting WordPress => click Manage > Three dots, click settings > On the right > Manage and enable > Save password and keep that safe!

In a terminal run

ssh youruser@yourip // AND ENTER PASSWORD
cd /home/youruser/www/
nano wp-config.php
// Above the line which says /* That's all, stop editing! Happy publishing. */
// Add the following, save and exit
define( 'WP_MEMORY_LIMIT', '256M' );

Done


Non-important rant:

Most people say it's a memory issue. So here's the unsuccessful things I tried to limit the memory usage.

To check how much memory Elementor is currently using, Dashboard > Elementor > System Info > Under WordPress Environment > Max Memory limit. (This info can also be found under the WordPress Site Health tool found on the Wordpress dashboard)

Compare this to your peak memory usage to see if this is the issue

Download “Query Monitor Plugin” > Go to overview of plugin > view peak memory usage > compare to max memory usage. Mine was only using 25% of the limit capacity.

Regardless I pushed on to reduce this usage.

  • Elementor > Tools > Regenerate CSS & Data in your WordPress dashboard, then click Regenerate Files & Data and Save Changes.
  • Use the most recent versions of Elementor, WordPress, and your theme

I saw that on the Query Monitor Plugin dashboard, I had an Object Cache with a 90.0% hit rate. I tried mitigating this with a redis server and used some plugins but to no avail.

Ernest answered 4/9 at 16:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.