简体   繁体   English

PHP5 include()问题

[英]PHP5 include() Problem

So, I've got task from my boss to install opendocman on our newly installed PHP5 running on openbsd. 因此,我有老板的任务要在openbsd上运行的新安装的PHP5上安装opendocman。 When I try to install opendocman on my ubuntu laptop (running 9.04) it was run smoothly. 当我尝试在ubuntu笔记本电脑(运行9.04)上安装opendocman时,它运行平稳。 But, when I try to install in on server, I've got these error: 但是,当我尝试在服务器上安装时,出现以下错误:

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

My though, this is generated because of some misconfigured on php.ini, but I can't find the specific setting. 我的虽然如此,但由于php.ini上的某些配置错误而生成了此文件,但我找不到特定的设置。 Care for some help or guidance? 是否需要帮助或指导? I google a bit but no result (maybe wrong keyword:(). 我用谷歌搜索了一下但没有结果(可能是错误的关键字:()。

Thank you. 谢谢。

You must be using a template engine called Smarty . 您必须使用名为Smarty的模板引擎。 templates_c is where Smarty compiles *.tpl files to PHP. templates_c是Smarty将* .tpl文件编译为PHP的地方。 Check your Webserver has permissions to write to this directory. 检查您的Web服务器是否有权写入此目录。 The normal setup for a Webserver is that it can't write to anything but it needs to write to the templates_c directory. Web服务器的常规设置是它不能写任何东西,但是需要写到templates_c目录。

I'd suggest you peruse the Smarty Manual , especially Basic Installation . 我建议您阅读Smarty手册 ,尤其是基本安装

I just had a look. 我只是看看。 Opendocman does in fact use Smarty as a templating engine so I'm fairly sure it's a permissions problem you have. 实际上,Opendocman确实将Smarty用作模板引擎,因此我很确定这是您的权限问题。

Alternatively you may want to delete the contents of the templates_c directory to force a refresh (ie a recompile of the original templates). 或者,您可能希望删除templates_c目录的内容以强制刷新(即重新编译原始模板)。

对我来说,它看起来像opendocman配置问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM