VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: JmatterDirective on August 23, 2016, 17:21:32 PM

Title: Having issues with order invoices not being in the correct folder
Post by: JmatterDirective on August 23, 2016, 17:21:32 PM
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
Title: Re: Having issues with order invoices not being in the correct folder
Post by: GJC Web Design on August 23, 2016, 17:24:02 PM
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
Title: Re: Having issues with order invoices not being in the correct folder
Post by: Studio 42 on August 24, 2016, 00:47:55 AM
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
Title: Re: Having issues with order invoices not being in the correct folder
Post by: JmatterDirective on August 24, 2016, 18:03:47 PM
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







Title: Re: Having issues with order invoices not being in the correct folder
Post by: Studio 42 on August 24, 2016, 21:17:08 PM
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.
Title: Re: Having issues with order invoices not being in the correct folder
Post by: JmatterDirective on August 25, 2016, 18:02:24 PM
Can we add this to the file in VirtueMart that generates the invoices, if so what file would that be?
Title: Re: Having issues with order invoices not being in the correct folder
Post by: GJC Web Design on August 25, 2016, 18:05:02 PM
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...
Title: Re: Having issues with order invoices not being in the correct folder
Post by: Studio 42 on August 26, 2016, 00:06:47 AM
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.