Manual Thumbnails not working
-
I cannot seem to get manual thumbnails working. I have turned off auto generation in settings and I am trying to upload them from the media page in, in the “Thumbnail for Document Gallery” section. I select the file and it looks like it is upload and then it fails silently. No error message, no log entry. The file is below the max file size and dimensions specified in the settings.
Any ideas?
-
Hi lilyandthetwins,
I’ve just tested this functionality on DG 4.4 and it works on my system. Could you please do me a favor and go through some test steps to rule out interference from another WP plugin or theme?
- Disable all plugins.
- Switch to a default theme.
- Re-attempt the manual thumbnail.
- If step #3 works, then one-by-one re-enable plugins and your theme, retesting #3 each time until it fails.
If when you reattempt it still fails, then this is likely not an interference from another plugin/theme.
-Dan
-
This reply was modified 8 years, 10 months ago by
Dan Rossiter.
Disabled all plugins except the document gallery and switched to a default theme and still experienced the issue. And after re-watching the video, I would use the built in thumbnail generation, but that isn’t working either. Imagick is enabled but ghostscript is not configured. I am going to dive through support again and see if I can find a similar issue.
If you want to take a peek and see the gallery, it is at http://lilyandthetwins.com/recreation-therapy-worksheets/
Cleared the log and the thumbnails, went back to the page and got the following:
May 24, 2017 10:37 pm DETAIL (DG_Thumb::initThumbs) Populating thumbnail cache. May 24, 2017 10:37 pm DETAIL (DocumentGallery::doShortcode) Generation Time: 0.02 s May 24, 2017 10:37 pm DETAIL (DG_Thumb::initThumbs) Populating thumbnail cache. May 24, 2017 10:37 pm DETAIL (DocumentGallery::doShortcode) Generation Time: 0.02 s May 24, 2017 10:37 pm DETAIL (DG_Thumb::initThumbs) Populating thumbnail cache. May 24, 2017 10:37 pm DETAIL (DG_Thumb->save) Saving thumb with post_id = 322 May 24, 2017 10:37 pm DETAIL (DG_Thumb->save) Saving thumb with post_id = 324 May 24, 2017 10:37 pm DETAIL (DG_Thumb->save) Saving thumb with post_id = 342 May 24, 2017 10:37 pm DETAIL (DG_Thumber::getThumbers) Thumbnail Generators: DG_AudioVideoThumber, DG_ImagickThumber May 24, 2017 10:37 pm DETAIL (DG_Thumb::initThumbs) Populating thumbnail cache. May 24, 2017 10:37 pm DETAIL (DocumentGallery::doShortcode) Generation Time: 0.02 s May 24, 2017 10:37 pm DETAIL (DocumentGallery::doShortcode) Generation Time: 0.03 s May 24, 2017 10:37 pm DETAIL (DG_Thumb::initThumbs) Populating thumbnail cache. May 24, 2017 10:37 pm DETAIL (DG_Thumb::initThumbs) Populating thumbnail cache.Array ( [thumber] => Array ( [gs] => [active] => Array ( [av] => 1 [gs] => [imagick] => 1 [thumber-co] => ) [width] => 200 [height] => 200 ) [thumber-co] => Array ( [uid] => [secret] => [subscription] => Array ( ) [direct_upload] => [mime_types] => Array ( ) ) [gallery] => Array ( [columns] => 4 [descriptions] => 1 [fancy] => 1 [order] => ASC [orderby] => menu_order [relation] => AND [limit] => -1 [mime_types] => application,video,text,audio,image,pdf [new_window] => 1 [paginate] => 1 [post_status] => any [post_type] => attachment [attachment_pg] => [skip] => 0 ) [css] => Array ( [text] => .document-icon-row.descriptions { border-bottom: 1px solid #CCCCCC; margin-bottom: 25px; padding-bottom: 5px; } .document-icon { min-width: 120px; } ) [meta] => Array ( [version] => 4.4 [items_per_page] => 10 [donate_link] => https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted ) [logging] => Array ( [enabled] => 1 [purge_interval] => 7 ) )-
This reply was modified 8 years, 10 months ago by
lilyandthetwins.
Hi lilyandthetwins,
Hmm… Ok. You’ve tried a lot of the things I would have recommended.
What browser are you running? What OS?
Here’s another test I’d be interested in…
- Purge all of the thumbnails again
- Open the browser debugger (in most browsers, that would just require hitting F12)
- Navigate to the thumbnail management page again and try to add a manual thumbnail
- In the debugger console, is there any red text logged?
-Dan
If I delete the thumbnails and go to the page,
Chrome Debugger Console shows nothing.
Edge Debugger Console shows nothing.If I try to manually update the thumbnail, and I trace it on my server, I get a FASTCGI_UNEXPECTED_EXIT error.
For background, I’m a 20 year dev, but on the Microsoft stack with some limited php experience. I don’t think it is code, but probably server setup. I am wondering if I have to give write access somewhere that I can’t.
System Windows NT A2WS1 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64 Build Date May 9 2017 08:29:03 Compiler MSVC14 (Visual C++ 2015) Architecture x64 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo" Server API CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP70\php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed (none) PHP API 20151012 PHP Extension 20151012 Zend Extension 320151012 Zend Extension Build API320151012,NTS,VC14 PHP Extension Build API20151012,NTS,VC14 Debug Build no Thread Safety disabled Zend Signal Handling disabled Zend Memory Manager enabled Zend Multibyte Support provided by mbstring IPv6 Support enabled DTrace Support disabled Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar Registered Stream Socket Transports tcp, udp, ssl, sslv3, tls, tlsv1.0, tlsv1.1, tlsv1.2 Registered Stream Filters convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.*Happy to find another nerd here! 🙂 I’m actually doing primarily Windows work these days myself — small world! Lots of C#.
Anyway, regarding your problem, I believe based on your symptoms that you may be running into an issue with your PHP image processing lib. For WordPress, this can be either GD or (preferably) IMagick. Based on your logs, IMagick is installed, but I’m thinking it’s configured incorrectly. To verify this, can you determine whether if you upload an image to a test page, then try to include a size smaller than the original size into your page that you don’t get a resized image? I’m not sure what exactly will happen without a working image processing lib… it may crash at upload time or you may just not be given options to include intermediary sizes when you try to add it to the page. Assuming this fails, you’ll want to get IMagick working and that should make DG happy. There are some annoying issues w/ IIS + PHP + IMagick… They’re the first google results and a few years ago a DG user ran into those, so might try the fixes listed on those posts, though not sure your symptoms quite match up.
Hey there, just checking in on this. Any luck getting things working?
-Dan
Been swamped with regular work and buying a house. I’ll see what I can do. I’ll check with my host to see if they see anything wrong IMagick on their end. The logs I see through my hosting panel are not detailed enough.
I added this page to try and learn more about the imagick that is installed:
http://lilyandthetwins.com/imagick.php
Let me know if anything jumps out. Working on a test convert page.
This works:
exec("convert Input.jpg -trim -resize 250x250^ -crop 250x300+0+0 Output.png");This does not:
exec("convert SelfEsteem.pdf -trim +repage -resize 250x250^ -crop 250x300+0+0 SelfEsteem.png");I think they may not have the pdf extension / delegate installed.
You have the
ps(PostScript) delegate, so you should be able to do PDFs, but even if that were not working, that shouldn’t have any baring on manual thumbnails. DG will use IMagick for as many or as few filetypes as it supports (IMagick reports what is supports and DG will use it for those types).There is an important distinction, however, between ImageMagick and IMagick. They are not the same and one is not necessarily going to support the same things as the other. Can you show me what comes out of
phpinfo?Also, did you run the resize test mentioned above. That will give a better idea of how broken your system is. If that fails, then DG *should* fail to process your manual thumbnail since DG can’t resize it to proper dimensions. If, however, the resize test above passes then DG is failing when it shouldn’t.
-Dan
Hey Dan,
The jpg to png resize DOES work. The PDF to PNG resize DOES NOT work. For manual thumbnails I am trying to upload PNGs directly. They are about 120h by 80w. I can check for exact sizes. I tried to trace that part again, but am walled off at the fast cgi exit error.
I can try a png to png resize if it would help.
Also trying to figure out if I need to change permissions somewhere for php to save the file. the resize jpg to png converts in my root dir of the website just fine.
The topic ‘Manual Thumbnails not working’ is closed to new replies.