![]() ![]() and no entry in to the database takes place. I've tested the upload using TXT, PNG, JPG etc, all work fine, however PDF files get uploaded in to the specified folder fine, but the user then gets logged out of the Perch interface. So far, I've got everything working as it should, with the exception of uploading PDF files via the Assets screen. I'm currently moving a Perch site from one server (Windows 2012 running MAMP) to another (Windows 2019 running MAMP Pro). Hopefully the hive mind can help me here. As far as I know uploading an image file doesn't use ImageMagick as Drew had previously mentioned images only use GD for resizing etc, PDF's use ImageMagick as GD can't handle PDF's.Īny further thoughts or ways to test ImageMagick would be gratefully received. I can retrieve the version number (in my first post) but I'm not sure how I can test it. I feel I need to find a way to confirm ImageMagick is actually working in my installation. This is happening when logged in to Perch, Assets, Add New Asset (in to any buckets I have configured). I've tried numerous PDF's, all are not large (under 1mb in size) and from various sources. I'm only suspecting this is the issue as it's been mentioned in the forums before and I appear to have the very similar symptoms in that when I upload the PDF it saves it in the designated folder but Perch logs me out so looks to be a hard error crashing Apache or something. I am fairly sure that I successfully added PDF assets for which Perch did not generate thumbnails.ĭoes the issue happen when you upload any PDF? Or are you only testing with the same PDF?Īnd where does this happen? In a content region?Īpparently (according to Drew in an old post) turning off ImageMagick should turn off PDF thumbnail generation, however turning it off in MAMP Pro seems to make no difference for me. The next issue though is why are image thumbnails not being created if GD is loaded and should be working? You can confirm this is no longer loaded by checking Perch extended diagnostics for "ImageMagick: No". Save the file, close the editor and restart the Apache service. Change this to be commented out by using a semi-colon to " MAMP_Imagick_MAMPextension=php_imagick.dll" (without the quotes). In the editor find "magick" and you'll find the line "MAMP_Imagick_MAMPextension=php_imagick.dll". To disable it you should go to the File menu (in MAMP Pro UI) > Edit Template > PHP > and select the version of PHP you're running. ![]() In MAMP Pro, under Languages > PHP unticking Imagck/ImageMagick does not disable Imagemagick (which is what you'd expect it to do!!). I'd say this means that my instance of MAMP Pro was at fault here, possibly not compatible with Windows 2019 (which I'll take up with MAMP) but for anyone else getting this issue in the future here's some tips. I guess my customer will have to live with that. However, this now means that no images get a thumbnail (which kinda says GD isn't being used to thumbnail images as per Drew's explanation a while back). After removing ImageMagick from PHP.INI, I've now got PDF's uploading. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |