VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: TomaG on August 09, 2012, 14:33:41 PM

Title: Warning, the Safe Path is not accessible
Post by: TomaG on August 09, 2012, 14:33:41 PM
I am new to virtuemart. I am running into a few problems in getting it going.

VM version 2.0.8e
Joomla Version 2.5.6
PHP Version 5.2.14 (http://salmontrollinglures.com/phpinfo.php)

I have created the suggested folders for the safe path but I am still getting this message with debug on. (How do I fix it?)

vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.00320601463318
vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.00153708457947
Configuration Saved
vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.00296211242676
Warning, the Safe Path is not accessible (does not exist or no permission), for safety reasons it is very important to create a folder in a path not accessible by an URL, create also a folder invoices in it to store your sensitive data secure. Our suggested path is for your system home/salmotr/vmfiles/MLP


The folders exist and permissions are set to 777
Title: Re: Warning, the Safe Path is not accessible
Post by: baysidemk on September 14, 2012, 17:54:31 PM
I am having the same problem.   The suggested path is actually the path i specified and the permissions have been set to 777.  but, it still gives the error message.
Title: Re: Warning, the Safe Path is not accessible
Post by: jenkinhill on September 14, 2012, 23:16:09 PM
Quote from: baysidemk on September 14, 2012, 17:54:31 PM
the permissions have been set to 777

Never use 777 unless you are on a really badly configuired server, in which case move on. 755 is all you need. Anything higher is just inviting hackers in.

Some shared servers, such as nogodaddy, will not permit users to access directories below root, so make it above root with an unguessable directory name.
Title: Re: Warning, the Safe Path is not accessible
Post by: maryswave on October 02, 2012, 03:39:14 AM
I am still getting that error message and have added the folders and set the permissions to 755
Title: Re: Warning, the Safe Path is not accessible
Post by: TomaG on November 19, 2012, 05:38:37 AM
Finally I found an answer to why the safe path message would not go away. I contacted the host where the webpage is hosted, SiteGround.

This was the solution:

In order to resolve the issue I changed the "Safe Path" variable from:

home/salmontr/vmfiles/

to:

/home/salmontr/vmfiles/ - please note the extra slash. (forward slash at the front of the string)

The warning message disappeared and you can check the results on your end.
Title: Re: Warning, the Safe Path is not accessible
Post by: kjw66 on February 09, 2013, 11:53:38 AM
I've been working on our new site for weeks and knew I had this error message and have searched high and low for an answer.

Found this answer on another forum - worked perfectly. Am not taking the credit, just sharing.

"Warning, the Safe Path is empty, for safety reasons it is very important to create a folder in a path not accessible by an URL, create also a folder invoices in it to store your sensible data secure. Our suggested path is for your system /var/www/vmfiles"

I get this notification when I've finished installing virtuemart. In my opinion, VirtueMart is not allowed to leave Safe Path empty.

I try to find it's solution by search it on virtuemart forum and actually, there is an easy way to resolve this notification. Just copy log folder to virtuemart safe path.

Following these steps:

1. Open Joomla Global Configuration -> System.

2. Copy the path in path to log folder textbox.

3. Open VirtueMart control panel and go into Configuration -> Templates.

4. In Safe Path textbox, paste the path you've copied before.

5. Then, save it.

That's all how to resolve VirtueMart notification about "Warning, the Safe Path is empty ...".
Title: Re: Warning, the Safe Path is not accessible
Post by: jenkinhill on February 09, 2013, 11:56:59 AM
??? It is here in the FAQs....  http://forum.virtuemart.net/index.php?topic=98633.0
Title: Re: Warning, the Safe Path is not accessible
Post by: Glock on March 01, 2013, 13:10:13 PM
Quote from: kjw66 on February 09, 2013, 11:53:38 AM
I've been working on our new site for weeks and knew I had this error message and have searched high and low for an answer.

Found this answer on another forum - worked perfectly. Am not taking the credit, just sharing.

"Warning, the Safe Path is empty, for safety reasons it is very important to create a folder in a path not accessible by an URL, create also a folder invoices in it to store your sensible data secure. Our suggested path is for your system /var/www/vmfiles"

I get this notification when I've finished installing virtuemart. In my opinion, VirtueMart is not allowed to leave Safe Path empty.

I try to find it's solution by search it on virtuemart forum and actually, there is an easy way to resolve this notification. Just copy log folder to virtuemart safe path.

Following these steps:

1. Open Joomla Global Configuration -> System.

2. Copy the path in path to log folder textbox.

3. Open VirtueMart control panel and go into Configuration -> Templates.

4. In Safe Path textbox, paste the path you've copied before.

5. Then, save it.

That's all how to resolve VirtueMart notification about "Warning, the Safe Path is empty ...".

kjw66 I have registered just to tell you that even though the instructions are there - posted by jenkinhill, I followed it to the letter and it STILL would not work.
Your solution worked flawlessly!
It was bugging me for 3 days.

Thanks very much, and to the mods - you should add this under your guide as it DOES work and after 3 days, this was the only solution that did work as unfortunately with all the others I kept getting the same error
"Warning, the Safe Path is empty ..."

Cheers kjw66
Title: Re: Warning, the Safe Path is not accessible
Post by: maxispin on October 01, 2013, 20:22:57 PM
Thanks TomaG,
your writing catched my eyes, and solved my problem.  Simply adding additional / at front of path solved the problem
Title: Re: Warning, the Safe Path is not accessible
Post by: Zke on December 18, 2013, 05:38:40 AM
I have tried all these suggestions and still get the error.
Title: Re: Warning, the Safe Path is not accessible
Post by: maxispin on December 18, 2013, 08:07:00 AM
Quote from: Zoekatherine on December 18, 2013, 05:38:40 AM
I have tried all these suggestions and still get the error.

  • I tried with and without a / at the beginning and end of the path

Both beginning /  and end   /   [vm settings/layout]

/home/XXXXXXXXX/public_html/vmfiles/
Title: Re: Warning, the Safe Path is not accessible
Post by: jenkinhill on December 18, 2013, 09:23:29 AM
You should never need 777 permissions as that leave an open door for hackers etc. If the server needs it then change hosts ASAP.
Title: Re: Warning, the Safe Path is not accessible
Post by: maxispin on December 18, 2013, 09:28:33 AM
Kelvyn, you could put 777-statement on your signature ;) 

Seriously, what is a good (and the right) value? 755 ?
Title: Re: Warning, the Safe Path is not accessible
Post by: jenkinhill on December 18, 2013, 09:35:06 AM
Files 644 (or 444 for read only, such as for config files)  and directories 755