[英]Fatal Error: Call to undefined function gzopen() when installing WordPress theme
嘗試激活WordPress主題后,我看到以下錯誤。 瀏覽器中的錯誤消息是...
Fatal error: Call to undefined function gzopen() in /var/www/mysite.com/wp-content/themes/flat/themify/themify-builder/classes/class-themify-builder-layouts.php on line 528
檢查我的/var/log/apache2/error.log
我看到以下錯誤:
Call to undefined function gzopen() in /var/www/mywebsite.com/wp- content/themes/flat/themify/themify-builder/classes/class-themify-builder-layouts.php on line 528, referer: http://mywebsite.com/wp-admin/update.php?action=upload-theme
服務器信息:
OS: Ubuntu 14.04 LTS
Apache: APache/2.4.7
PHP: PHP 5.5.9-1ubuntu4
我也發生了這種情況(升級到14.04 #ubuntu之后)。 我整日忙着做,但是最后我找到了解決方案。
將gzopen
替換為gzopen64
。
這絕對對我有用。 PS:我想讓magento社區知道在升級apache和php之后,在創建軟件包時會出現此問題。
發生此問題的原因是您的PHP服務器未使用Zlib編譯(此PHP模塊允許您讀取和寫入.gz壓縮文件)。 默認情況下,PHP中的Zlib支持未啟用。 有關如何設置Zlip的更多信息,可以在這里找到: http ://php.net/manual/en/zlib.setup.php
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.