Vtiger Custom Module : "Sorry! Attempt to access restricted file."

phpqa.in picture phpqa.in · Jan 30, 2012 · Viewed 12.3k times · Source

I have created a test module name Mytest. While saving values from the module, I am getting a blank page and it saying "Sorry! Attempt to access restricted file. " . Do anyone know, why this happening. Any help on this is really appreciating.

Answer

Milan Malani picture Milan Malani · Nov 12, 2013

The most likely cause for the vTiger error “Sorry! Attempt to access restricted file.” is the $root_directory value in the ‘config.inc.php’ is incorrect or misspelled.

In order to correct it follow the steps below:

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/’;

Also there is a problem with cache memory. So do check your cache file for template files. For that go to your vTigerCRM directory. Then Go to Smarty->templates_c.

Here you will get list of cache files. Delete this file and check weather your problem is solved or not.

Don't worry about deletion of this file.