1

我正在开发 Vtiger CRM 5.4.0 中的自定义模块。当我在某个服务器上安装新开发的自定义模块时,它会显示一条消息“对不起!尝试访问受限文件。而且我无法安装该模块。

请帮我纠正这个问题。

4

3 回答 3

2

vTiger 错误的最可能原因“对不起!尝试访问受限文件。” 'config.inc.php' 中的 $root_directory 值是否不正确或拼写错误。

为了更正它,请按照以下步骤操作:

Go to your vTigerCRM directory
Open “config.inc.php” with your favorite text editor
Go to line 86 and adjust $root_directory value to correct vTiger directory. Note, that the directory must end with /. It should look something like this – $root_directory = ‘/var/www/vtigercrm/’;
于 2013-11-15T04:45:07.327 回答
0

A couple of things spring to mind:

Have you actually created the modules/Mytest directory and populated it? (Using the template in vtlib/ModuleDir/5.4.0 and then editing the filenames and class of Mytest.php)

Check the case of your module class definition, e.g. class Mytest vs. class Mytest

If you are using any version control or symlinks in the development of your modules/Mytest code then this can trigger the "Sorry! Attempt to access restricted file." messages.

In module setup script make sure you have added this lines.

$module->initTables(); 
$module->initWebservice();
于 2013-11-13T11:28:15.933 回答
0

不确定但是,您在其他服务器上导入 de CRM 的 zip 文件是否实际上复制了模块文件夹?

消息“对不起!尝试访问受限文件。通常是关于权限或 CRM 无法访问模块文件夹,因为它不存在。

于 2013-09-09T22:37:20.370 回答