CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • PDF Creation with WKHTML hangs...
Pages: [1]

Author Topic: PDF Creation with WKHTML hangs...  (Read 1385 times)

HajimaIchiro

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5
  • PHP version: 5.4
PDF Creation with WKHTML hangs...
August 22, 2012, 03:26:56 pm
I am a newbie when it comes to stuff like this, but I was able to get the binary image for wkhtml up on the server. Using SSH, I can send it a command, and it will correctly generate a PDF. I set the path to it in CiviCRM and go to generate a PDF letter, but the browser just sits there and nothing happens. I'm pretty sure the path is correct as if I change it, it will error out instead of hanging. It only hangs with the correct path.

I am on 1&1 hosting, so somewhat limited in access to the server. Any ideas what I might be missing here?

Thanks in advance!

EDIT

After fooling around with it some more, I realized this line in the utils.pdf is causing the error:

<style type=\"text/css\">@import url({$config->userFrameworkResourceURL}css/print.css);</style>

Line 72. It's put in as part of the $html variable that eventually gets passed to snappy. I don't know which print.css exactly this refers to... Or what the problem with it might be, but it seems to run just fine if I comment it out. Any ideas?
« Last Edit: August 23, 2012, 11:27:07 am by HajimaIchiro »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: PDF Creation with WKHTML hangs...
August 23, 2012, 11:30:39 am
Can you check the server logs for an error message? Could well be a memory or CPU timeout.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

HajimaIchiro

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5
  • PHP version: 5.4
Re: PDF Creation with WKHTML hangs...
August 23, 2012, 12:48:07 pm
It could be, but I'm on a shared host, and to be honest, if I'm even allowed access to the server logs, I wouldn't know how to get to them...

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: PDF Creation with WKHTML hangs...
August 23, 2012, 12:51:19 pm
You can ask your host to look for you.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • PDF Creation with WKHTML hangs...

This forum was archived on 2017-11-26.