News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Having issues with order invoices not being in the correct folder

Started by JmatterDirective, August 23, 2016, 17:21:32 PM

Previous topic - Next topic

JmatterDirective

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

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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

JmatterDirective

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








Studio 42

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.

JmatterDirective

Can we add this to the file in VirtueMart that generates the invoices, if so what file would that be?

GJC Web Design

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...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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.