Forum How do I...?

Error Using Prince with WP/PHP plugin.

teknicom
Hi all.

I'm trying to configure a plugin called Pressbooks for WordPress which works using Prince. I've downloaded the Linux static version of prince and installed it on my hosting server correctly as advised by hosting company to /myhostdir/bin.

However the plugin still won't export correctly. This is the error log I'm getting from WordPress:

[27-Feb-2013 21:28:12 UTC] PressBooks\Export\Prince\Pdf
Array
(
[time] => Wed Feb 27 21:28:12 2013
[user] => admin
[site_url] => http://myurl.co.uk
[blog_id] => 2
[theme] => Luther
[url] => http://myurl.co.uk/format/xhtml?timestamp=1362000489&hashkey=1bb8661c21121cc0f22481d4d759edc
)
Wed Feb 27 21:28:09 2013: ---- begin
Wed Feb 27 21:28:11 2013: Loading document...
Wed Feb 27 21:28:12 2013: http://myurl.co.uk/format/xhtml?timestamp=1362000489&hashkey=1bb8661c21121cc0f22481d4d759edc: error: The requested URL returned error: 500
Wed Feb 27 21:28:12 2013: http://myurl.co.uk/format/xhtml?timestamp=1362000489&hashkey=1bb8661c21121cc0f22481d4d759edc: error: could not load input file
Wed Feb 27 21:28:12 2013: error: no input documents to process
Wed Feb 27 21:28:12 2013: finished: failure
Wed Feb 27 21:28:12 2013: ---- end


I've changed my actual hosting directory and url for obvious reasons.

Any help or hints on what could be the problem here would be most helpful.

Thank you
mikeday
Does it work if you run Prince from the command-line or from your local computer with the same URL?

If the 500 internal server error only occurs in this situation, then it may because it doesn't like the fact that this is making a new HTTP request to the same server while responding to another request.