Author Topic: invoice can't be accessed in backend  (Read 321 times)

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 171
    • Barg IT
invoice can't be accessed in backend
« on: February 02, 2021, 10:00:53 am »
Hello,

in one of our shops we have a problem with PDF invoices: the invoices are generated, placed on the server and e-mailed correctly, but can't be accessed
in the backend. If the corresponding icon is clicked, an error is shown that the connection is interrupted. I've transferred the installation to a local server
where the problem doesn't exist. I therefore suspect, that it is a problem with the setup of the server.
Any hints here as to what might cause this issue?

Joomla! 3.9.23, VM 3.8.8, PHP 7.4.14

Thanks, Petra

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3398
  • VirtueMart Version: 3.8.9
Re: invoice can't be accessed in backend
« Reply #1 on: February 02, 2021, 11:26:46 am »
Check server folder ownership and permissions


Regards
A

Joomla 3.9.24
php 7.4

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 171
    • Barg IT
Re: invoice can't be accessed in backend
« Reply #2 on: February 02, 2021, 11:37:57 am »
Permissions are all ok (eveything green) and I haven't changed anything there and the installation runs perfectly with a different provider...
The invoices are stored correctly on the server, so the generation of the PDF seems to work ok. Just the access in the backend
is the problem.
I figured out that in the URL that is called the problematic part seems to be "&format=pdf":
/administrator/index.php?option=com_virtuemart&view=orders&task=callInvoiceView&tmpl=component&virtuemart_order_id=3&layout=invoice&format=pdf&d=47&invoiceNumber=21020261FZ011

If I remove that part from the URL the invoice is displayed (although not correctly of course).

But I'm completely at a loss what could cause this issue...

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3398
  • VirtueMart Version: 3.8.9
Re: invoice can't be accessed in backend
« Reply #3 on: February 02, 2021, 17:21:51 pm »
I reviewed the URL and this is perfectly correct.

You may need to see if you are being restricted via your web host - you might be better discussing this with them - they should have the logs and be able to diagnose
Regards
A

Joomla 3.9.24
php 7.4

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 171
    • Barg IT
Re: invoice can't be accessed in backend
« Reply #4 on: February 02, 2021, 17:37:29 pm »
Thanks for your answer.
We will contact the provider tomorrow and hope that they can find the problem.
If so, I'll share the results here.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3398
  • VirtueMart Version: 3.8.9
Re: invoice can't be accessed in backend
« Reply #5 on: February 02, 2021, 17:50:50 pm »
Thanks - hope you get it solved
Regards
A

Joomla 3.9.24
php 7.4

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 171
    • Barg IT
Re: invoice can't be accessed in backend
« Reply #6 on: February 08, 2021, 17:21:26 pm »
Unfortunately, the provider wasn't of much help so far...
He said that maybe an extension is required by PHP and not loaded by their configuation and that we should tell them
what extension that might be and they would enable it then. No idea, what that might be. In all other installations
at different providers we didn't encounter such an issue.

Anyone with any idea?