• Resolved michaellawrence

    (@michaellawrence)


    Hi, I disabled the wordpress heartbeat, using the code here:

    add_action( ‘init’, ‘stop_heartbeat’, 1 );
    function stop_heartbeat() {
    wp_deregister_script(‘heartbeat’);
    }

    I have removed that from my functions.php but admin-ajax.php remains disabled sitewide. I can’t add widgets, certain items won’t load. I even have the Heartbeat Control plugin installed and active. Admin-ajax.php wont resume.

    I just get this (front and back end):

    https://MYSITE.com/wp/wp-admin/admin-ajax.php 500 (Internal Server Error)

    Help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    There could be cached versions of the broken site so no matter what you do to fix the problem, you still get the cached version and not the fixed version. If you use a caching plugin, disable it via FTP by renaming its folder. If your host has caching active, there should be a way to flush it from your hosting control panel.

    If there is no caching, you most likely introduced a syntax error when removing the code. You can also disable your theme via FTP by renaming its folder. Once the syntax error in your functions.php is no longer relevant by being disabled, the site should function normally. Find and fix the syntax error, then you can restore the folder name and reactivate your theme.

    Thread Starter michaellawrence

    (@michaellawrence)

    Awesome, that helped! Finally found the issue. I forgot that in my application file (we use the roots.io Bedrock framework for WP), I put an ajax kill code to test the load time by disabling the admin-ajax. I removed that and, bingo, back to normal. Can’t believe I forgot I put that in there. Checked my github logs to see if I had done anything and there it was. Totally forgot. thanks!

    Moderator bcworkz

    (@bcworkz)

    No problem. It’s hard to keep track of all what we do sometimes ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I disabled heartbeat, now I can’t re-enable it (admin-ajax.php wont load at all)’ is closed to new replies.