插件激活时出现 Wordpress 致命内存错误
Wordpress fatal memory error on plugin activation
我使用的是wordpress 4.6,当我尝试激活一个插件,例如seo yaost, jetpack时,出现如下错误。
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home/storage/2/2b/18/lgpconsulting/public_html/wp-admin/includes/class-wp-plugins-list-table.php on line 206
我更改了以下文件:
wp-config.php
define('WP_MEMORY_LIMIT', '96M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
wp-settings.php
ini_set('memory_limit', '128M');
.htacess
php_value memory_limit 128M
感谢
将此添加到您的 wp-config.php:
define('WP_DEBUG', true);
查看是否有错误
与您的虚拟主机商联系。您已进行了所有可能的调整以增加内存分配,但虚拟主机的服务器设置不允许您覆盖其设置。
都是内存问题
你需要增加
define('WP_MEMORY_LIMIT', '96M'); to define('WP_MEMORY_LIMIT', '256M');
同样停用所有插件,然后尝试一个一个激活插件
我使用的是wordpress 4.6,当我尝试激活一个插件,例如seo yaost, jetpack时,出现如下错误。
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home/storage/2/2b/18/lgpconsulting/public_html/wp-admin/includes/class-wp-plugins-list-table.php on line 206
我更改了以下文件:
wp-config.php
define('WP_MEMORY_LIMIT', '96M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
wp-settings.php
ini_set('memory_limit', '128M');
.htacess
php_value memory_limit 128M
感谢
将此添加到您的 wp-config.php:
define('WP_DEBUG', true);
查看是否有错误
与您的虚拟主机商联系。您已进行了所有可能的调整以增加内存分配,但虚拟主机的服务器设置不允许您覆盖其设置。
都是内存问题
你需要增加
define('WP_MEMORY_LIMIT', '96M'); to define('WP_MEMORY_LIMIT', '256M');
同样停用所有插件,然后尝试一个一个激活插件