1
wcrwcr
PDF creation using makepdf.php
  • 2010/4/18 22:14

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi all

After some modules updates on an old site running xoops 20182, I´ve realized that the news (1.63 the last to run with xoops2018 series) was outputing a lot of errors all regarding charset.

After a lot of reading and research I´ve decided to use the old and good makepdf.php, cauz none of the solutions I´ve found worked for me

Just changed the call on the "news_article.html" template and everything is running fine except if the article has an external image. In that cases the pdf fails silently (blank page) however the images stored at my site are all displayed correctly.

Any tip on that issue?

Thank you all

Keep?n Xoopsing

2
ghia
Re: PDF creation using makepdf.php
  • 2010/4/19 9:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Hi,

Easiest solution is to make sure all images are on site.

I don't know why external images fail. Some sites may have a leeching protect for their images. If all external images fail, then you can try to find the routines for incorporating the images in the pdf and see why they fail.

The pdf making routines are based on standalone PHP scripts. http://www.fpdf.org/ http://www.tcpdf.org/ There may be newer versions of it. By using the same hacks of the existing (old) version on the new version you might upgrade the scripts. It is maybe also possible to test the newer version stand alone with a html page created by saving the html source of one of your news pages.

Good luck and regards,
Gerard.

3
wcrwcr
Re: PDF creation using makepdf.php
  • 2010/4/20 5:28

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi ghia

Thanks for your input here

But now guess what?

My "yesterday solution" isn´t working anymore.
The call to "/modules/news/makepdf.php?storyid= " generates a blank page.

I´ll have to check with host if there is something wrong with makepdf.php file


For now i´ve just commented out the link on "news_article.html" template file.

Sad but true
Keep?n Xoopsing

4
wcrwcr
Re: PDF creation using makepdf.php
  • 2010/4/21 1:11

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Following up:

After consulting the analyst at surpass, the answer....:

"Unfortunately, we can't help you troubleshoot this issue as it is third-party software related. Please check in with the vendor of this third party software to make sure all the server needs are met and it is properly up to date"


Keep?n Xoopsing

5
ghia
Re: PDF creation using makepdf.php
  • 2010/4/21 8:05

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Could it be to have to do with caching the template? Did you check the newer link was active at the display of the article?

6
wcrwcr
Re: PDF creation using makepdf.php
  • 2010/4/24 6:25

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


sorry about the delay...


Yes ghia templates and cache are ok and regarding the active link, even if type directly http://www.mydomain.com/modules/news/makepdf.php?= I get the blank page

Very wierd
Keep?n Xoopsing

Login

Who's Online

312 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 312


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits