Hello, I'm using the latest VM2 and always doing update, i had an error for safe path and after checking the manual is set it to this value:
/home/XXXX/vmfiles/ <---xxx is the our server account name
error has been disappeared and the vm generated a folder automatically inside the VMFILES with INVOICE name.
but after submiting an order we have two major problem. there is no INVOICE PDF inside >vmfiles>invoice and also there is no PDF attached by Confirmed order.
I too have been tackling the same (or similar) problem with my online Website - the local version (on Windows 2003 does not suufer this problem!). There appears possibly to be 2 issues. The blank pages that happened on trying to "View Invoice" in Orders sometimes indicated a "TCPDF Error", but sometimes displayed, but not in pdf form. I asked for advice from the host provider (Peter Smith of SupportIndeed/JoomlaHostFree/AttractSoft) who provided the following fix:
1. created in /home/www a file called docroot.php
2. placed this code inside:
<?
if(substr($_SERVER['HTTP_HOST'], 0, 4) == 'www.'){
$srv=substr($_SERVER['HTTP_HOST'], 4);
}
else
$srv=$_SERVER['HTTP_HOST'];
$_SERVER['DOCUMENT_ROOT']='/home/www/'.$srv;
?>
3. added this line to the php.ini:
auto_prepend_file = /home/www/docroot.php
Yes, this did appear to correct the display of pdf Invoices using "View Invoice" in Orders, but I am too much of a novice to know why! However there are still no Invoices in the "Safe Path".
Investigating further I notice that, for instance in "Products" BE the path shown at the bottom of the page is a physical path (e.g. /srv/diskn/123456/) and not the Doc Path /home/www/. If I try to replace a Product image within a Product page then VM is unable to find the path! I am suspecting a problem involving the use of physical and document path references - it would seem that VM is not handling the physical path references, hence could be the cause of missing Invoices in the Safe path. Quite some time ago I did have one or two stored there, but no longer!
So, can anyone explain or provide ideas why VM picks up the physical path (JPATH_ROOT?) from the JM installation and then not manage to find image files when browsing in a setup page. Is an Alias or RewriteBase required in .htaccess or can VM be changed to pick up the virtual path (doc_path?). Sorry, but I am not sufficiently familiar with Apache/JM/VM configuration aspects - yet the same code works on my Windows2003/IIS6 system.
JM2.5.7/JM2.0.12 on WinSever2003/IIS6 and Linux/Apache