我已经成功运行了编译过程,但是当试图通过管理面板或通过命令行启用编译模式时,我没有错误,但是状态始终保持 禁用.

文件夹 includes 具有0775权限,文件 includes/config.php 有0777,所以我认为这不是一个许可问题。

这是油灰中的典型序列:

myuser@serv01 [~]# php -cli public_html/shell/compiler.php disable
Content-type: text/html

Compiler include path disabled
myuser@serv01 [~]# php -cli public_html/shell/compiler.php enable
Content-type: text/html

Compiler include path enabled
myuser@serv01 [~]# php -cli public_html/shell/compiler.php state
Content-type: text/html

Compiler Status:          Disabled
Compilation State:        Compiled
Collected Files Count:    7605
Compiled Scopes Count:    4

更新

即使更改工作目录也无济于事:

myuser@serv01 [~]# cd public_html/shell
myuser@serv01 [~/public_html/shell]# php -cli compiler.php enable

ETC...

更新2

文件 includes/config.php 总是空的,但是文件夹 includes/src 在汇编过程中进行更新 /重新创建。

有帮助吗?

解决方案

你失去了有效的 config.php 文件。管理员本质上将该文件中的一行评论以禁用编译器的使用(除非发生了变化)。尝试拉干净 includes/config.php 从干净的洋红色代码库中,然后尝试再次启用它。

其他提示

默认内容的内容 config.php 文件:

<?php
#define('COMPILER_INCLUDE_PATH', dirname   (__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
许可以下: CC-BY-SA归因
scroll top