Hoi Bart!
Let’s see if we can troubleshoot this together.
Did you save the slide before previewing? If so.. did you try other PDFs, maybe a simple one with just text, and did any of them work? If so.. could you send me the PDF that won’t work, via this link: https://foyer.tv/send-info/
If none of the PDFs work, could you turn on WP_DEBUG (https://codex.wordpress.org/Debugging_in_WordPress) and send me any error messages that appear when saving and when previewing? Hope that’ll tell us something about what is going wrong.
Groet!
Hi Menno,
Thanks for coming back on this issue!
@question-1: I tried both workflows: first previewing the slide then saving it, and: first saving it before previewing. Both result in a “black” preview and the PDF is disappeared after de slide has been save.
@question-2: Yes I tried a “smaller” PDF as well; same results as before. I will send you the PDF.
I will try turning on WP_DEBUG and come back here with the findings…
Gegroet, Bart.
-
This reply was modified 1 year, 10 months ago by
bmulckhu.
Putting on WP_DEBUG does not give extra info.
I noticed that WP does give a warning:
Verwerken van PDF pagina’s mislukt.
Zorg ervoor dat je WordPress versie 4.7 of hoger gebruikt, en Imagick met Ghostscript aanwezig is op je webhosting.
Foutmelding: Niet mogelijk om editor te selecteren.
Probably this helps to find the cause… 🙂
I checked with my webhoster, and Imagick with Ghostscript is available on my server.
Problem is persistent, though…
Ha Bart,
Thanks for troubleshooting. Your PDF shouldn’t be the problem. I’ve added the PDF to a PDF slide in a test environment running PHP 5.6 and WordPress 5.0 and this worked without a problem or error message.
I expect something is not correctly set up at your hosting provider (Imagick with Ghostscript) or there is something specific to your WordPress + plugins install.
If you want I can take a look at your hosting set up. Can you add an info.php file to your website root containing this single line..
<?php phpinfo();
..and send me the URL where I can view that info.php page (using my form, not here)
Also, could you test creating a PDF slide..
– On a WordPress install (preferably 5.0 or higher) on a different hosting provider, or
– On a local copy of your website, or
– After temporary disabling all plugins on your website, maybe upgrading to WordPress 5.0 or higher
Hope this will reveal what causes the problem!
Hi Menno,
The php info-link has been sent. Let me know what you find out!
For the other requests I need some more time…
I can add that I’m using Foyer in a WordPress Multisite environment; would that be an issue?
Hoi Bart,
Foyer on multisite works fine, no problem there.
From your phpinfo I can see the Imagick module is missing. Maybe your hosting provider is right and Imagick is available on the server somewhere, but from what I can see it is definitely not available to PHP (and WordPress / Foyer). In the phpinfo page there should be a block called ‘imagick’. Copy from the phpinfo page of another PHP 5.6 hosting environment:
imagick
imagick module enabled
imagick module version 3.4.3
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version ImageMagick 6.8.9-9 Q16 x86_64 2017-11-16 http://www.imagemagick.org
Imagick using ImageMagick library version ImageMagick 6.8.9-9 Q16 x86_64 2018-05-18 http://www.imagemagick.org
ImageMagick copyright Copyright (C) 1999-2014 ImageMagick Studio LLC
ImageMagick release date 2018-05-18
ImageMagick number of supported formats: 215
ImageMagick supported formats 3FR, AAI, AI, ART, ARW, (...) PDF, (...)
I expect you’ll find PDF slides will work once Imagick (with Ghostscript / PDF support) is available to PHP on your hosting environment!
Let me know if this works..
Hi Menno,
Thanks for helping me out: this solved the issue.
Foyer is now running smoothly with PDF.