It's time to create new or re-design your websites to bring it to the next level.

Collection of 200+ Free Joomla templates, support Joomla 3.9.x and Joomla 4 Listing of 300+ Best Free WordPress themes, WooCommerce compatible, Elementor supports!

After you install VirtueMart you may get one of the following warning messages. We have had several questions about how to, and where to, set up the safe path. The server file structure is understandably confusing for beginners.

Messages you will get:

  • “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.”

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

  • “Safe path / vmError: Path wrong to store invoices.”
  • “vmError: Path wrong to store invoices, folder invoices does not exist “

The safepath is ideally one that is totally inaccesible by web visitors, but your program can reach it on the server. We’ll show lead you through ithe process in this tutorial.

Immediately after installation you get the warning.

ve1

The warning suggests you name the folder vmfiles and that you also set up an invoices directory. You won’t need to set up the invoices directory, just the safe folder. VirtueMart will create the invoices directrory for you.

What you name of the folder is optional, you don’t need to use the name they suggest, you can use any name you want.

Step 1: Use your file manager or FTP program to create a directory.

ve2

In the picture above, I’m using the cPanel file manager. I’ve highlighted the home directory. You will want to place the safe directory “above” your public_html directory if your server set up allows it. The public folder is accessible by the public, and the levels above that can’t be reached by a browser.

Add a new folder to this level. Your structure will look like this.

ve3

This is what it will look like after you create the folder. Notice that it is on the same level as public_html.

Step 2: Configure the template. Go to Configuration > Templates tab.

ve4

Step 3: Add the directory path

ve5

Type the complete path to the safe directory, /home/username/safedirectoryname/. Start from the very beginning and do not use a relative or shortened path like /vmsafe/. If you’re confused find the path to your public_html directory, and replace public_html with the name of your safe directory. In other words if /home/username/public_html/ just change it to /home/username/safedirectoryname/. Note that it starts and ends with a “/”.

Go back to the top of the page to find the Save icon and save your changes.

ve6

After saving you can see that virtuemart created the invoices directory for you. If it doesn’t you can always add it manually.

The warning message should no longer be visible, and your invoices are more secure.

Are you Web Freelancer or Web Design Company? Join our Club and Access our Resource!

500+ Premium Joomla! and WordPress themes just $8.70/Month, Quickstart (dummy) package included, unlimited domains!

40off

BLACK FRIDAY 50% OFF!

Access Life-time All-In-One Membership with all 500+ Premium WordPress themes and Joomla templates and new theme(s) every month just $199.50 (instead of $399). Life-time PRO theme access, download and support, no renewal in the future.

About Developer package of All-In-One Membership

The Pandemic Continues So Do Our Support! We're offering 40% Discount on all purchases! Code: WORKATHOME More Details
Black Friday Sale! Get extra 50% OFF for all purchases. Coupon code: LTBFCM50 More Details