OS Property support center

PDF File

  • Mark Reynolds
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 3 months ago #63806 by Mark Reynolds
PDF File was created by Mark Reynolds
Good morning

When trying to create a PDf I get this error

FPDF error: Missing or incorrect image file: www.pierceandco.co.uk/images/osproperty/...108bf8a7d19d97a8.jpg

The link

www.pierceandco.co.uk/index.php?option=c...k=property_pdf&id=26

Thinking it was the image name I have deleted the entry and created new with safe image names but still get the error

I have tried both FPDF & TCPDF (uploaded library to my site root) but still no good

Any help appreciated

Thanks

Mark

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

  • Mark Reynolds
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 3 months ago #63807 by Mark Reynolds
Replied by Mark Reynolds on topic PDF File
some more info - the link above is showing the old image name not the new?

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

More
10 years 3 months ago #63808 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic PDF File
Hi,
You need to turn on PHP variable: allow_url_fopen if you want the picture to be shown in PDF export content.
Thanks
Dam

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

  • Mark Reynolds
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 3 months ago #63809 by Mark Reynolds
Replied by Mark Reynolds on topic PDF File
Sorry Dam i should have said - it is turned on by default

Thanks

Mark

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

More
10 years 3 months ago #63811 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic PDF File
Hi Mark,
Please submit ticket and send your site information with super admin account. I will check the issue for you
Thanks
Dam

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

  • Mark Reynolds
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 3 months ago #63812 by Mark Reynolds
Replied by Mark Reynolds on topic PDF File
Thanks Dam

That's done

Regards

Mark

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

More
10 years 3 months ago #63815 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic PDF File
Hi Mark,
This problem is very weird and i haven't met it before. I tried to replace
Code:
JUri::root()
by
Code:
JPATH_ROOT."/"
in file:

components > com_osproperty > helpers > layouts > propertypdf.php

And the issue has been solved
Thanks
Dam

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

More
9 years 11 months ago #69822 by Fermin
Replied by Fermin on topic PDF File
i have the error.

in plesk:
allow_url_fopen
is OFF

and this recomendation

Allows PHP file functions retrieve data from remote locations using FTP or HTTP. This option is a big security risk, so we recommend not activate if not strictly necessary.

Fermín Martínez de Lezea

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

More
9 years 11 months ago #69830 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic PDF File
Hi Mark,
It seems the problem is your PHP variable: memory_limit isn't big enough for PDF library, so it can't export the pictures to PDF file.
Please try to increase memory_limit and try to export properties to PDF again to see if it to work
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan