Having issues with order invoices not being in the correct folder for a website inside a sub directory of the main website. The invoices get created but then cannot be accessed from the backend in the orders section, its giving us a 500 error.
When trying to open this attachment - http://prntscr.com/c9emvw
This is the error - http://prntscr.com/c9emk9
explains nothing
what are the actual urls and what is the 500 error?
https://forum.virtuemart.net/index.php?topic=79799.0
https://forum.virtuemart.net/index.php?topic=117042.0
Strange !
Your screenshot seems not to be from Virtuemart
And the second screenshot say "Article" so this is certainly redirect to a Joomla article.
So as said GJC Web Design, please the URL (you can remove the sitename) generated by Joomla
Joomla Version - 3.6.0
VirtueMart 3.0.16
The issue here is that the order invoice is getting a "Server Error" when I click the link. If I open in a new tab gives me a 500 error.
http://prntscr.com/c9v5gf - I click the the orders tab and then click the order
http://prntscr.com/c9v6ub - I click this link and get this when the download starts - http://prntscr.com/c9v76r
When I try opening the link the in a new tab I get this page - http://prntscr.com/c9v7px
The url the open in new tab generates is: http://www.cwit.com/vmorder-uploads/joanne-clausen/UBTQ0149/16-6161.pdf
and by changing to have the sites file path "ustp", it fixes it and downloads fine. I change it to: http://www.cwit.com/ustp/vmorder-uploads/joanne-clausen/UBTQ0149/16-6161.pdf
This site is under another site, so the vmfiles folder the main site is here: http://prntscr.com/c9v9jj
The site that falls under it is here: http://prntscr.com/c9v9s0 <-- this is the site with the issue
I think that you use a plugin and this plugin have code missing to get root.
In standard you use for a link in Joomla.
echo juri::root() .'/folder/file.ext';
So check with the plugin developer generating this link to add juri::root() before , this should fix your issue.
Can we add this to the file in VirtueMart that generates the invoices, if so what file would that be?
Your simply not providing relevant information!
why 3rd party printscreens?
what is this weird view u show us?
urls?
info on the plugin if this is what it is..
mind readers day off today because of the heat...
THe LINK vmorder-uploads/joanne-clausen/UBTQ0149/16-6161.pdf, is not a VM link , all PDF are generated Form a Joomla URL and never direct link and never with a customer name(joanne-clausen).
SO check with your plugin developper or your site developper and provide us the right information to help you.