VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Fintan on March 16, 2012, 10:41:53 AM

Title: [Solved]Safe path is empty??
Post by: Fintan on March 16, 2012, 10:41:53 AM
I am using vm 2.0.3d and keep getting this message on the configuration page:

QuoteWarning, 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 /home/httpd/vhosts/latina-bodyfashion.ch/httpdocs/vmfiles

I have created this folder: /vmfiles/invoices in root/

what does this mean?
Title: Re: Safe path is empty??
Post by: jenkinhill on March 16, 2012, 10:49:30 AM
See http://forum.virtuemart.net/index.php?topic=98633
Title: Re: Safe path is empty??
Post by: Fintan on March 16, 2012, 11:01:10 AM
Thanks  :D
Title: Re: [Solved]Safe path is empty??
Post by: Fintan on March 18, 2012, 12:39:30 PM
I was happy too soon. i had to reinstall the site and I tried this as a path (as before) : /home/httpdocs/vhosts/latina-bodyfashion.ch/xyf269/invoices/

This is what vmart suggests: /home/httpd/vhosts/latina-bodyfashion.ch/

But I cannot set up a httpd/invoices folder from FTP
Title: Re: [Solved]Safe path is empty??
Post by: jenkinhill on March 18, 2012, 17:51:43 PM
The directory "invoices" is automatically added by VirtueMart. So your path would just be

/home/httpdocs/vhosts/latina-bodyfashion.ch/xyf269/
Title: Re: [Solved]Safe path is empty??
Post by: Fintan on March 18, 2012, 18:04:42 PM
This is confusing:
Quote.....create also a folder invoices in it to store your sensible data secure

Added:
/home/httpdocs/vhosts/latina-bodyfashion.ch/xyf269/
with out the invoice. Nada. Same message this time twice

Did:
/home/httpd/vhosts/latina-bodyfashion.ch/httpdocs/xyf269/
instead that worked.
:D
Title: Re: [Solved]Safe path is empty??
Post by: jenkinhill on March 18, 2012, 23:20:30 PM
Then that was the correct path for your server.
Title: Re: [Solved]Safe path is empty??
Post by: John2400 on March 19, 2012, 12:06:40 PM
Just for those who struggled like me to get the safe path.

Firstly _ if you do get the setting correct "yes" the message disappears - That is for those who can set the folder inside or outside the public folder.
I was wondering the whole time if the message just stayed there even if I got it right or wrong- so keep trying.

I use a server that has public_html as the (internet folder) but others might have home ( as the public ) folder .
Where others might have their own server setup.

* I found this a little confusing at first - The forward link that Jenkill suggested was perfect for me and I ended up placing this link          " /home/user/public_html/myfiolder/ " as suggested  -  I did not have to use the name of my site in the
link.

Anyway the message disappeared - after trying a few times - Thanks fintan and Jenkill.
Title: Re: [Solved]Safe path is empty??
Post by: mwenya on April 10, 2012, 05:46:03 AM
Hello folks,

I have done all of thee above and it is still not working for me! It's weird because I had v2.0.2 and when I upgraded to v2.0.4 thats when the issue came. Any ideas?
Title: Re: [Solved]Safe path is empty??
Post by: John2400 on April 10, 2012, 06:02:08 AM
Hiu mwenya,

when you went in - and created a folder in your home files -- did you the go into

configuration>>templates>>safe path>> and if the path folder is not there then type in something like   

/home/username/public_html/yourfolder/

* this issue was not in 2.0.2 - so yes that is true -

* you will ahve to try different options as listed in the posts as they may vary slightly from server sites-
Title: Re: [Solved]Safe path is empty??
Post by: mwenya on April 10, 2012, 06:04:46 AM
Yes i did that, I even called my hosting company. I have gone through many options but its still a no go. My hosting company said that it may be an issue with my hosting plan. I do not have a dedicated hosting plan. I am on a shared plan. Do you think this may be an issue?
Title: Re: [Solved]Safe path is empty??
Post by: John2400 on April 10, 2012, 06:16:24 AM
I'm sure lots of others are on shared plans .

Your issue is normally just getting the actual directory exact as you see in the others below - tryong to fine th path in your server the trick.

Try this _ go into joomla>> global configurations>> system>>and copy the link to the path to the log folder - the whole thing

paste that in your safe path with the folder name you created on your server instead of logs -- see how that goes.
Title: Re: [Solved]Safe path is empty??
Post by: ehoward on April 10, 2012, 23:12:47 PM
QuoteSee http://forum.virtuemart.net/index.php?topic=98633
Joomla! 2.5.4, VirtueMart 2.0.4
Please help me find "Path for Sale" in the Media Files settings.
(http://www.sunrentalcenter.biz/images/path_for_sale.jpg)
Title: Re: [Solved]Safe path is empty??
Post by: jenkinhill on April 10, 2012, 23:48:58 PM
http://forum.virtuemart.net/index.php?topic=98633.0
Title: Re: [Solved]Safe path is empty??
Post by: ehoward on April 11, 2012, 00:13:28 AM
Sorry, I still don't see "Path for Sale" as directed below. I sure appreciate your help.

QuoteSet up a "Safe Path".
To do this, first create a directory for downloadable files, even if you do not sell downloads. This directory is best placed outside your Joomla root for security, when this is not possible give it some obscure unguessable name, such as wgettyty. Within this create a subdirectory called invoices.

Then in VM Configuration/Templates/Media File Settings against "Path for Sale" enter the full server path to your download directory. Do not use a relative path, it will not work.
Title: Re: [Solved]Safe path is empty??
Post by: John2400 on April 11, 2012, 00:32:40 AM
ehoward ,

I think what we were wondering is why? Path for sale ? what do you mean?
Title: Re: [Solved]Safe path is empty??
Post by: ehoward on April 11, 2012, 01:14:49 AM
Thanks for helping me clear this up.  In topic http://forum.virtuemart.net/index.php?topic=98633,
jenkinhill   posted:  Then in VM Configuration/Templates/Media File Settings against "Path for Sale" enter the full server path to your download directory. Do not use a relative path, it will not work.
Title: Re: [Solved]Safe path is empty??
Post by: jenkinhill on April 11, 2012, 15:33:29 PM
Quote from: John2400 on April 11, 2012, 00:32:40 AM
Path for sale ? what do you mean?

That is what the older versions of VM2 called the "Safe Path", before invoice security was considered, it was only the path for files to be sold - now the language is updated for VM2.0.4
Title: Re: [Solved]Safe path is empty??
Post by: Merry on April 11, 2012, 22:44:13 PM
Ehoward, in 2.0.2 it was called Path for Sale. It was since changed to Safe Path. See the Safe Path box in your image.

Merry
Title: Re: [Solved]Safe path is empty??
Post by: Milbo on April 12, 2012, 11:21:09 AM
Yepp, and when you dont know what to enter there,

just leave it blank and save it. Then you should see a message with your real path. Just use this suggestion (and add a / on it).
Title: Re: [Solved]Safe path is empty??
Post by: blondie63 on April 19, 2012, 10:42:04 AM
I've similar problem, on Configuration i've this warning:
Warning, the Safe Path is WRONG, 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/vhosts/web.cavinato.com/vmfiles

I've created this vmfiles folder but the warning is still here !
what's wrong ?

i've PHP 5.3.2 , Joomla 2.5.4, Virtuemart 2.0.6

Thanks for help