全球主机交流论坛

标题: 升级php,wordpress无法获取文章内容了 [打印本页]

作者: Ruclinux    时间: 2020-7-11 20:56
标题: 升级php,wordpress无法获取文章内容了
我的博客本来是使用5.6.40版php的,刚才手痒,把php升级到7.3.20了,现在其他网站并没有任何异常,但有一个博客却无法获取文章内容了

  可能是主题里使用的php命令的原因,但是我却不知道应该如何修改,谢谢了。

问题博客:https://www.myzhenai.com.cn/





作者: yuanhua    时间: 2020-7-11 20:58
ip已送
作者: ningfeng.im    时间: 2020-7-11 21:04
试试:
1、配置里把mysql 换成mysqli
2、换个主题
作者: jqbaobao    时间: 2020-7-11 21:23
宝塔可以安装多个版本PHP,降级回去吧
作者: Ruclinux    时间: 2020-7-11 21:27
ningfeng.im 发表于 2020-7-11 21:04
试试:
1、配置里把mysql 换成mysqli
2、换个主题

不更换主题的情况下如何更改呢? 谢谢了。

如何修改配置呢?
作者: Ruclinux    时间: 2020-7-11 21:42
WP Code Highlight

  1. Broke my Site - PHP 7 problem.

  2. By scbritton on 九月 2, 2019       
  3. This plugin was working fine, until some point in the last 12 months. I checked an old post and discovered that my content was no longer displaying, and discovered this plugin was the cause. Upon deactivation, my content reappeared. So, like others have posted, it doesn't seem to work with PHP 7
  4. Doesn't work with PHP 7.1

  5. By Niraj Shah (niraj.shah) on 五月 3, 2018       
  6. I used to use this plugin on my site, but since upgrading to PHP 7.1, this plugin no longer works, therefore I've uninstalled it.
复制代码


是高亮代码插件不兼容php7
作者: 我不是你的    时间: 2020-7-11 22:23
可以肯定是主题问题,7.3有很多函数的用法改了同时也弃用了很多。
作者: 复仇的撒旦    时间: 2020-7-11 22:26
楼猪博客主题好丑,丑死的那种
作者: Ruclinux    时间: 2020-7-11 22:35
复仇的撒旦 发表于 2020-7-11 22:26
楼猪博客主题好丑,丑死的那种

仁者见仁,智者见智

每人三观,美感本来就不一样。
作者: 怪人    时间: 2020-7-11 22:38
提示: 作者被禁止或删除 内容自动屏蔽
作者: Ruclinux    时间: 2020-7-11 22:40
我不是你的 发表于 2020-7-11 22:23
可以肯定是主题问题,7.3有很多函数的用法改了同时也弃用了很多。

已经知道问题出在哪里了,谢谢了
作者: Ruclinux    时间: 2020-7-11 22:41
怪人 发表于 2020-7-11 22:38
大佬都是用wordpress做站哦。用独服的吗

说是用虚拟主机信吗? 用的阿里云ECS




欢迎光临 全球主机交流论坛 (https://91ai.net/) Powered by Discuz! X3.4