OS Property support center

SOLVED!!! Error when exporting PDF with TCPDF

More
10 years 5 months ago - 10 years 5 months ago #59906 by Marc
Hello.

I'm trying to use TCPDF. I followed the instructions and it was working. Now it's not working and I don't know why.

Could you please help me? This is one of my properties: rovirayjuncosa.com/index.php/venta/pisos...en-venta-en-gava-mar

Thanks.
Last edit: 10 years 5 months ago by Dang Thuc Dam.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #59907 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Error when exporting PDF with TCPDF
Hi Marc,
The feature "PDF export" need quite big memory, so please increase value of PHP variable: memory_limit of your hosting to at least 256 MB (even higher - depend on your hosting) to make the function to work properly
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #59910 by Marc
Replied by Marc on topic Error when exporting PDF with TCPDF
Hello Dan.

I updated my memory_limit until 512M but it didn't work.

The error printed is about an image, I don't know why.

Thanks.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #59920 by Marc
Replied by Marc on topic Error when exporting PDF with TCPDF
I found the solution.

After read the error log of Joomla I could find where the error was printed.

It was in a function called drawImage on file located at /components/com_osproperty/helpers/npdf/html2pdf.class.php
This function needs "allow_url_fopen" set to ON to read an URL correctly, and after move my new site to the final domain this option was disabled on php.ini

Hope It can helps to anyone who find the same error and sorry Dan to write as It was an error of your OsProperty Component.

Thanks.

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan