簡體   English   中英

PHP5 include()問題

[英]PHP5 include() Problem

因此,我有老板的任務要在openbsd上運行的新安裝的PHP5上安裝opendocman。 當我嘗試在ubuntu筆記本電腦(運行9.04)上安裝opendocman時,它運行平穩。 但是,當我嘗試在服務器上安裝時,出現以下錯誤:

Warning: include(templates_c/%%0E^0E4^0E407559%%footer.tpl.php) [function.include]: failed to open stream: No such file or directory in /usr/local/www/apache22/data/myphp/opendocman/includes/smarty/Smarty.class.php on line 1258

Warning: include() [function.include]: Failed opening 'templates_c/%%0E^0E4^0E407559%%footer.tpl.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/www/apache22/data/myphp/opendocman/includes/smarty/Smarty.class.php on line 1258

我的雖然如此,但由於php.ini上的某些配置錯誤而生成了此文件,但我找不到特定的設置。 是否需要幫助或指導? 我用谷歌搜索了一下但沒有結果(可能是錯誤的關鍵字:()。

謝謝。

您必須使用名為Smarty的模板引擎。 templates_c是Smarty將* .tpl文件編譯為PHP的地方。 檢查您的Web服務器是否有權寫入此目錄。 Web服務器的常規設置是它不能寫任何東西,但是需要寫到templates_c目錄。

我建議您閱讀Smarty手冊 ,尤其是基本安裝

我只是看看。 實際上,Opendocman確實將Smarty用作模板引擎,因此我很確定這是您的權限問題。

或者,您可能希望刪除templates_c目錄的內容以強制刷新(即重新編譯原始模板)。

對我來說,它看起來像opendocman配置問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM