News:

Looking for documentation? Take a look on our wiki

Main Menu

Safe path / Path to store invoices

Started by jenkinhill, February 26, 2012, 17:32:36 PM

Previous topic - Next topic

jenkinhill

vmError: Path wrong to store invoices, folder invoices does not exist

This error is given when updating an order status and results from not setting the path to your invoices directory.

Set 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 "Safe path " (shown as "Path for Sale" in VM 2.0.2) enter the full server path to your download directory. Do not use a relative path, it will not work.

eg it could be something like  home/user/files/  or when the provider does not allow that home/user/public_html/wgettyty/  (I have found that some servers require a leading slash, eg /home/ ). Do not create the /invoices/ directory, VirtueMart will do that for you.

If you don't know the server path look in Joomla 2.5 System Information/Configuration File where the path is shown for tmp_path and for log_path. Just substitute your new directory name for "logs" or "tmp".

From VM3 onwards therer is an attempt to work out the logical path to use and display this with the error message.  On some server setups the path may be difficult to determine so may not be correct, but if you look carefully at the server file structure with ftp you should be able to work it out.

This is a security feature to protect the invoices.

Note that on some shared hosts, especially the low cost ones, you will not be able to set or access a directory below web root

If you need instructions with pictures then see http://docs.virtuemart.net/faqs/37-configuration/110-how-to-set-the-safe-path.html and  http://www.ostraining.com/blog/joomla/how-to-fix-virtuemart-warning-the-safe-path-is-empty/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum