WordPress.org

Ready to get started?Download WordPress

Forums

CleanPrint
[resolved] CleanPrint Plugin (v 3.3.0) not working when testing on localhost (11 posts)

  1. sico7
    Member
    Posted 11 months ago #

    Hi,

    I'm really interested in using the CleanPrint plug-in for a site that I'm currently working on but I can't seem to get it to work on my local Mac machine installation.

    The plug-in installed fine and the settings are really easy to understand. The buttons have appeared at the top of posts as expected but when any of them are clicked nothing happens. The page appears to reload but nothing appears. Also, after one of the buttons has been clicked and the page has reloaded the page kind of becomes frozen (i.e. you can't scroll down). To un-freeze the page it has to be manually reloaded.

    Does this plug-in simply not work when testing things on localhost?

    Any help that people could supply would be greatly appreciated.

    Thanks

    Simon

    http://wordpress.org/plugins/cleanprint-lt/

  2. johncadams
    Member
    Plugin Author

    Posted 11 months ago #

    It should work with local host but you will need a network connection to pull down JavaScript source and to run the reformatting engine.

    Are you getting any JavaScript errors in the console?

  3. sico7
    Member
    Posted 11 months ago #

    Hi John,

    Thanks for responding to my post.

    I'm pretty much a novice with this kind of stuff but here goes...

    I have Firebug installed and can see in the console that I get an error whenever the PDF or Cleanprint buttons are clicked.

    When I click the PDF button the error says:

    FD_IGNORE Desktop client loading phone interface cleanp...ult.png (line 8)

    anonymous() cleanp...ult.png (line 8)
    al() cpjs?b...fs=true (line 30)
    FDCPUrl() cpjs?b...fs=true (line 30)
    CleanPrintGeneratePdf() cpjs?b...fs=true (line 30)
    CleanPDF() localhost (line 18)
    onclick()event = click clientX=590, clientY=231 onclick (line 2)

    When I click the Cleanprint button the error says:

    FD_IGNORE Desktop client loading phone interface cleanp...ult.png (line 8)

    anonymous() cleanp...ult.png (line 8)
    al() cpjs?b...fs=true (line 30)
    FDCPUrl() cpjs?b...fs=true (line 30)
    CleanPrintPrintHtml() cpjs?b...fs=true (line 30)
    CleanPrint() localhost (line 12)
    onclick(event=click clientX=463, clientY=298)onclick (line 2)

    I'm not sure if that's what you meant?

    Thanks

    Simon

  4. johncadams
    Member
    Plugin Author

    Posted 11 months ago #

    Try this URL in your browser, do you get an error:

    http://cache-02.cleanprint.net/cpf/cleanprint?key=wpdefault

  5. sico7
    Member
    Posted 11 months ago #

    Hi John,

    No errors, it just displays the code.

    Any ideas?

    Thanks

    Simon

  6. johncadams
    Member
    Plugin Author

    Posted 11 months ago #

    If you wait roughly a minute are you getting an error dialog box referring to a time out?

  7. sico7
    Member
    Posted 11 months ago #

    Hi John,

    I'm not really sure why but.......it's working fine now!!! Maybe it was do with some kind of caching issues (though I'm sure I cleaned them up before first contacting you).

    However, now it's working I'm having some trouble. Images are not appearing in the PDF output.

    I've looked at the previous support requests that relate to this issue but I still can't solve it:

    http://wordpress.org/support/topic/images-not-displaying-19

    http://wordpress.org/support/topic/images-from-custom-field-gallery-not-displaying

    http://wordpress.org/support/topic/plugin-cleanprint-images-do-not-appear-in-pdf

    Also, certain images don't appear at all in the preview in Chrome (Version 29.0.1547.76) but do in FireFox (Version 24.0). Regardless of whether they appear in the preview they don't appear in the PDF output. Just a reminder that this is all being done on localhost.

    Any ideas?

    Thanks

    Simon

  8. johncadams
    Member
    Plugin Author

    Posted 11 months ago #

    Chances are your machine isn't routable from the Internet if you're testing localhost. Our PDF engine running in the cloud downloads the image content for insertion into the PDF. No access, no images.

    If this your situation?

  9. sico7
    Member
    Posted 11 months ago #

    Hi John,

    I do have an active Internet connection on the Mac that I am using for this testing work.

    You mentioned the cloud based PDF engine. Images are also missing from plain text saves/exports via Cleanprint (although I suspect again that this is using something based in the cloud).

    Do I have to change some settings with my WordPress installation?

    Also, do you have a link to a WordPress site that currently uses the Cleanprint plugin (and has the PDF option enabled) so that I can show this to my colleagues?

    Thanks

    Simon

  10. johncadams
    Member
    Plugin Author

    Posted 11 months ago #

    The image elements in your HTML content have to be accessible from the Internet. Otherwise our engine cannot fetch them for inclusion into PDF (or RTF). This is the same for saving to either your machine or the cloud.

    This is not a WordPress setting, its networking.

    Regarding CleanPrint in action take a look here:
    * http://www.cnn.com
    * http://www.pcmag.com
    * http://www.formatdynamics.com/cleanprint-4-0

  11. sico7
    Member
    Posted 11 months ago #

    That explains it then.

    Thanks for all your help John.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags