wordpress - WordPress 白屏或 https 上的内存限制
问题描述
我的情况很奇怪。当我使用 http 正常打开我的网站时,一切正常,但是当我使用 ssl 并使用 https 打开时,我看到有关内存限制与白屏交替出现的致命错误。您对问题及其解决方案有任何想法吗?
解决方案
Try this solution for your error -
Increase PHP memory limit in WordPress
There are a few ways to do this, and you may or may not be limited by your host, in which case, if the following fixes don’t work, you need to talk to them.
First Option is Via wp-config.php
define('WP_MEMORY_LIMIT', '256M');
Second Option is Via PHP.ini
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
Third option is Via .htaccess
If you don’t have access to your php.ini file, sometimes you can use your .htaccess file to set the memory limit:
php_value memory_limit 128M
推荐阅读
- groovy - Jmeter 如何在一个会话中生成多个 HTTP 请求正文?
- r - 使用递归函数在R中的主键和ID之间创建网络组/互连组
- python - 没有空格的 Python 输入
- machine-learning - ML 的数据准备阶段是否应该包括:将数据拟合到正确分布,然后进行缩放?
- bluetooth-lowenergy - React Native BLE 与 OBD 设备
- c++ - 如何删除某个文件夹中的所有文件
- swift - 如何在画中画模式下使用 Swift 关闭 VoiceOver 的辅助功能
- typescript - 尝试使用类作为接口,但 TS 需要私有构造函数属性
- ubuntu - ubuntu配置文件中'#'和'*'字符的区别
- function - Gnuplot 阶乘计算输出