我有一个网站和一个登台网站在同一台服务器上运行。我通过复制网站,设置新数据库并将其放在子域中来创建登台站点。两者都运行最新版本的Wordpress。服务器是Ubuntu 18.04。
两个站点均正常运行,但是登台站点在前端和后端始终遇到Fatal error: Out of memory
错误。我的服务器的CPU使用率没有超过40-45%,并且我没有做任何特别耗费时间的事情(只是调整插件,更改代码位等)。
到目前为止,我已经尝试过:
日志文件:
[05-Oct-2018 12:14:01 UTC] PHP Fatal error: Out of memory (allocated
20971520) (tried to allocate 32768 bytes) in /var/www/html/STAGINGURL/public_html/wp-content/themes/bridge/includes/shortcodes/shortcode-elements/portfolio-list.php on line 771
[05-Oct-2018 12:14:01 UTC] PHP Fatal error: Out of memory (allocated 20971520) (tried to allocate 32768 bytes) in /var/www/html/STAGINGURL/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php on line 1
[05-Oct-2018 12:14:05 UTC] PHP Fatal error: Out of memory (allocated 29360128) (tried to allocate 32768 bytes) in /var/www/html/STAGINGURL/public_html/wp-content/themes/bridge/includes/shortcodes/shortcode-elements/portfolio-list.php on line 771
[05-Oct-2018 12:14:05 UTC] PHP Fatal error: Out of memory (allocated 29360128) (tried to allocate 32768 bytes) in /var/www/html/STAGINGURL/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php on line 1
错误中命名的文件似乎每次都不同,包括刷新。
任何帮助表示赞赏。正如我所说的,主站点工作正常。