• We started getting an error message when a PDF is uploaded, and the the thumbnail is no longer being generated. PDFs uploaded on 2025/12/10 and earlier have thumbnails, and those uploaded on or after 2025/12/16 don’t have thumbnails, the site’s owner didn’t write us until this week about the missing thumbnails.

    The error on upload is:
    Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page

    The file is uploaded, but no thumbnail is generated.


    I turned off the plugin to see if that was creating the error message, and I’m not getting the error, but obviously no thumb.

    When I try and turn the plugin back on I’m getting the error

    Plugin could not be activated because it triggered a fatal error.

    Can I download the previous version of the plugin somewhere?

    • This topic was modified 1 month, 1 week ago by buckyreal.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author kubiq

    (@kubiq)

    Hi,

    can you share the fatal error message please?

    Thanks

    Thread Starter buckyreal

    (@buckyreal)

    How do I see the error message? TUrn on Debugging and logging? THe Plugin page just says “Plugin could not be activated because it triggered a fatal error.” no link

    Plugin Author kubiq

    (@kubiq)

    You can see it in your server logs, or you can activate WP debugging with WP_DEBUG_LOG : https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
    I recommend something like this in wp-config.php

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    Thread Starter buckyreal

    (@buckyreal)

    Your plugin doesn’t appear to throw an error, just an error with a different plugin, a google search says this is not a FATAL error…

    [13-Feb-2026 23:26:58 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the *Unrelated plugin* domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/villagev/public_html/wp-includes/functions.php on line 6131

    Thread Starter buckyreal

    (@buckyreal)

    Looking at the apache logs now…

    Thread Starter buckyreal

    (@buckyreal)

    I’m not seeing any errors related to re-enabling the plugin causing a “fatal error” :eyeroll:

    Thread Starter buckyreal

    (@buckyreal)

    I could really use your help figuring out how to fix this issue.

    thanks

    Thread Starter buckyreal

    (@buckyreal)

    Customer service at our hosting provider updated PHP 8.3 last week a ImageMagick disabled Imgemagic in a new default .ini…

    Now the Plugin is installed and doesn’t throw any errors… but it does not create Thumbnails, it doesn’t “create missing thumbnails” and running “recreate all thumbnails” says the ones that already don’t have custom thumbnails already have them… reuploading or uploading a copy of an earlier PDF (1 page Board meeting notes and financials, ~200Kb results in a generic document icon and no thumbnail

    Thread Starter buckyreal

    (@buckyreal)

    In the log files this morning, I’m seeing the error,

    It looks like the hosting company misconfigured the path to Imageick, it’s looking in the path of the plugin’s folder.

    [14-Feb-2026 01:41:05 UTC] PHP Fatal error: Uncaught Error: Class “Imagick” not found in /home/villagev/public_html/wp-content/plugins/pdf-thumbnail-generator/pdf-thumbnail-generator.php:246
    Stack trace: 0 /public_html/wp-includes/class-wp-hook.php(341): pdf_thumbnail_generator->generate_thumbnail(6369)

    Plugin Author kubiq

    (@kubiq)

    It looks like you don’t have Imagick installed or enabled on your hosting. You can create info.php file with content <?php phpinfo() ?> and then check that URL and search for imagick with Ctrl+F and you will see

    Thread Starter buckyreal

    (@buckyreal)

    output of phpinfo

    imagickimagick moduleenabledimagick module version3.8.1imagick classesImagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernelImagick compiled with ImageMagick versionImageMagick 7.1.2-10 Q16-HDRI x86_64 69f7ced59:20251206 https://imagemagick.orgImagick using ImageMagick library versionImageMagick 7.1.2-10 Q16-HDRI x86_64 69f7ced59:20251206 https://imagemagick.orgImageMagick copyright(C) 1999 ImageMagick Studio LLCImageMagick release date2025-12-06ImageMagick number of supported formats:253ImageMagick supported formats3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVCI, AVI, AVIF, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, ERF, FARBFELD, FAX, FF, FFF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICN, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MDC, MEF, MIFF, MKV, MNG, MONO, MOS, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, RWL, SCR, SCT, SF3, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, SRW, STEGANO, STI, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCBCR, YCBCRA, YUVDirectiveLocal ValueMaster Valueimagick.allow_zero_dimension_images00imagick.locale_fix00imagick.progress_monitor00imagick.set_single_thread11imagick.shutdown_sleep_count1010imagick.skip_version_check0

    • This reply was modified 1 month, 1 week ago by buckyreal.
    Thread Starter buckyreal

    (@buckyreal)

    THanks for all your help @kubiq!! Mad respect!

    It’s still not working. The host customer support said they reviewed and confirmed that imagick is installed and working correcty as is the newly installed and updated PHP 8.3

    wordpress debug is logging the error on generating thumbail for the pdf

    [15-Feb-2026 18:46:01 UTC] ImagickException: FailedToExecuteCommand `’gs’ -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 ‘-sDEVICE=png16malpha’ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 ‘-r164x164’ -dPrinted=false -dFirstPage=1 -dLastPage=1 ‘-sOutputFile=/tmp/magick-G9r-PWnPL_b9B4Zur0v59bpfcpkwKYP5%d’ ‘-f/tmp/magick-uKdKnX3zozlhp0b9XtSGoX1UKYlmXTl4’ ‘-f/tmp/magick-G8rbwOqW8CkmNv1ze9QmfYkaCJh35mJq” (256) @ error/ghostscript-private.h/ExecuteGhostscriptCommand/75 in /home/villagev/public_html/wp-content/plugins/pdf-thumbnail-generator/pdf-thumbnail-generator.php:248
    Stack trace:
    #0 /home/villagev/public_html/wp-content/plugins/pdf-thumbnail-generator/pdf-thumbnail-generator.php(248): Imagick->readImage(‘/home/villagev/…’)
    #1 /home/villagev/public_html/wp-includes/class-wp-hook.php(341): pdf_thumbnail_generator->generate_thumbnail(6383)
    #2 /home/villagev/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
    #3 /home/villagev/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
    #4 /home/villagev/public_html/wp-includes/post.php(5117): do_action(‘add_attachment’, 6383)
    #5 /home/villagev/public_html/wp-includes/post.php(6666): wp_insert_post(Array, true, true)
    #6 /home/villagev/public_html/wp-admin/includes/media.php(422): wp_insert_attachment(Array, ‘/home/villagev/…’, 0, true)
    #7 /home/villagev/public_html/wp-admin/async-upload.php(113): media_handle_upload(‘async-upload’, 0)
    #8 {main}

    • This reply was modified 1 month, 1 week ago by buckyreal.
    • This reply was modified 1 month, 1 week ago by buckyreal.
    Plugin Author kubiq

    (@kubiq)

    Oh so this is actually about another library called Ghostscript that is also needed with Imagick to be able to render PDF files, so the GS is one of these:
    ❌ not installed
    ❌ not accessible in PATH
    ❌ blocked by hosting security policy
    ❌ disabled by ImageMagick policy.xml
    ❌ broken path / permission issue

    Send this to your host customer support and let me know their answer 😉

    Thread Starter buckyreal

    (@buckyreal)

    They finally cottoned to that it was related to ghostcript (the error suggests it)… I’m sending your reply now… We are getting fed up with this hosting company 🙂

    Thread Starter buckyreal

    (@buckyreal)

    Thanks for being so patient and helpful. They upgraded php 8.3 and didn’t include a functioning config for  Imagic, and apparently Ghostscript 🙂

Viewing 15 replies - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.