The most likely cause for the vTigererror “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/’;
I had installed Vtiger 6.0 on a sub-domain hosted by hostgator.com..
Evrything works fine except that, when admin creates a user, he’s been redirected to a page which says, “Sorry! Attempt to access restricted file.”.. But I can see the newly created user on the users’ tab..
Even If i try to login with the new user login credentials, again, I see the page saying, “Sorry! Attempt to access restricted file.”
.. I searched in the user_privileges directory, where I found no user_privileges_#.php or sharing_privileges_#.php filescorresponding to the new user were created..
Please look into the matter.
Thank you.
It’s really difficult to tell why is it happening without being able to access the environment. We’ll contact you via email and see if we can get that sorted out.
I had the same problem: “Sorry! Attempt to access restricted file.” when I added a new user. I did the fix on top and just added “/” (slash) at the end of my root directory and nothing else, now it works perfect. Thank you for the easy fix.
I had this very same issue and it was NOT down to the slash on the end.
I had upgraded from 5.4 to 6 and when I tried to sign in as my normal user (rather than admin, which worked fine), I had the error. All I did was change the “Theme” is the users details to Blue Lagoon then saved and signed in as my normal user and the message disappeared. However, when I then changed my theme back to woodspice, all seemed to carry on working as before.
I could purely be a difference in the way the users was set up… and perhaps saving the user without any changes may work as well.
I tried both the solutions and was still getting the issue when trying to login as a user I had created. Turns out that I will have to re-create those users before I try logging in with their credentials.
I have the same issue, And the config_inc.php file it’s ok.
I have Installed vTiger 6 on Windows 7 and on Windows 8.
The chmod obviously doesn´t work here.
It seems to me that some permissions have to be granted. But wich? I use wamp server.
The root directory fix above worked for me however YOU MUST DELETE USER AND RE ADD THEM BEFORE IT WILL START WORKING. I looked for hours on this issue.
Thanks Dustin Odom, I have fixed but when access web show blank page. Please tell me more detail of “YOU MUST DELETE USER AND RE ADD THEM BEFORE IT WILL START WORKING”.
Thanks you!
Hi
For me a new instance of vtiger 6.4 working in Internet Explorer and giving error “Sorry! Attempt to access restricted file. ” in Chrome. What could be the issue here?
Hello,
I have a problem with cronjob in vtiger 5.4.0
Error:
Sorry! Attempt to access restricted file.
What i did so far:
Find php_sapi value: apache2handler
crontab under linux: 15 * * * * sh /opt/requiz/cron/vtigercron.sh
Verify root_dir path with “/” at end, its correct value
Set user_privileges folder to 777 permission + Rest files have 755 permission
When I execute as root, its works perfect BUT not automatically !
I need to know user:group for all cron files and right access.
I have a new installation of 6.4 with data created in 5.4. I did this by installing a new 6.4, then created a database with the backup of the old 5.4 data. I changed the database parameters in the 6.4. config.inc.php file to the old 5.4 database.
Everything works fine except when I want to “Convert Lead” and the “create opportunity” is enabled. Then I get “Sorry! Attempt to access restricted file” error when I try to save. If the option to create opportunity is not enabled, it works ok. How can I correct this?
Getting this error after installing a fresh copy of vtiger7.0
Sorry! Attempt to access restricted file. – /www/html/CRMv7/includes/../includes/runtime/EntryPoint.php
Hello team i have a issue after migration of vtiger.. everything is working fine but a thing … when i go to import organizations with a csv file it says Success and has an error “vtiger import error Sorry! Attempt to access restricted file. – modules//.php”
I have $root_directory as your guide an clue what’s going on?
Php 7.4
Nginx
CloudPanel with Vhost
21 Comments
I had installed Vtiger 6.0 on a sub-domain hosted by hostgator.com..
Evrything works fine except that, when admin creates a user, he’s been redirected to a page which says, “Sorry! Attempt to access restricted file.”.. But I can see the newly created user on the users’ tab..
Even If i try to login with the new user login credentials, again, I see the page saying, “Sorry! Attempt to access restricted file.”
.. I searched in the user_privileges directory, where I found no user_privileges_#.php or sharing_privileges_#.php filescorresponding to the new user were created..
Please look into the matter.
Thank you.
I have exactly the same issue.
Please someone help
It’s really difficult to tell why is it happening without being able to access the environment. We’ll contact you via email and see if we can get that sorted out.
I had the same problem: “Sorry! Attempt to access restricted file.” when I added a new user. I did the fix on top and just added “/” (slash) at the end of my root directory and nothing else, now it works perfect. Thank you for the easy fix.
I had this very same issue and it was NOT down to the slash on the end.
I had upgraded from 5.4 to 6 and when I tried to sign in as my normal user (rather than admin, which worked fine), I had the error. All I did was change the “Theme” is the users details to Blue Lagoon then saved and signed in as my normal user and the message disappeared. However, when I then changed my theme back to woodspice, all seemed to carry on working as before.
I could purely be a difference in the way the users was set up… and perhaps saving the user without any changes may work as well.
Hope this helps others in the future. 🙂
Thanks for sharing!
I have found the solution. For me it was not down to the slash on the end.
When creating a new user, the folder “user_privileges” must be writable.
chmod 777 user_privileges.
Dima – thanks for Sharing!
Dima – after an hour of frustration, your solution worked perfectly.
Hi,
I tried both the solutions and was still getting the issue when trying to login as a user I had created. Turns out that I will have to re-create those users before I try logging in with their credentials.
– Subbu
I have the same issue, And the config_inc.php file it’s ok.
I have Installed vTiger 6 on Windows 7 and on Windows 8.
The chmod obviously doesn´t work here.
It seems to me that some permissions have to be granted. But wich? I use wamp server.
There’s likely an issue with $root_directory, if it’s possible – install blank instance of vtiger and let the installer set the $root_directory.
Thanks to vte,I have the same the issue.i added $root_directory = ‘ ‘; under
$root_directory = ‘/var/www/html/vtigercrm/’; it works.
The root directory fix above worked for me however YOU MUST DELETE USER AND RE ADD THEM BEFORE IT WILL START WORKING. I looked for hours on this issue.
Thanks Dustin Odom, I have fixed but when access web show blank page. Please tell me more detail of “YOU MUST DELETE USER AND RE ADD THEM BEFORE IT WILL START WORKING”.
Thanks you!
Hi
For me a new instance of vtiger 6.4 working in Internet Explorer and giving error “Sorry! Attempt to access restricted file. ” in Chrome. What could be the issue here?
Can any one help me in this.?
Vijay – make sure $root_dir in config.inc.php is set properly.
Hello,
I have a problem with cronjob in vtiger 5.4.0
Error:
Sorry! Attempt to access restricted file.
What i did so far:
Find php_sapi value: apache2handler
crontab under linux: 15 * * * * sh /opt/requiz/cron/vtigercron.sh
Verify root_dir path with “/” at end, its correct value
Set user_privileges folder to 777 permission + Rest files have 755 permission
When I execute as root, its works perfect BUT not automatically !
I need to know user:group for all cron files and right access.
Thanks in advanced!
I have a new installation of 6.4 with data created in 5.4. I did this by installing a new 6.4, then created a database with the backup of the old 5.4 data. I changed the database parameters in the 6.4. config.inc.php file to the old 5.4 database.
Everything works fine except when I want to “Convert Lead” and the “create opportunity” is enabled. Then I get “Sorry! Attempt to access restricted file” error when I try to save. If the option to create opportunity is not enabled, it works ok. How can I correct this?
Can I enable debuging in vtiger?
Thanks.
Getting this error after installing a fresh copy of vtiger7.0
Sorry! Attempt to access restricted file. – /www/html/CRMv7/includes/../includes/runtime/EntryPoint.php
Hello team i have a issue after migration of vtiger.. everything is working fine but a thing … when i go to import organizations with a csv file it says Success and has an error “vtiger import error Sorry! Attempt to access restricted file. – modules//.php”
I have $root_directory as your guide an clue what’s going on?
Php 7.4
Nginx
CloudPanel with Vhost