最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp-adminadmin-ajax.php Error 500

programmeradmin1浏览0评论

I have a single Wordpress 4.9.16 website that is throwing Error 500s when taking many actions in the admin interface. When I try to do things like add a new category, nothing happens in the front end and my web inspector shows the error.

I have tried:

  • Renaming my .htaccess file and letting WP rebuild a new one
  • Increasing Wordpress memory limit
  • Increasing PHP memory limit
  • Disabling all plugins
  • Re-uploading core files in wp-admin and wp-includes

And after taking each of those steps, I still experience an admin-ajax error 500 when trying to add a category.

My next steps are to either

  • Change my theme
  • Update to 5.6 current release.

I have a few questions, but basically it all comes down to how to fix my admin-ajax 500 error.

  1. If I change my theme to something out of the box (one of the Twenty ______ themes), and then change my theme back to my current theme (a child of Spacious Free), am I likely to experience big problems? Or will most/all of the configurations remain?
  2. Is it likely that I will be able to update to 5.6 if I'm receiving this error? It feels like this is a logical step in diagnosing the issue. I've been holding off because I haven't had a chance to test the site in 5.x, though.
  3. What else should I be looking for?

Thanks. -Ben

I have a single Wordpress 4.9.16 website that is throwing Error 500s when taking many actions in the admin interface. When I try to do things like add a new category, nothing happens in the front end and my web inspector shows the error.

I have tried:

  • Renaming my .htaccess file and letting WP rebuild a new one
  • Increasing Wordpress memory limit
  • Increasing PHP memory limit
  • Disabling all plugins
  • Re-uploading core files in wp-admin and wp-includes

And after taking each of those steps, I still experience an admin-ajax error 500 when trying to add a category.

My next steps are to either

  • Change my theme
  • Update to 5.6 current release.

I have a few questions, but basically it all comes down to how to fix my admin-ajax 500 error.

  1. If I change my theme to something out of the box (one of the Twenty ______ themes), and then change my theme back to my current theme (a child of Spacious Free), am I likely to experience big problems? Or will most/all of the configurations remain?
  2. Is it likely that I will be able to update to 5.6 if I'm receiving this error? It feels like this is a logical step in diagnosing the issue. I've been holding off because I haven't had a chance to test the site in 5.x, though.
  3. What else should I be looking for?

Thanks. -Ben

Share Improve this question asked Feb 2, 2021 at 18:51 Benjamin D. BloomBenjamin D. Bloom 111 gold badge1 silver badge3 bronze badges 1
  • 1) I think it would preserve the configuration when you switch themes, but if you're worried just take a database backup first. – Rup Commented Feb 3, 2021 at 9:48
Add a comment  | 

1 Answer 1

Reset to default 1

Isn't it the case that once you write up what you've tried, you find that one last thing to try that works?

I just discovered that my admin-ajax file had 000 permissions. I reset to 644 and everything started working properly again.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论
ok 不同模板 switch ($forum['model']) { /*case '0': include _include(APP_PATH . 'view/htm/read.htm'); break;*/ default: include _include(theme_load('read', $fid)); break; } } break; case '10': // 主题外链 / thread external link http_location(htmlspecialchars_decode(trim($thread['description']))); break; case '11': // 单页 / single page $attachlist = array(); $imagelist = array(); $thread['filelist'] = array(); $threadlist = NULL; $thread['files'] > 0 and list($attachlist, $imagelist, $thread['filelist']) = well_attach_find_by_tid($tid); $data = data_read_cache($tid); empty($data) and message(-1, lang('data_malformation')); $tidlist = $forum['threads'] ? page_find_by_fid($fid, $page, $pagesize) : NULL; if ($tidlist) { $tidarr = arrlist_values($tidlist, 'tid'); $threadlist = well_thread_find($tidarr, $pagesize); // 按之前tidlist排序 $threadlist = array2_sort_key($threadlist, $tidlist, 'tid'); } $allowpost = forum_access_user($fid, $gid, 'allowpost'); $allowupdate = forum_access_mod($fid, $gid, 'allowupdate'); $allowdelete = forum_access_mod($fid, $gid, 'allowdelete'); $access = array('allowpost' => $allowpost, 'allowupdate' => $allowupdate, 'allowdelete' => $allowdelete); $header['title'] = $thread['subject']; $header['mobile_link'] = $thread['url']; $header['keywords'] = $thread['keyword'] ? $thread['keyword'] : $thread['subject']; $header['description'] = $thread['description'] ? $thread['description'] : $thread['brief']; $_SESSION['fid'] = $fid; if ($ajax) { empty($conf['api_on']) and message(0, lang('closed')); $apilist['header'] = $header; $apilist['extra'] = $extra; $apilist['access'] = $access; $apilist['thread'] = well_thread_safe_info($thread); $apilist['thread_data'] = $data; $apilist['forum'] = $forum; $apilist['imagelist'] = $imagelist; $apilist['filelist'] = $thread['filelist']; $apilist['threadlist'] = $threadlist; message(0, $apilist); } else { include _include(theme_load('single_page', $fid)); } break; default: message(-1, lang('data_malformation')); break; } ?>