Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
createPDF

 

 


Toledoh
Enthusiast

Aug 30, 2010, 7:52 PM

Post #1 of 11 (16731 views)
Shortcut
createPDF Can't Post

Hi Guys.

The createPDF seems to be working... mostly.

The test files are creating the PDF, however for everything other than the "url_as..." the displayed result is a PDF of my 404 error page.

Any ideas?
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Jason
Staff / Moderator


Aug 31, 2010, 9:15 AM

Post #2 of 11 (16709 views)
Shortcut
Re: [Toledoh] createPDF [In reply to] Can't Post

Hi Tim,

What is the url that you're passing to the plugin? Check to make sure that's correct first.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


Toledoh
Enthusiast

Aug 31, 2010, 2:04 PM

Post #3 of 11 (16686 views)
Shortcut
Re: [Jason] createPDF [In reply to] Can't Post

Hi Jason,

Just the standard test files, such as:

http://www.murraysbrewingco.com.au/cmsAdmin/plugins/createPDF/tests/html_as_inline.php, and
http://www.murraysbrewingco.com.au/cmsAdmin/plugins/createPDF/tests/output_as_inline_pdf.php

The only one that works is the URL version;http://www.murraysbrewingco.com.au/cmsAdmin/plugins/createPDF/tests/url_as_inline.php

An example file is attached.
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au
Attachments: html_as_inline.php (0.14 KB)


Jason
Staff / Moderator


Aug 31, 2010, 2:20 PM

Post #4 of 11 (16684 views)
Shortcut
Re: [Toledoh] createPDF [In reply to] Can't Post

Hi Tim,


Could you also attach url_as_inline.php so I can see how they're different?

You can also try adding this code to the very top of html_as_inline.php:


Code
<?php require_once "../../../lib/viewer_functions.php"; ?>


Give that a try.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


Toledoh
Enthusiast

Aug 31, 2010, 2:25 PM

Post #5 of 11 (16683 views)
Shortcut
Re: [Jason] createPDF [In reply to] Can't Post

Hi Jason.

I had deleted that line just to see if that was the issue...

Attached are the url versions.
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au
Attachments: url_as_attachment.php (0.19 KB)
  url_as_inline.php (0.19 KB)


Toledoh
Enthusiast

Aug 31, 2010, 2:28 PM

Post #6 of 11 (16681 views)
Shortcut
Re: [Toledoh] createPDF [In reply to] Can't Post

BTW: have just emailed ftp etc in case you need it.
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Jason
Staff / Moderator


Sep 1, 2010, 9:41 AM

Post #7 of 11 (16651 views)
Shortcut
Re: [Toledoh] createPDF [In reply to] Can't Post

Hi Tim,

I've take a look and haven't been able to find a problem. The plugin works correctly as it does create a pdf. It doesn't seem to produce any errors and all of the tests show that the server does support the plugin.

Before doing the conversion to pdf, the plugin writes the output to a temporary html file. Do you have any .htaccess redirects that affect how .html files are displayed? It is possible that this redirect is what's redirecting to your 404 page.

Let me know. If not, I'll look into this further.

Thanks.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


Chris
Staff / Moderator


Sep 1, 2010, 2:32 PM

Post #8 of 11 (16621 views)
Shortcut
Re: [Jason] createPDF [In reply to] Can't Post

Hi Tim,

Wow, this was a tricky one! :)

Your server is configured in a funny way, which is preventing the Create PDF plugin from functioning. When a script on your server makes a web request on http://www.murraysbrewingco.com.au/, it ends up going someplace completely different!

When you ask the internet what the IP address of www.murraysbrewingco.com.au is, you'll be told it's 116.213.5.16. However, when you ask the web server running on www.murraysbrewingco.com.au what the IP address of www.murraysbrewingco.com.au is, you'll be told it's 203.30.164.196!

I've uploaded a simple script to show the problem:

http://www.murraysbrewingco.com.au/web_get_test.php

The script attempts to download http://www.murraysbrewingco.com.au/web_get_test_target.php, which is a file that simply reads "IT WORKS". On your server, the test shows nothing.

(Another clue is that the PDF generated by the html_as_inline test is a different error page ("Woops!") than the error page you get from 404s on www.murraysbrewingco.com.au ("Error occurred") from a web browser.)

Please ask your web host to fix your server so that it can make web requests of itself. If you show them the web_get_test.php script above, they should be able to figure it out.

I hope this helps! Please let me know if you have any questions.
Chris


(This post was edited by chris on Sep 1, 2010, 2:33 PM)


Toledoh
Enthusiast

Sep 2, 2010, 1:45 PM

Post #9 of 11 (16517 views)
Shortcut
Re: [chris] createPDF [In reply to] Can't Post

Thanks guys. I've passed your comments onto my host - and will let you know how it goes!
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Toledoh
Enthusiast

Sep 6, 2010, 6:28 AM

Post #10 of 11 (15344 views)
Shortcut
Re: [Toledoh] createPDF [In reply to] Can't Post

Thanks for your direction guys... there was some kind of conflict with the host. I had moved from one to another and the old one was still half set up some how.

Works a treat now.
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Donna
Staff


Sep 6, 2010, 1:38 PM

Post #11 of 11 (15154 views)
Shortcut
Re: [Toledoh] createPDF [In reply to] Can't Post

Glad to hear it! :) Let us know if you run into any other problems.

Donna

--
support@interactivetools.com