php - WordPress 无法安装新插件,MySQL 连接中断
问题描述
在我阅读/更改网站文本内容之前,我的网站运行良好,但每当我要安装新插件时,我都会收到以下消息:
安装失败:连接丢失或服务器正忙。请稍后再试。
经过几个小时的调查并尝试了不同的解决方案,我在 phpmyadmin 中检查了 MySQL 主机的状态。我发现每次点击安装新插件按钮时,我都会增加一个中止的连接变量。一切都在之前/之后工作。
我托管了几个我自己的网站,现在都有同样的问题。
我已经尝试过针对类似问题的现有解决方案,例如:
- 禁用所有插件。
- 切换到默认主题并将插件文件夹重命名为其他内容。
- 用新的 WordPress 副本替换 wp-includes 和 wp-admin 的所有文件。
- 修复数据库。
- 在 php.ini 和 wp-config.php 中增加内存
我还检查了 apache 中的错误,每次尝试安装新插件时都会出现分段错误。
[Mon Sep 24 04:43:03.726633 2018] [core:notice] [pid 18706] AH00051: child pid 18713 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:05.729536 2018] [core:notice] [pid 18706] AH00051: child pid 18714 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:07.731804 2018] [core:notice] [pid 18706] AH00051: child pid 18807 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:42.764302 2018] [core:notice] [pid 18706] AH00051: child pid 21719 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:43.766767 2018] [core:notice] [pid 18706] AH00051: child pid 26183 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:45.768930 2018] [core:notice] [pid 18706] AH00051: child pid 26246 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:50:31.167685 2018] [core:notice] [pid 18706] AH00051: child pid 18710 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:50:34.171751 2018] [core:notice] [pid 18706] AH00051: child pid 26523 exit signal Segmentation fault (11), possible coredump in /etc/apache2
解决方案
推荐阅读
- javascript - 如何从 v83 检测 chrome 中的隐身模式?
- firebase - 使用 Flutter Firestore 插件时的最佳实践是什么?是否应该避免创建多个实例?
- php - PHP - 网址问题
- java - 具有 OutOfMemoryError 的 Java Docker 容器
- python - gmaps无法在vscode(python)中显示图形
- android - 添加 Kapt 插件后 - 执行 org.jetbrains.kotlin.gradle.internal.KaptExecution 时发生故障
- javascript - 如何在 v-Calendar 中格式化日期?
- javascript - 出现三个菜单图标而不是一个。(出现两个不成文的菜单图标 div)
- ruby-on-rails - Minimagick 不减少 png 文件大小而是增加
- php - Laravel - 获取根路径'/'以外的cookie