Jump to content

[Solved] Problem With Invoices


Recommended Posts

Hello. I cant generate any invoices. Either its through test customers, or in back office when i try to generate invoice. It just sends me to blank page, no errors appear. Didnt find a similar problem on forum solutions. How can i solve it?

PS v1.4.9

Edited by Artem (see edit history)
  • Like 1
Link to comment
Share on other sites

thats the error im getting

 

Warning include_once(public_html/tools/tcpdf/tcpdf.php) 'function.include-once': failed to open stream: No such file or directory in /public_html/override/classes/PDF.php on line 31

 

Warning: include_once() function.include]: Failed opening '/public_html/tools/tcpdf/tcpdf.php' for inclusion :/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /public_html/override/classes/PDF.php

 

Fatal error Class 'TCPDF' not found in /public_html/override/classes/PDF.php on line 33

Edited by Artem (see edit history)
Link to comment
Share on other sites

Strange thing... interesting to know what has caused the original problem (i mean blank page instead mentioned in your 1st post).

 

Now it seems that tcpdf requires this font "TCPDF ERROR: Could not include font definition file: dejavusanscondensed"

If you have this font - please put it into the folder "...tools\tcpdf\fonts"

 

Otherwise you can try to change the font in configuration :

in the file classes/pdf/PDFGenerator.php

find a string (in the very beginning)

const DEFAULT_FONT = ‘helvetica’;

 

in your case it's probably not helvetica but 'dejavusanscondensed'

or something like this

 

try to replace this line as follows

const DEFAULT_FONT = ‘freeserif’;

 

And tell us if something changes

Link to comment
Share on other sites

bad news ((

 

 

 

try to put the missing font in the appropriate tcpdf folder

 

I've googled for this file and was able to download it from the first link

http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDEQFjAA&url=http%3A%2F%2Fwww.bvbcode.com%2Fcode%2Fa620fisr-733584-down&ei=3M01UY7WF6n14QSw3IEY&usg=AFQjCNEPWssK_sPRzA-6FOo_BBYfIrDSiw&bvm=bv.43148975,d.bGE&cad=rja

Link to comment
Share on other sites

Mixing folders or files from different version is not good thing. I think you have an installation problem. Check if your PrestaShop installation contains all folders and files for the right version.

 

FTP upload sometime failed.

Link to comment
Share on other sites

thank you tuk66.

but again, there is no tcpdf directory in 1.4.9 that i downloaded from the link that you gave me. maybe something is wrong with my DB version.

is it possible for you to help me out, what do i need to change in database for invoices to work? :)

Link to comment
Share on other sites

×
×
  • Create New...