有朋友留言说安装插件出现 WordPress错误:Fatal error: Allowed memory size of XX bytes exhausted…,具体代码类似:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in
/home/www/web/xxxxxx.php on line xxx |
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in
/home/www/web/xxxxxx.php on line xxx
错误根源
出现类似错误,一般是由于主机空间的内存设置过小造成的
解决办法
网上对于该问题的解决办法有如下3种,大家不妨一一测试:
方法一:
在 wp-config.php 文件的 define (‘WPLANG’, ”);下一行添上:
define('WP_MEMORY_LIMIT', '64M'); |
define('WP_MEMORY_LIMIT', '64M');
方法二:
在WordPress的安装目录下新建一个.htaccess文件(已存在就不用新建了),在文件内填上:
php_value memory_limit 64M |
php_value memory_limit 64M
方法三:
如果你有修改 php.in 文件的权限,可以查找 memory_limit 修改为
来源:
https://www.wpdaxue.com/wordpress-fatal-error-allowed-memory-size.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_33802.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57