Elementor编辑页面时,报错:Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes)

Elementor编辑页面时,报错:Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes)

问题:Elementor编辑页面大型页面时,偶尔报错误Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes)

解决方案:WP站点分配的内存太少,导致打开Elementor编辑器时,内存不够直接报错。

1.在php.ini文件中修改站点内存限制

2.在wp站点wp-config.php添加增加站点内存的语句

define('WP_MEMORY_LIMIT', '4096M');//站点内存限制 

Comments are closed.