• I want to use the WP-Booklet plugin with PDF files, but I can’t get the option to appear when I go to Add New Booklet. I’ve checked the plugin FAQs.
    The Settings section comes up with this error:

    Can your server convert PDF files? No. Please contact your server administrator. The information below may help in troubleshooting the problem.

    Ghostscript status GPL Ghostscript 8.70 (2009-07-31) Copyright (C) 2009 Artifex Software, Inc. All rights reserved.

    Imagemagick status Version: ImageMagick 6.7.2-7 2016-06-17 Q16 https://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP

    PDFInfo status pdfinfo version 0.12.4 Copyright 2005-2009 The Poppler Developers – https://poppler.freedesktop.org Copyright 1996-2004 Glyph & Cog, LLC

    Is uploads directory writable by web server? Yes

    Basically, everything is should be there but it still says the server can’t convert PDF files.
    I’ve talked with my Hosting company and they’re happy to install anything I need to get this working, but they don’t know what the problem is.

    Does anyone know what my Host and I are missing?

    Thanks in advance.

    https://www.ads-software.com/plugins/wp-booklet/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author binarystash01

    (@binarystash01)

    Hello,

    Please ask your hosting provider to run the following then send me the result. Thanks!

    convert -background white -alpha remove -limit memory 32MiB -limit map 64MiB <path_to_wordpress>/wp-content/plugins/wp-booklet/assets/pdf/test.pdf <path_to_wordpress>/wp-content/uploads/2016/07/wp-booklet-test-579b4e360f57c.jpg

    Thread Starter kjbagnall

    (@kjbagnall)

    Hello @binarystash01,

    Thanks for getting back to me. I sent those details through to my host and here is their reply:

    “That command is not actually being recognized and just errors out”

    They’re wondering if there are any other dependencies required that aren’t listed in the FAQ (i.e. PDFInfo, Ghostscript, and Imagemagick).

    Any thoughts? ??

    Kyla Bagnall

    Thread Starter kjbagnall

    (@kjbagnall)

    I’ve noticed that the setting page has an additional line:

    Is PHP safe mode enabled? No

    Could this be the cause of the problem? My understanding is that PHP safe mode is basically redundant. Does it need to be enabled for PDF upload to work?
    Everything else looks fine, except the line telling me that there is an error somewhere:

    Can your server convert PDF files? No. Please contact your server administrator. The information below may help in troubleshooting the problem.

    PHP version 5.3.29

    Ghostscript status GPL Ghostscript 8.70 (2009-07-31) Copyright (C) 2009 Artifex Software, Inc. All rights reserved.

    Imagemagick status Version: ImageMagick 6.7.2-7 2016-06-17 Q16 https://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP

    PDFInfo status pdfinfo version 0.12.4 Copyright 2005-2009 The Poppler Developers – https://poppler.freedesktop.org Copyright 1996-2004 Glyph & Cog, LLC

    Is uploads directory writable by web server? Yes

    Is PHP safe mode enabled? No

    The FAQ says PDF upload won’t work if one is missing or misconfigured. Obviously none are missing. So what’s the correct configuration? Or is something else the problem?

    Plugin Author binarystash01

    (@binarystash01)

    Hello,

    Safe mode must actually be disabled. Settings indicate that you should be good. However, the server still doesn’t seem to allow conversion.

    What was the verbatim error that the command from the past post produced?

    Thanks!

    Thread Starter kjbagnall

    (@kjbagnall)

    Hello,

    I send the command you mentioned before to my host, and this is their response:
    the command you provided will not work on our server. However, from the command It seems your web-developer is trying to increase the php values like “memory limit”, “max_upload_limit” etc. which can be possible from cPanel.

    Do you think increasing these PHP values would solve the issue? What should they need to be set at?

    Thank you

    • This reply was modified 8 years, 2 months ago by kjbagnall.
    Plugin Author binarystash01

    (@binarystash01)

    Hello,

    The command doesn’t try to increase memory. It is the same command that the plugin runs so we need to know the exact error for diagnosis.

    Thanks!

    Thread Starter kjbagnall

    (@kjbagnall)

    Hey,

    Hopefully this is what you need? ??
    From my host:

    I’ve run the below command under your service – homethreebag/public_html

    convert -background white -alpha remove -limit memory 32MiB -limit map 64MiB <path_to_wordpress>/wp-content/plugins/wp-booklet/assets/pdf/test.pdf <path_to_wordpress>/wp-content/uploads/2016/07/wp-booklet-test-579b4e360f57c.jpg

    Below is the output of the command when I ran it under homethreebag/public_html –

    ===========================================================================================================
    root@raphael [/home/threebag/public_html]# convert -background white -alpha remove -limit memory 32MiB -limit map 64MiB <path_to_wordpress>/wp-content/plugins/wp-booklet/assets/pdf/test.pdf <path_to_wordpress>/wp-content/uploads/2016/07/wp-booklet-test-579b4e360f57c.jpg
    [1] 920299
    -bash: lt: command not found
    [2] 920301
    -bash: path_to_wordpress: command not found
    -bash: gt: command not found
    [2]+ Exit 127 path_to_wordpress
    [2] 920303
    -bash: lt: command not found
    -bash: /wp-content/plugins/wp-booklet/assets/pdf/test.pdf: No such file or directory
    convert: UnrecognizedAlphaChannelType `remove’ @ error/convert.c/ConvertImageCommand/657.
    [2]+ Exit 127 /wp-content/plugins/wp-booklet/assets/pdf/test.pdf
    [2] 920305
    -bash: gt: command not found
    [1]- Exit 1 convert -background white -alpha remove -limit memory 32MiB -limit map 64MiB
    -bash: path_to_wordpress: command not found
    -bash: /wp-content/uploads/2016/07/wp-booklet-test-579b4e360f57c.jpg: No such file or directory
    [2]+ Exit 127 path_to_wordpress
    ===========================================================================================================

    Below is the output of the command when I ran the it under [/home/threebag] –

    ===========================================================================================================
    root@raphael [/home/threebag]# convert -background white -alpha remove -limit memory 32MiB -limit map 64MiB <path_to_wordpress>/wp-content/plugins/wp-booklet/assets/pdf/test.pdf <path_to_wordpress>/wp-content/uploads/2016/07/wp-booklet-test-579b4e360f57c.jpg
    [1] 920198
    convert: UnrecognizedAlphaChannelType `remove’ @ error/convert.c/ConvertImageCommand/657.
    -bash: lt: command not found
    [1]+ Exit 1 convert -background white -alpha remove -limit memory 32MiB -limit map 64MiB
    [1] 920200
    -bash: path_to_wordpress: command not found
    -bash: gt: command not found
    [1]+ Exit 127 path_to_wordpress
    [1] 920202
    -bash: /wp-content/plugins/wp-booklet/assets/pdf/test.pdf: No such file or directory
    -bash: lt: command not found
    [1]+ Exit 127 /wp-content/plugins/wp-booklet/assets/pdf/test.pdf
    [1] 920204
    -bash: path_to_wordpress: command not found
    -bash: gt: command not found
    [1]+ Exit 127 path_to_wordpress
    -bash: /wp-content/uploads/2016/07/wp-booklet-test-579b4e360f57c.jpg: No such file or directory
    ===========================================================================================================

    Let me know if you’ll need any further assistance.

    Plugin Author binarystash01

    (@binarystash01)

    Hi,

    <path_to_wordpress> must be replaced with /home/threebag/public_html. Please send me the output.

    Thanks! ??

    • This reply was modified 8 years, 2 months ago by binarystash01.
    Thread Starter kjbagnall

    (@kjbagnall)

    Hey,

    My host has suggested that I white-list your IP address for SSH Access so that you can have a look at the issue further. What address would you like me to use?

    Thank you ??

    Plugin Author binarystash01

    (@binarystash01)

    Hello,

    Could you try version 2.1.7?

    Thanks! ??

    Thread Starter kjbagnall

    (@kjbagnall)

    Hey,

    Thanks for the new update! The PDF button is now appearing, however, when I select a PDF it can’t seem to process past page 1. It just sits there saying “Processing page 1/44. Please keep this window open.” I waited over 10 minutes, and tried a different PDF, but no change.

    I’m not sure if this is a related issue or not.

    Let me know what you think ??

    Plugin Author binarystash01

    (@binarystash01)

    Hello,

    Could you email binarystash01[at]gmail[dot]com access to your WordPress admin so I can check?

    Thanks ??

    Thread Starter kjbagnall

    (@kjbagnall)

    sent ??

    Plugin Author binarystash01

    (@binarystash01)

    Hello,

    Thanks for the help ?? Please update to 2.1.8.

    Thread Starter kjbagnall

    (@kjbagnall)

    Hey thanks so much! It’s working great ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘PDF Upload Option Not Appearing’ is closed to new replies.