VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Acmiron on December 13, 2018, 13:53:58 PM

Title: TCDPF
Post by: Acmiron on December 13, 2018, 13:53:58 PM

I have quite a problem with TCPDF.

I created a site with Joomla 3.9.1 on localhost.
Transferred the site to remote.

The content of the site is correct.
TCPDF 6.2.12 doesn't create an invoice.

In the Joomla administrator/log/com_virtuemart.log.php it reads:
    You first must install TCPDF in the directory libraries.
    ERROR vmError: vmPdf: For the pdf, you must install the tcpdf library at ../libraries/tcpdf

I removed TCPDF from administrator/libraries and did a new install of TCPDF.
However, TCPDF stil doesn't work. TCPDF displays the home page instead.

Please advice,
Regards
Title: Re: TCDPF
Post by: GJC Web Design on December 13, 2018, 14:00:41 PM
installed http://dev.virtuemart.net/attachments/download/1137/com_tcpdf_1.0.5.zip  ?
Title: Re: TCDPF
Post by: Acmiron on December 13, 2018, 15:52:35 PM
at first I re-installed the TCPDF part of the VirtueMart download.
As this didn't function, I installed from http://dev.virtuemart.net/attachments/download/1137/com_tcpdf_1.0.5.zip

The same result.

When I do a complete new Joomla and VirtueMart installation on remote, TCPDF works fine.

I do suppose, when a VirtueMart installation on localhost is transferred to remote, somewhere something in the configuration,
be it in configuration.php or Joomla's Global Configuration System Settings "Path to Log Folder" or Server Settings
"Path to Temp Folder" or  Safe Path or ...  gets mixed up or simply lost.

Could it be, that VirtueMart should be installed on remote only?
Regards
Title: Re: TCDPF
Post by: jenkinhill on December 13, 2018, 16:08:13 PM
Did you use Akeeba to move the site?
Title: Re: TCDPF
Post by: GJC Web Design on December 13, 2018, 16:44:18 PM
Quoteconfiguration.php or Joomla's Global Configuration System Settings "Path to Log Folder" or Server Settings
"Path to Temp Folder" or  Safe Path

these must be adjusted in any case .. as Jenks suggests  .. Akeeba will prompt u to do this

but don't see the connection with failed TCPDF stuff
Title: Re: TCDPF
Post by: Acmiron on December 14, 2018, 11:35:55 AM
No Akeeba, have to follow the providers rules.
Create new database, import DB from localhost.
Transferred site content from localhost to remote.
Adjusted configuration.php, joomla settings for log and tmp path, in VirtueMart configuration --> templates --> safepath.
Checked VirtueMart Tools --> Tools & Migration --> Safe Path Tools. /vmfiles is writable

This morning tcpdf installed again and, this time, using PuTTY to monitor the directories.
After installation tcdpf is in the directory /libraries/tcpdf.
After going to VirtueMart --> Shop --> Shop --> Invoices/Emails and than Save

                     tcpdf is not in /libraries/tcpdf but moved to /libraries/vendor/tecnickcom/tcpdf.