Author Topic: if safe path is bad, VM invoices are not sent, can't produce PDFs  (Read 551 times)

jcalvert

  • Beginner
  • *
  • Posts: 15

I had a non-empty value for safe path, "tmp/vmfiles", and it took a long time to figure out that this was causing VM invoice emails not to be sent, and PDF not printed on the Orders page.

I found the error by attempting to display the order PDF from the Orders page, and got this error:

Quote
TCPDF ERROR: Unable to create output file...

I solved the problem by changing the safe path to the full, absolute path of the vmfiles folder.

It may be a good idea to add "make sure the VM safe path is correct" after the TCPDF error message.

thanks,
JC

jumaanji

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: if safe path is bad, VM invoices are not sent, can't produce PDFs
« Reply #1 on: June 26, 2019, 09:46:54 am »
I am using Joomla version, 3.9.8 & VirtueMart 3.4.2, getting an error "TCPDF ERROR: Unable to create output for...> via
Admin>Virtuemart>Order>Order no>Print View>Invoice & Admin>Virtuemart>Order>Order no>Print View>deliverynote

As per the above discussion
I change the safe path under Admin>Virtuemart>Configuration>Template>Media File Settings>safepath to "Absolute path" and issue if fully resolved.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27479
  • Always on vacation
    • Jenkin Hill Internet
Re: if safe path is bad, VM invoices are not sent, can't produce PDFs
« Reply #2 on: June 26, 2019, 10:24:27 am »
The tooltip for the safe path setting does specify the use of absolute path "....Attention - you must enter an absolute path here...."
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: if safe path is bad, VM invoices are not sent, can't produce PDFs
« Reply #3 on: July 12, 2019, 00:43:33 am »
uhm, the tooltip. yes. But I must admit, there should be a clear message, when you open the config.

So maybe our check is not prepared for your problem. Are you sure that you did not get any message opening the vm config view?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/