首页 > 解决方案 > WordPress 白屏或 https 上的内存限制

问题描述

我的情况很奇怪。当我使用 http 正常打开我的网站时,一切正常,但是当我使用 ssl 并使用 https 打开时,我看到有关内存限制与白屏交替出现的致命错误。您对问题及其解决方案有任何想法吗?

本站网址: http ://careercon.pl https://careercon.pl

标签: wordpressssl

解决方案


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


推荐阅读